str-repeat
v1.0.1
Published
Function to create a new string from a repeated substring.
Downloads
2
Readme
str-repeat
Usage
Function to create a new string from a repeated substring.
var strRepeat = require('str-repeat');
strRepeat("Hello, world!", 3);
//=> "Hello, world!Hello, world!Hello, world!"
Running tests
Install dev dependencies:
$ npm i -d && npm test
Author
Dusan Vesic