align-spaces
align spaces on empty lines of a source code
Last updated 2 months ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm 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 (2 months ago)

7 Versions

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

Copyright 2013 - present © cnpmjs.org | Home |