# string.prototype.repeat **Repository Path**: mirrors_fis-components/string.prototype.repeat ## Basic Information - **Project Name**: string.prototype.repeat - **Description**: Fork from https://github.com/mathiasbynens/String.prototype.repeat.git - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ES6 `String.prototype.repeat` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.prototype.repeat.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.prototype.repeat) A robust & optimized ES3-compatible polyfill for [the `String.prototype.repeat` method in ECMAScript 6](http://ecma-international.org/ecma-262/6.0/#sec-string.prototype.repeat). Other polyfills for `String.prototype.repeat` are available: * by [Paul Miller](http://paulmillr.com/) (~~[fails 8 tests](https://github.com/paulmillr/es6-shim/issues/164)~~ now passes all tests) ## Installation In a browser: ```html ``` Via [npm](https://www.npmjs.com/): ```bash npm install string.prototype.repeat ``` Then, in [Node.js](https://nodejs.org/): ```js require('string.prototype.repeat'); // On Windows and on Mac systems with default settings, case doesn’t matter, // which allows you to do this instead: require('String.prototype.repeat'); ``` ## Author | [![twitter/mathias](https://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") | |---| | [Mathias Bynens](https://mathiasbynens.be/) | ## License This polyfill is available under the [MIT](https://mths.be/mit) license.