to-space
Convert leading tab to spaces.
Last updated 5 years ago by kchan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install to-space 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.0                                ...           latest (5 years ago)

1 Versions

  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |