actual-empty-object
v1.0.0
Published
An empty object, useful for shimming
Downloads
31
Readme
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