repeat-str

1.0.0 • Public • Published

repeat-str.js

Repeat a string or an array of strings

⚙️ Installation

npm i repeat-str

CDN Links:

📖 Usage

※ Import

// ES6
import repeatStr from "repeat-str";

// commonjs
const repeatStr = require("repeat-str");

※ Repeat

// ▸ string
const repeated = repeatStr(30, "hello");
console.log(repeated);

// ▸ array
const array_repeated = repeatStr(30, ["hello", "hi"]);
console.log(array_repeated);

Support me on Patreon - Check out my socials

Package Sidebar

Install

npm i repeat-str

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.08 kB

Total Files

4

Last publish

Collaborators

  • axoraxdev