actual-empty-object

1.0.0 • Public • Published

actual-empty-object

I am using this to shim modules in a react-native project but this can also be used with browserify. It does what is says on the tin, it exports an empty object, thats it! Compatibility goes way back to the first node version, and it's 100% bug free.

Install

npm install --save actual-empty-object

Use

Let's replace the fs module with an empty object in a browserify build

"browser"{
  "fs": "actual-empty-object"
}

The same for a react-native project

"react-native"{
  "fs": "actual-empty-object"
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i actual-empty-object

Weekly Downloads

24

Version

1.0.0

License

MIT

Last publish

Collaborators

  • vespakoen