repeating

WebJar for repeating

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

repeating
Last Version

Last Version

2.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

repeating
WebJar for repeating
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/repeating

Download repeating

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/repeating/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>repeating</artifactId>
    <version>2.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/repeating/
implementation 'org.webjars.npm:repeating:2.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/repeating/
implementation ("org.webjars.npm:repeating:2.0.1")
'org.webjars.npm:repeating:jar:2.0.1'
<dependency org="org.webjars.npm" name="repeating" rev="2.0.1">
  <artifact name="repeating" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='repeating', version='2.0.1')
)
libraryDependencies += "org.webjars.npm" % "repeating" % "2.0.1"
[org.webjars.npm/repeating "2.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : is-finite jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

repeating Build Status

Repeat a string - fast

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

Install

$ npm install repeating

Usage

const repeating = require('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.

Related


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.

Versions

Version
2.0.1
2.0.0
1.1.3
1.1.2