repeat-text
Repeat the given string n times. Build with nan.
Install
# With npm
npm i repeat-text
How to use
const stringRepeat = require('repeat-text');
stringRepeat('pizza', 3) // ~> 'pizzapizzapizza'
stringRepeat('hey', 2) // ~> 'heyhey'
Repeat the given string n times. Build with nan.
# With npm
npm i repeat-text
const stringRepeat = require('repeat-text');
stringRepeat('pizza', 3) // ~> 'pizzapizzapizza'
stringRepeat('hey', 2) // ~> 'heyhey'
npm i repeat-text
2
1.0.3
MIT
3.32 kB
6