
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
is-iso-date
Advanced tools
is-iso-date is a simple utility to check if a string is an ISO-compliant date.
$ npm install is-iso-date
var isISODate = require( 'is-iso-date' );
console.log( isISODate( '2015-02-21T00:52:43.822Z' ) ); // true
console.log( isISODate( '2015-02-21T00:52:43.822' ) ); // false
console.log( isISODate( '2015-02-21T00:52:43Z' ) ); // true
console.log( isISODate( '2015-02-21T00:52:43' ) ); // false
console.log( isISODate( '2015-02-21T00:52Z' ) ); // true
console.log( isISODate( '2015-02-21T00:52' ) ); // false
console.log( isISODate( '2015-02-21T00Z' ) ); // false
This is basically just the regexp from this StackOverflow discussion wrapped in a tiny library with some tests: http://stackoverflow.com/questions/3143070/javascript-regex-iso-datetime
FAQs
A simple utility to check if a string is an ISO-compliant date.
We found that is-iso-date 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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.