https://github.com/remarkablemark/repeats
Repeat a string one or more times.
https://github.com/remarkablemark/repeats
Last synced: about 2 months ago
JSON representation
Repeat a string one or more times.
- Host: GitHub
- URL: https://github.com/remarkablemark/repeats
- Owner: remarkablemark
- License: mit
- Created: 2016-09-26T00:28:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-26T03:16:50.000Z (over 8 years ago)
- Last Synced: 2024-05-01T21:25:44.826Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/repeats
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# repeats
[](https://nodei.co/npm/repeats/)
[](https://www.npmjs.com/package/repeats)
[](https://travis-ci.org/remarkablemark/repeats)
[](https://coveralls.io/github/remarkablemark/repeats?branch=master)Repeat a string one or more times:
```
repeats(string[, number])
```#### Example
```js
var repeats = require('repeats');
console.log(repeats('na', 16), 'BATMAN!');
// nananananananananananananananana BATMAN!
```## Installation
```sh
$ npm install repeats
```## Testing
```sh
$ npm test
$ npm run lint
```## License
[MIT](https://github.com/remarkablemark/repeats/blob/master/LICENSE)