string-repeat

Repeat a string

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
string-repeat
1.1.19 years ago9 years agoMinified + gzip package size for string-repeat in KB

Readme

Imgur

Install

``` $ npm install --save repeat ```

Usage

```js 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