0.1.0 • Published 8 years ago

to-space v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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

0.1.0

8 years ago