Skip to content

Commit

Permalink
update devDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Nov 3, 2018
1 parent 4172089 commit 3e735e0
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 214 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -2,7 +2,7 @@

[![npm version](https://img.shields.io/npm/v/read-remove-file.svg)](https://www.npmjs.com/package/read-remove-file)
[![Build Status](https://travis-ci.org/shinnn/node-read-remove-file.svg?branch=master)](https://travis-ci.org/shinnn/node-read-remove-file)
![Coverage Status](https://coveralls.io/repos/github/shinnn/node-read-remove-file/badge.svg?branch=master)](https://coveralls.io/github/shinnn/node-read-remove-file?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/shinnn/node-read-remove-file/badge.svg?branch=master)](https://coveralls.io/github/shinnn/node-read-remove-file?branch=master)

Read a file, then remove it

Expand Down Expand Up @@ -33,13 +33,13 @@ const readRemoveFile = require('read-remove-file');
### readRemoveFile(*path* [, *options*])

*path*: `string` `Buffer` `Uint8Array` `URL` (a file path) or `integer` (a file descriptor)
*options*: `Object` or `string` ([`fs.readFile`][fs.readFile] options)
*options*: `Object` or `string` ([`fs.readFile`][readFile] options)
Return: `Promise<Buffer|string>`

It [reads a file][fs.readFile], [removes the file](https://nodejs.org/api/fs.html#fs_fs_unlink_path_callback) and returns a `Promise` of the file contents.
It [reads a file][readFile], [removes it](https://nodejs.org/api/fs.html#fs_fs_unlink_path_callback) and returns a `Promise` of the file contents.

## License

[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe

[fs.readFile]: https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback
[readFile]: https://nodejs.org/api/fs.html#fs_fs_readfile_path_options_callback

0 comments on commit 3e735e0

Please sign in to comment.