UNPKG

all-node-versions

Version:
15 lines (11 loc) 311 B
import{json}from"node:stream/consumers"; import fetchNodeWebsite from"fetch-node-website"; export const fetchIndex=async(fetchNodeOpts)=>{ const response=await fetchNodeWebsite(INDEX_PATH,{ ...fetchNodeOpts, progress:false }); const index=await json(response); return index }; const INDEX_PATH="index.json";