Socket
Socket
Sign inDemoInstall

@grain/stdlib

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@grain/stdlib

The standard library for the Grain language.


Version published
Maintainers
0
Created
Source

@grain/stdlib

The standard library for the Grain language.

Why

This package provides a distributable copy of the Grain standard library. Currently, it is available through npm.

Installation

Usually, you won't need to install this package. However, if you need it, install it with npm:

npm install @grain/stdlib

Usage

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

API

This package includes generated markdown documentation, but we recommend using our API docs on grain-lang.org.

License

MIT

Contributing

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

Keywords

FAQs

Package last updated on 12 Aug 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc