JSPM

right-pad-keys

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

Right pad the keys of an object.

Package Exports

  • right-pad-keys

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 (right-pad-keys) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

right-pad-keys NPM version Build Status

Right pad the keys of an object.

Install

Install with npm

$ npm i right-pad-keys --save

Usage example

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

Results in:

{
  'a      ': 'x',
  'bbb    ': 'x',
  'ccccc  ': 'x',
  'ddddddd': 'x'
}
  • longest: Get the longest item in an array.
  • longest-value: Get the longest value for the given property from an array of objects, or the… more
  • pad-left: Left pad a string with zeros or a specified string. Fastest implementation.
  • pad-right: Right pad a string with zeros or a specified string. Fastest implementation.
  • repeat-element: Create an array by repeating the given value n times.
  • repeat-string: Repeat the given string n times. Fastest implementation for repeating a string.
  • right-align-keys: Right align the keys of an object.
  • right-align-values: Right align the values of a given property for each object in an array. Useful… more
  • right-pad-values: Right pad the values of a given property for each object in an array. Useful… more

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.