JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17439839
  • Score
    100M100P100Q225827F
  • License

Repeat the given string n times. Fastest implementation for repeating a string.

Package Exports

  • repeat-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (repeat-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

repeat-string NPM version

Repeat the given string n times. Fastest implementation for repeating a string.

Install with npm

npm i repeat-string --save

Install with bower

bower install repeat-string --save

Usage

repeat

Repeat the given string the specified number of times.

  • string {String}: The string to repeat
  • number {Number}: The number of times to repeat the string
  • returns {String}: Repeated string

Example:

var repeat = require('repeat-string');
repeat('A', 5);
//=> AAAAA

Author

Jon Schlinkert

Other javascript/node.js utils

Other projects that I maintain:

License

Copyright (c) 2014 Jon Schlinkert
Released under the MIT license


This file was generated by verb on December 06, 2014. To update, run npm i -g verb && verb.