@sane/fs
v1.0.4
Published
Promisified 'fs' API, for typescript.
Downloads
3
Readme
@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
- Bump up the version number in package.json
- Add a section for the new release in CHANGELOG.md
- Run npm run prepublish to ensure it builds
- Commit
- Run npm publish
- Create a git tag for the new release and push it