Package Exports
- ethers-utils
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ethers-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ethers.io Utilities
@TODO: Fill this in
The API is still under a lot of flux.
getopts
var getopts = require('ethers-utils').getopts;
try {
var opts = getopts({
port: 5000,
}, {
help: false,
version: false,
});
opts.ensureInteger(port);
} catch (error) {
console.log(error);
}
console.log(opts);
fetchUrl
var fetchUrl = require('ethers-utils').fetchUrl;
fetchUrl('http://www.ricmoo.com', function(error, body) {
console.log(error, body);
});