
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
module_loader
Advanced tools
Another implementation of require for the browser.
pathname = require("path")
ModuleLoader = require("./module_loader")
new ModuleLoader
# env: "production"
# server: require("express").createServer()
module_root: pathname.resolve("./node_modules")
packages: ["underscore", "underscore.string", "jquery", "jwerty", "socket.io-client", "share", "alpha_simprini"]
module_root
: (REQUIRED) A fully resolved path which is the node_modules directory to load code from.
packages
: (REQUIRED) A list of npm package names. They will be looked up in ./node_modules
ignorepath
: (RECCOMENDED) A path to a .stitchignore file, with patterns of files to ignore when packing and requiring.
env
: production
or development
(default is development)
server
: Uses the express server api. If you don't provide one one will be made for you at port 2334.
ignorepath: ./.moduleignore
Sort of like .gitiginore, but without any fancy matching. SOME packages will have files that MUST be ignored in the browser. MOST packages will have files that SHOULD be ignored in the browser.
<!DOCTYPE html>
use it
_ = require("underscore")
jquery
- You can't do the equivalent of window.$ = require("jquery"); $ is overwritten as undefined before you can get to it.FAQs
Yet another implementation of require for the browser. (RUN AWAY NOW!)
The npm package module_loader receives a total of 2 weekly downloads. As such, module_loader popularity was classified as not popular.
We found that module_loader 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.