NPM Smell 🍑💨

trivial and outdated NPM packages

repeating outdated npm logo

Convoluted way to call String.prototype.repeat

Weekly Downloads
4,571,613
Dependencies
0
Latest Release
3 years ago
This dependency re-creates a native JavaScript API. It is recommended to use the native API instead
Outdated
natively supported
since 9 years (chrome, firefox, safari, nodejs)

About

This dependency reimplents the native String.prototype.repeat() method. It is supported by all modern browsers and Node.js versions since about x years.

// Repeat a string
const str = "foo";
console.log(str.repeat(3)); // "foofoofoo"