Socket
Socket
Sign inDemoInstall

string-repeat

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    string-repeat

Repeat a string


Version published
Weekly downloads
570
decreased by-25.39%
Maintainers
1
Install size
1.30 kB
Created
Weekly downloads
 

Readme

Source

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

License

MIT ©Maximilian Lloyd

Keywords

FAQs

Last updated on 15 Jul 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc