string-just
Add Ruby ljust/rjust methods to JavaScript String
Installation
Install with npm:
$ npm install string-just
Install with component:
$ component install MisumiRize/js-string-just
Example
Basic
var just = ; just; // => 'test 'just; // => ' test' just; // => 'testaaaaaa'
Polyfill
; 'test'; // => 'test '