$ npm install @protobufjs/fs
Provides node's fs module only if available.
var fs = require("@protobufjs/fs");
You can then feature-check using:
if (fs.readFile) {
...
}
License: Apache License, Version 2.0
© 2010 - cnpmjs.org x YWFE | Home | YWFE