🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

string-repeat

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-repeat

Repeat a string

1.1.1
latest
npm
Version published
Maintainers
1
Created
Source

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

Keywords

repeat

FAQs

Package last updated on 01 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts