JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12876
  • Score
    100M100P100Q157617F
  • License MIT

align spaces on empty lines of a source code

Package Exports

  • align-spaces

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (align-spaces) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Align Spaces NPM version Dependency Status 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:

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;
};
`

License

MIT