🚨 Shai-Hulud Strikes Again:More than 500 packages and 700+ versions compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@sane/fs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sane/fs

Promisified 'fs' API, for typescript.

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

@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

Keywords

promisify

FAQs

Package last updated on 08 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts