
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
mocha-standard
Advanced tools
Integrates standard into your mocha tests. This allows you to enforce a "one true" JavaScript coding style in your project via Mocha tests.

This offers a finer alternative to adding standard into package.json's scripts.test block.
mocha --watch to recheck for style failures. standard is used programatically, removing a huge overhead (around 1500ms) in re-running it repeatedly with --watch.(Your speed gains may be a bit different from my Pentium II, of course.)
Install it:
npm install --save-dev mocha-standard standard
Then add this test file to your Mocha suite:
/* test/standard_test.js */
it('conforms to standard', require('mocha-standard'))
To configure what files to consume:
var standard = require('mocha-standard')
it('conforms to standard', standard.files([ 'index.js', 'test/*.js' ]))
To use semistandard instead, use:
npm install --save-dev mocha-standard semistandard
/* test/standard_test.js */
it('conforms to standard', require('mocha-standard/semistandard'))
mocha-standard © 2015+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz
FAQs
Integrate the JS standard to your Mocha tests
We found that mocha-standard 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.