An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# repeats

[![NPM](https://nodei.co/npm/repeats.png)](https://nodei.co/npm/repeats/)

[![NPM version](https://img.shields.io/npm/v/repeats.svg)](https://www.npmjs.com/package/repeats)
[![Build Status](https://travis-ci.org/remarkablemark/repeats.svg?branch=master)](https://travis-ci.org/remarkablemark/repeats)
[![Coverage Status](https://coveralls.io/repos/github/remarkablemark/repeats/badge.svg?branch=master)](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)