Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 495 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 495 Bytes

esm-hook

License npm version

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