
Security News
AI Agent Submits PR to Matplotlib, Publishes Angry Blog Post After Rejection
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.
right-align-values
Advanced tools
Right align the values of a given property for each object in an array. Useful for creating text columns or tables.
Right align the values of a given property for each object in an array. Useful for creating text columns or tables.
Install with npm
$ npm i right-align-values --save
object
align({
a: 'b',
c: 'dddddd',
e: 'fff',
g: 'hhhhh'
});
Results in:
{
a: ' b',
c: 'dddddd',
e: ' fff',
g: ' hhhhh',
}
array of objects
var align = require('right-align-values');
var arr = [{a: 'b'}, {a: 'bb'}, {a: 'bbbb'}, {a: 'bbb'}, {a: 'bb'}];
align(arr, 'a');
Results in:
[
{a: ' b'},
{a: ' bb'},
{a: 'bbbb'},
{a: ' bbb'},
{a: ' bb'}
];
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 15, 2015.
FAQs
Right align the values of a given property for each object in an array. Useful for creating text columns or tables.
We found that right-align-values demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.

Security News
HashiCorp disclosed a high-severity RCE in next-mdx-remote affecting versions 4.3.0 to 5.x when compiling untrusted MDX on the server.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.