n-string
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

n-string

Repeat a string with the use of cache.

Usage

repeat(string, number)

const repeat = require('n-string');

repeat('a', 5); // <= 'aaaaa'
  • string {String} - a string to repeat
  • number {Number} - number of times to repeat a string

License

MIT

/n-string/

    Package Sidebar

    Install

    npm i n-string

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    5

    Last publish

    Collaborators

    • mrozio