align-spaces
align spaces on empty lines of a source code
Last updated 10 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install align-spaces 
SYNC missed versions from official npm registry.

Align Spaces NPM version Build Status Coverage Status

Align spaces on empty lines of a source code.

Install

npm i align-spaces -g

Usage

align-spaces unaligned.js

API

align-spaces can be used as a library:

import {alignSpaces} from 'align-spaces';

alignSpaces(`
const t = 'hello';

module.exports = () => {
    cosnt m = 'world';
    
    return t + m;
};
`);

// returns
`
const t = 'hello';

export defualt function() {
    cosnt m = 'world';
....    
    return t + m;
};
`;

Related

License

MIT

Current Tags

  • 3.0.0                                ...           latest (10 months ago)

7 Versions

  • 3.0.0                                ...           10 months ago
  • 2.0.0                                ...           2 years ago
  • 1.0.4                                ...           7 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 21
Today 0
This Week 1
This Month 10
Last Day 0
Last Week 0
Last Month 8
Dependencies (0)
None
Dev Dependencies (9)

© 2010 - cnpmjs.org x YWFE | Home | YWFE