
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Superjoin is a module loader for the web. It brings Node.js like require support to the front-end. It uses npm or bower as package storage and gives you the possibility to use your own local packages.
Superjoin is available on NPM the packagemanager for Node.js
The command to install it global:
npm install -g superjoin
If you prefer a local installation then remove the -g flag from install command.
Node.js >= 4.2.0
Superjoin can be configured with a superjoin.json file placed everywhere in your project.
A minimum configuration looks like:
{
"name": "myproject",
"main": "index.js",
"files": [
"hello.js"
]
}
Superjoin parse all modules an includes submodules automatically. You mustn't add all your requirements in the superjoin file.
$ superjoin -o build.js
Run this command from the same folder where your superjoin.json file is. That command will create a bundle with all modules and their requirements.
Place this simple html snippet in the head of your index.html
<script type="text/javascript" src="build.js"></script>
//Load local modules
var myModule = require('./modules/myModule.js');
//Load from node_modules or bower_components
var $ = require('jquery');
The difference of local and npm/bower modules is the leading ./ or ../.
If a module name starts with ./ or ../ it will be loaded as a local file.
All other modules are being processed as npm or bower modules.
The loading order of npm/bower modules is the following:
Tries to load it from bower_components. If no bower_module folder is found, tries to load it from a bower_components folder in the parent directory, until the root directory.
Tries to load it from node_modules. If no bower_module folder is found, tries to load it from a node_modules folder in the parent directory, until the root directory.
Tries to resolve the path as a local module.
Throws a module not found error.
Looking for plugins?
Superjoin plugin for Grunt.
FAQs
Brings node.js like module loader support to the web
The npm package superjoin receives a total of 19 weekly downloads. As such, superjoin popularity was classified as not popular.
We found that superjoin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.