![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@sapphirecode/consts
Advanced tools
version: 1.2.x
useful constant values that are used in many applications
npm:
npm i --save @sapphirecode/consts
yarn:
yarn add @sapphirecode/consts
there are many constants, too many to document by hand so I suggest you use autocomplete or look into the source.
Http status codes:
const {http} = require('@sapphirecode/consts');
console.log(http.status_ok); // 200
Time
const {time} = require('@sapphirecode/consts');
console.log(time.base_ms.minute); // 60000
The time module contains a few precalculated bases like base_s, base_ms, base_us and base_ns. Those allow you to use timers without calculating everything first.
timer(base_ms.week) instead of timer(1000 x 60 x 60 x 24 x 7) or timer(base_us.week) if your timer counts in microseconds
time intervals above one week are functions, because they require additional information to be calculated
console.log(time.base_ms.year(2020));
console.log(time.base_ms.year(12, 2020));
MIT © Timo Hocker timo@scode.ovh
FAQs
useful constant values that are used in many applications
The npm package @sapphirecode/consts receives a total of 0 weekly downloads. As such, @sapphirecode/consts popularity was classified as not popular.
We found that @sapphirecode/consts 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.