Skip to content

Commit

Permalink
Require Node.js 10
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 24, 2020
1 parent d3fcaf0 commit af61527
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: sindresorhus
custom: https://sindresorhus.com/donate
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
language: node_js
node_js:
- '14'
- '12'
- '10'
- '8'
2 changes: 1 addition & 1 deletion license
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
"description": "Run promise-returning & async functions a specific number of times concurrently",
"license": "MIT",
"repository": "sindresorhus/p-times",
"funding": "https://github.com/sponsors/sindresorhus",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
"url": "https://sindresorhus.com"
},
"engines": {
"node": ">=8"
"node": ">=10"
},
"scripts": {
"test": "xo && ava && tsd"
Expand Down
18 changes: 5 additions & 13 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# p-times [![Build Status](https://travis-ci.org/sindresorhus/p-times.svg?branch=master)](https://travis-ci.org/sindresorhus/p-times)
# p-times [![Build Status](https://travis-ci.com/sindresorhus/p-times.svg?branch=master)](https://travis-ci.com/sindresorhus/p-times)

> Run promise-returning & async functions a specific number of times concurrently

## Install

```
$ npm install p-times
```


## Usage

```js
Expand All @@ -23,10 +21,9 @@ const pTimes = require('p-times');
})();
```


## API

### pTimes(count, mapper, [options])
### pTimes(count, mapper, options?)

Returns a `Promise` that is fulfilled when all promises returned from `mapper` are fulfilled, or rejects if any of the promises reject. The fulfilled value is an `Array` of the fulfilled values returned from `mapper` in order.

Expand All @@ -44,12 +41,12 @@ Expected to return a `Promise` or value.

#### options

Type: `Object`
Type: `object`

##### concurrency

Type: `number`<br>
Default: `Infinity`<br>
Type: `number`\
Default: `Infinity`\
Minimum: `1`

Number of concurrently pending promises returned by `mapper`.
Expand All @@ -67,8 +64,3 @@ When set to `false`, instead of stopping when a promise rejects, it will wait fo
- [p-map](https://github.com/sindresorhus/p-map) - Map over promises concurrently
- [p-filter](https://github.com/sindresorhus/p-filter) - Filter promises concurrently
- [More…](https://github.com/sindresorhus/promise-fun)


## License

MIT © [Sindre Sorhus](https://sindresorhus.com)

0 comments on commit af61527

Please sign in to comment.