
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
#ambit
So it turns out I couldn't find anything out there that parsed a date string in nominally plain English and returned a date range. This is a WIP attempt at doing so. Requires moment.
#use
var ambit = require('ambit'); //ambit is moment + ambit now;
var range = ambit.ambit('Spring 2005');
range will now either be undefined (unparseable input) or an object w/ a start
and end
attribute, which will be moment objects representing the start and end range of the input.
##formatting
var ambit = require('ambit');
var range = ambit.ambit('Sept 2020', 'YYYY-MM-DD');
the start
and end
attributes will now be strings formatted YYYY-MM-DD
That's about it for now, it's pretty basic, probably has lots of edge-case bugs, and needs more tests.
License: MIT
FAQs
Date parser that returns a range instead of a single value
The npm package ambit receives a total of 3 weekly downloads. As such, ambit popularity was classified as not popular.
We found that ambit 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 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.