to-space

0.1.0 • Public • Published

to-space NPM version NPM downloads Build Status

Convert leading tab to spaces.

Install

$ npm install --save to-space

Usage

const toSpace = require('to-space');

toSpace(`\tHI\n\tTHERE`);
/* convert to 2 spaces:
  HI
  THERE
*/

// 4 spaces if you like
toSpace(string, {space: 4})

License

MIT © EGOIST

/to-space/

    Package Sidebar

    Install

    npm i to-space

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • kchan