Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

string-repeat

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Issues
File Explorer

Advanced tools

string-repeat

Repeat a string

    1.1.1latest
    npm

Version published
Maintainers
1
Weekly downloads
792
increased by46.94%

Weekly downloads

Readme

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

FAQs

Last updated on 01 Aug 2015

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • 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