Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

repeating

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

repeating

Repeat a string - fast

    4.0.0latest

Version published
Maintainers
1
Weekly downloads
7,467,068
decreased by-11.05%

Weekly downloads

Changelog

Source

Breaking

  • Require Node.js 12 286b3e4
  • This package is now pure ESM. Please read this.

https://github.com/sindresorhus/repeating/compare/v3.0.0...v4.0.0

Readme

Source

repeating

Repeat a string - fast

This module is moot now. Just use String#repeat().

Install

$ npm install repeating

Usage

import repeating from 'repeating'; repeating(5); //=> ' ' repeating(100, 'unicorn '); //=> 'unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn unicorn '

API

repeating(count, string?)

count

Type: number

Times the string should be repeated.

string

Type: string
Default: ' '

String to repeat.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Keywords

FAQs

What is repeating?

Repeat a string - fast

Is repeating popular?

The npm package repeating receives a total of 7,135,385 weekly downloads. As such, repeating popularity was classified as popular.

Is repeating well maintained?

We found that repeating demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 03 May 2021

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

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc