Security News
Combatting Alert Fatigue by Prioritizing Malicious Intent
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
@grain/stdlib
Advanced tools
The standard library for the Grain language.
This package provides a distributable copy of the Grain standard library. Currently, it is available through npm.
Usually, you won't need to install this package. However, if you need it, install it with npm:
npm install @grain/stdlib
Grain programs will search for an imported module in the stdlib
if not available in your other search paths.
For example, you can import the number
stdlib:
module Main
from "number" include Number
assert Number.abs(-1) == 1
This package includes generated markdown documentation, but we recommend using our API docs on grain-lang.org.
MIT
If you want to contribute to the stdlib
, please consider the guidelines here, if you want something to work on you can find open issues here.
To regenerate the `stdlib`` documentation you can run:
grain doc stdlib -o stdlib --current-version=$(grain -v)
To format the stdlib
you can run:
grain format ./stdlib/ -o ./stdlib/
To run the stdlib
tests you can run:
npm run compiler test -- --filter stdlib
FAQs
The standard library for the Grain language.
We found that @grain/stdlib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.