{"library":"npm-install-fetch","type":"library","category":null,"description":"npm-install-fetch (v1.3.14, last updated 2024) is a Node.js API and CLI tool for automatically fetching external resources during the npm install step. It helps keep npm package distribution sizes small by downloading large binary assets or archives on install instead of bundling them. Key differentiators: supports YAML config, platform/architecture filtering, decompression, archive extraction with path mapping, and multiple resources per package. Unlike other fetch-on-install tools, it integrates tightly with npm's lifecycle scripts and offers both CLI and package.json configuration.","language":"javascript","status":"active","version":"1.3.14","tags":["javascript","npm","install","fetch","external","resource"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install npm-install-fetch","imports":["npx npm-install-fetch -n \"My Resource\" -o output.tgz https://example.com/resource.tar.gz","import { installFetch } from 'npm-install-fetch';\nawait installFetch({ input: 'https://...', output: './out' });","{\n  \"npm-install-fetch\": {\n    \"name\": \"My Resource\",\n    \"input\": \"https://...\",\n    \"output\": \"./out\"\n  }\n}"]},{"cmd":"yarn add npm-install-fetch","imports":[]},{"cmd":"pnpm add npm-install-fetch","imports":[]}],"homepage":"https://github.com/rse/npm-install-fetch","github":"https://github.com/rse/npm-install-fetch","docs":null,"changelog":null,"pypi":null,"npm":"npm-install-fetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}