0.1.4 • Published 2 years ago
esm-hook v0.1.4
esm-hook
Use ESM modules with zero setup.
require("esm-hook");
const fetch = require("node-fetch").default;
fetch("https://hacker-news.firebaseio.com/v0/item/8863.json?print=pretty")
.then(req => req.json())
.then(json => console.log(json))
.catch(console.error);
License
MIT