Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@kevinoid/assert-shim
Advanced tools
Implementation of the assert module from Node.js 15 for Node.js 10 or later.
An implementation of the Node.js v15.6.0 assert module for Node.js 10 and later.
Warning: This module is a work-in-progress, on an as-needed basis, which
is why I'm publishing it in the @kevinoid
namespace. If/When reasonable API
coverage is achieved, I'll plan to publish without a namespace and promote it
more broadly. See Implemented APIs for progress.
const assert = require('@kevinoid/assert-shim');
assert.match('Hello World', /hello/i);
This code will work on any Node.js version supported by this module.
assert
module.assert
module.
All properties of assert
are exported from assert-shim
to make switching
between the two easy.assert
module functions are used when available. (i.e.
require('@kevinoid/assert-shim').match === require('assert').match
on
Node.js versions which provide
assert.match
(v13.6/v12.16 or
later).This package can be installed using npm, either globally or locally, by running:
npm install @kevinoid/assert-shim
This module provides the same API as assert from Node.js v15.
Contributions are appreciated. Contributors agree to abide by the Contributor Covenant Code of Conduct. If this is your first time contributing to a Free and Open Source Software project, consider reading How to Contribute to Open Source in the Open Source Guides.
If the desired change is large, complex, backwards-incompatible, can have significantly differing implementations, or may not be in scope for this project, opening an issue before writing the code can avoid frustration and save a lot of time and effort.
This project is available under the terms of the MIT License (The same license as Node.js). See the summary at TLDRLegal.
FAQs
Implementation of the assert module from Node.js 15 for Node.js 10 or later.
The npm package @kevinoid/assert-shim receives a total of 1 weekly downloads. As such, @kevinoid/assert-shim popularity was classified as not popular.
We found that @kevinoid/assert-shim 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.