NPM Smell 🍑💨

trivial and outdated NPM packages

repeating outdated npm logo

Convoluted way to call String.prototype.repeat()

Weekly Downloads
2,739,246
Dependencies
0
Latest Release
5 years ago
Switch to the native implementation.
Outdated
natively supported
since 10 years (chrome, firefox, safari, nodejs)

About

This dependency reimplements the native String.prototype.repeat() method. It is supported by all modern browsers and Node.js versions since ES6 (2015).

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