Home

Awesome

right-align-keys NPM version Build Status

Right align the keys of an object.

Install

Install with npm

$ npm i right-align-keys --save

Usage example

align({
  a: 'x', 
  bbb: 'x', 
  ccccc: 'x', 
  ddddddd: 'x'
});

Results in:

{
  '      a': 'x',
  '    bbb': 'x',
  '  ccccc': 'x',
  'ddddddd': 'x'
}

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on August 15, 2015.