Popularity
1.3
Stable
Activity
1.8
Growing
32
7
10

Monthly Downloads: 0
Programming language: JavaScript
License: MIT License
Tags: Text     String     Str     Pad     Fill     Repeating     Repeat    
Latest version: v3.0.0

repeating alternatives and similar modules

Based on the "Text" category.
Alternatively, view repeating alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of repeating or a related project?

Add another 'Text' Module

README

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 companiesassurances about security, maintenance, and licensing for their dependencies.