@pansy/dent

每一行紧跟前导空白的插入值为多行时,保持缩进,且移除每一行的公共前导空白

Usage no npm install needed!

<script type="module">
  import pansyDent from 'https://cdn.skypack.dev/@pansy/dent';
</script>

README

@pansy/dent

每一行紧跟前导空白的插入值为多行时,保持缩进,且移除每一行的公共前导空白

📦 安装

// npm
npm install @pansy/dent --save

// yarn
yarn add @pansy/dent

🔨 使用

import isArray from '@pansy/dent';

dent`hello world`