string-repeat

v1.0.1
Repeat a string
repeat repeating str string fill

Imgur

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

Metadata

  • MIT
  • Whatever
  • Maximilian Lloyd
  • released 7/14/2015

Downloads

Maintainers