
Product
Introducing Immutable Scans
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.
@node-loader/http
Advanced tools
A nodejs loader for loading modules over the network with http/https.
npm install --save @node-loader/http
# Or, if you prefer Yarn
yarn add --save @node-loader/http
Create a file that imports a module over http:
import * as singleSpa from "http://unpkg.com/single-spa@5.5.5/lib/esm/single-spa.dev.js";
Now run node with the --experimental-loader flag:
node --experimental-loader @node-loader/http file.js
This project uses node-fetch to implement familiar HTTP semantics, including http redirects, https redirects, HTTP status checks, etc. Customizing the behavior of node-fetch is planned, but not yet implemented.
If you wish to combine http loader with other NodeJS loaders, you may do so by using node-loader-core.
FAQs
An http and https nodejs loader
The npm package @node-loader/http receives a total of 61 weekly downloads. As such, @node-loader/http popularity was classified as not popular.
We found that @node-loader/http demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.

Product
Campaign-level threat intelligence in Socket now shows when active supply chain attacks affect your repositories and packages.