align-spaces
v1.0.4
Published
align spaces on empty lines of a source code
Downloads
49,750
Readme
Align Spaces
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:
const alignSpaces = require('align-spaces');
alignSpaces(`
const t = 'hello';
module.exports = () => {
cosnt m = 'world';
return t + m;
};
`);
// returns
`
const t = 'hello';
module.exports = () => {
cosnt m = 'world';
....
return t + m;
};
`
Related
- eslint-remove-line -
eslint --fix
for unused variables. - putout - the pluggable code transformer.
License
MIT