UNPKG

get-node

Version:

Download a specific version of Node.js

13 lines (8 loc) 287 B
import globalCacheDir from"global-cache-dir"; export const getDefaultOutput=async()=>await globalCacheDir(CACHE_DIR); const CACHE_DIR="nve"; export const validateOutput=(output)=>{ if(typeof output!=="string"){ throw new TypeError(`Option "output" must be a string: ${output}`) } };