Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
A simple natural language duration parser written in javascript. Time ranges (in seconds) can also be converted to human readable strings. Check out the demo.
Inspired by chronic, and chronic_duration.
Client-side:
<script src="juration.js"></script>
Node.js:
var juration = require('juration');
juration.parse("3mins 5secs"); // returns 185
juration.stringify(185); // returns "3 mins 5 secs"
juration.stringify(185, { format: 'small' }); // returns "3 mins 5 secs"
juration.stringify(185, { format: 'micro' }); // returns "3m 5s"
juration.stringify(185, { format: 'long' }); // returns "3 minutes 5 seconds"
juration.stringify(185, { format: 'long', units: 1 }); // returns "3 minutes"
juration.stringify(3601, { format: 'micro', units: 2 }); // returns "1h"
Client-side:
<script src="../languages/it-IT.js"></script>
Node.js
juration.setLanguage('it-IT');
Parse-able strings:
juration.parse("10", { defaultUnit: 'minutes' }) // returns 600
Juration is copyright © 2011 Dom Christie and released under the MIT license.
FAQs
Juration.js ========
The npm package juration receives a total of 6,251 weekly downloads. As such, juration popularity was classified as popular.
We found that juration 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.