@sane/fs
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@sane/fs

Promisified 'fs' API, for TypeScript.

Just import it and use it like the regular 'fs' module.

Install

npm install @sane/fs --save

Api

If foo gives you a callback, fooAsync will give you a promise. See src/index.ts for a list of promisifed methods.

Example

import * as fs from '@sane/fs';

await fs.unlinkAsync('/tmp/foo');

Compatibility

  • Requires Node >= v4.0.0

Release

  1. Bump up the version number in package.json
  2. Add a section for the new release in CHANGELOG.md
  3. Run npm run prepublish to ensure it builds
  4. Commit
  5. Run npm publish
  6. Create a git tag for the new release and push it

Readme

Keywords

Package Sidebar

Install

npm i @sane/fs

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • sane