Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
module_loader
Advanced tools
Yet another implementation of require for the browser. (RUN AWAY NOW!)
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 0 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
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.