This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@extra-string/space

2.0.20 • Public • Published

Returns a string of spaces.

  • 5x Faster than ' '.repeat(n).
  • Uses cache & substr.

This is part of package extra-string.

var space = require('@extra-string/space');
// space(<length>)

space(4);  // '    '
space(6);  // '      '
space(0);  // ''
space(-1); // ''

extra-string

Readme

Keywords

Package Sidebar

Install

npm i @extra-string/space

Weekly Downloads

0

Version

2.0.20

License

MIT

Unpacked Size

1.58 kB

Total Files

5

Last publish

Collaborators

  • npm