Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Tidelift tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 31, 2019
1 parent 7ae9634 commit f0e84e7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/funding.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
github: sindresorhus
open_collective: sindresorhus
tidelift: npm/p-finally
custom: https://sindresorhus.com/donate
3 changes: 3 additions & 0 deletions .github/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
17 changes: 15 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ npm install p-finally
```js
const pFinally = require('p-finally');

const directory = createTempDir();
const directory = createTempDirectory();

(async () => {
await pFinally(write(directory), () => {
Expand All @@ -29,7 +29,7 @@ const directory = createTempDir();

## API

### pFinally(promise, [onFinally])
### pFinally(promise, onFinally?)

Returns a `Promise`.

Expand All @@ -44,3 +44,16 @@ Note: Throwing or returning a rejected promise will reject `promise` with the re

- [p-try](https://github.com/sindresorhus/p-try) - `Promise.try()` ponyfill - Starts a promise chain
- [More…](https://github.com/sindresorhus/promise-fun)


---

<div align="center">
<b>
<a href="https://tidelift.com/subscription/pkg/npm-p-finally?utm_source=npm-p-finally&utm_medium=referral&utm_campaign=readme">Get professional support for this package with a Tidelift subscription</a>
</b>
<br>
<sub>
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies.
</sub>
</div>

0 comments on commit f0e84e7

Please sign in to comment.