https://github.com/afeiship/next-repeat
Repeat for next.
https://github.com/afeiship/next-repeat
next repeat
Last synced: 9 months ago
JSON representation
Repeat for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-repeat
- Owner: afeiship
- License: mit
- Created: 2017-08-17T02:56:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T10:17:26.000Z (over 5 years ago)
- Last Synced: 2025-01-06T08:08:44.001Z (about 1 year ago)
- Topics: next, repeat
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-repeat
> Repeat for next.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-repeat
```
## usage
```js
import '@jswork/next-repeat';
nx.repeat('abc', 2);
// => 'abcabc'
nx.repeat('abc', 2, { joinChar: '-'});
// => 'abc-abc'
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-repeat/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-repeat
[version-url]: https://npmjs.org/package/@jswork/next-repeat
[license-image]: https://img.shields.io/npm/l/@jswork/next-repeat
[license-url]: https://github.com/afeiship/next-repeat/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-repeat
[size-url]: https://github.com/afeiship/next-repeat/blob/master/dist/next-repeat.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-repeat
[download-url]: https://www.npmjs.com/package/@jswork/next-repeat