0.5.0 • Published 3 years ago

@isbl/fs v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@isbl/fs

MIT License npm dependencies npm.io Releases

Wraps node:fs/promises and sync functions from node:fs to add proper async error stack.

Install

yarn add @isbl/fs

If you are using typescript then you should also install type definitions

yarn add -D @types/node

Usage

Same as original wrapped functions, also includes typescript definitions. Note that this module is ESM-only so it can't be imported using require.

import fs from '@isbl/fs'
await fs.readFile(...)

// or

import { readFile } from '@isbl/fs'
await readFile(...)

To use *Sync functions import them from @isbl/fs/sync

import fs from '@isbl/fs/sync'
fs.readFileSync(...)

// or

import { readFileSync } from '@isbl/fs/sync'
readFileSync(...)

Available functions

See start of index.js and sync.js files. They list all the exports.

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0-beta.2

3 years ago

0.3.0

3 years ago

0.3.0-beta.0

3 years ago

0.3.0-beta.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago