
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
A tiny (337B) reusable date formatter. Extremely fast!
Inspired by tinytime, this module returns a "render" function that efficiently re-render your deconstructed template. This allows for incredibly performant results!
However, please notice that this only provides a limited subset of Date methods. If you need more, tinytime or date-fns are great alternatives!
$ npm install --save maskr
const maskr = require('maskr');
const fooDate = new Date('5/1/2017, 4:30:09 PM');
const stamp = maskr('Current time: [{HH}:{mm}:{ss}]');
stamp(fooDate);
//=> Current time: [16:30:09]
stamp();
//=> Current time: [17:09:34]
Type: string
The template pattern to be parsed.
Type: Date
Default: new Date()
The date from which to retrieve values. Defaults to current datetime.
{YYYY}: full year; eg: 2017{YY}: short year; eg: 17{MM}: month; eg: 04{DD}: day; eg: 01{HH}: hours; eg: 06 (24h){mm}: minutes; eg: 59{ss}: seconds; eg: 09maskr
--> 72,236,210 ops/sec ±0.89% (91 runs sampled)
tinytime
--> 27,530,608 ops/sec ±0.92% (93 runs sampled)
time-stamp
--> 569,692 ops/sec ±0.80% (90 runs sampled)
MIT © Luke Edwards
FAQs
A tiny (156B) utility to compare a string against a template mask.
We found that maskr 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
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.