Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
karma-commonjs-0.11
Advanced tools
A Karma plugin. Test CommonJS modules. Updating package.json to require 0.11 of karma
A Karma plugin that allows testing CommonJS modules in the browser. So if you are using Browserify for instance, you might find this plugin useful...
Creating a single bundle means "recompiling" the bundle anytime any file changes. On big project, this can significantly slow down the development. This plugin processes only files that changed.
The easiest way is to keep karma-closure
as a devDependency in your package.json
.
{
"devDependencies": {
"karma": "~0.10",
"karma-commonjs": "~0.1"
}
}
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['jasmine', 'commonjs'],
files: [
// your tests, sources, ...
],
preprocessors: {
'**/*.js': ['commonjs']
}
});
};
For an example project, check out Karma's client tests.
For more information on Karma see the homepage.
FAQs
A Karma plugin. Test CommonJS modules. Updating package.json to require 0.11 of karma
We found that karma-commonjs-0.11 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.