![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
haystack-units
Advanced tools
Readme
The unit database for haystack-core.
This project compiles a complete unit database that can be used an application to convert between different numerical units.
Since there are a lot of units (that an application may or may not use), the database is built into this separate library instead of haystack-core.
The database is compiled from Fantom's unit database file units which in turn is based on the unit database from oBIX.
When this module is built, the units database is parsed and compiled into TypeScript. Therefore every unit has its strongly typed with its own name.
In order for units to be successfully used with HNum either the whole unit database just the units the user is interested in must be imported.
npm install haystack-core haystack-units
Please click here for the API documentation.
To import the whole unit database into your application...
import 'haystack-units'
...or...
import units from 'haystack-units'
If you're developing an UI application that uses webpack, you may want to only import the particular units you're interested in. This will employ tree shaking to ensure only the units your application is using is built into your app...
import {second, millisecond} from 'haystack-units'
...
const msNum = secondsNum.convertTo(millisecond)
When using this approach remember to import the units you are intending to convert to (millisecond) and from (second).
Please see HNum and HUnit in haystack-core for more information.
FAQs
Project Haystack core units
The npm package haystack-units receives a total of 907 weekly downloads. As such, haystack-units popularity was classified as not popular.
We found that haystack-units demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers 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 now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.