string-repeat
v1.1.1
Published
Repeat a string
Downloads
3,385
Readme
Install
$ npm install --save repeat
Usage
var repeat = require('string-repeat');
var example = repeat('repeat ', 5);
//=> repeat repeat repeat repeat repeat
console.log(example);
//=> repeat repeat repeat repeat repeat
API
repeat(input, times)
input
Type: string
String to be repeated
times
Type: number
Number of times for string to be repeated
Patch notes: 1.1.1
Bug fixes and other improvements have been made, a logo has also been added
License
MIT ©Maximilian Lloyd