fs-extra-factory
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

fs-extra-factory

this is library is mainly built for the browser environment,now fs-extra-factory is export a factory, you should pass external module of fs, path, process, buffer, assert,so we can use browserfs with this library

Usage

import fsExtraFactory from 'fs-extra-factory'
const fs = fsExtraFactory({
  path,
  fs,
  buffer,
  assert,
  process
})

the return object fs has same interface with fs-extra

Unit Test

beacuse browserfs does't support some api like link, chmod, so just skip these cases, now the test result:

156 passing
578 pending

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.1
    3
  • 0.2.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i fs-extra-factory

Weekly Downloads

3

Version

0.2.1

License

MIT

Unpacked Size

180 kB

Total Files

36

Last publish

Collaborators

  • winjowind