Skip to main content

latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
76%
Published
a month ago (0.0.4)

Utis npm

A collection of utilities for the Gleam Tools

Usage

API

assert

Assert function

isGleamFile

Check if a file is a Gleam file

isJsFile

Check if a file is a JavaScript file

readJsFile

Read a Gleam file and return its content

getJsFilePath

Get the path of the JavaScript file generated from a Gleam file

build

Build the project using Gleam

readGleamConfig

Read the Gleam configuration file

readSyncGleamConfig

Read the Gleam configuration file

getDeclarationFilePath

Get the path of the declaration file generated from a Gleam file

Note

This is only for internal use and should not be used outside of the Gleam Tools project.

Add Package

deno add jsr:@gleam-tools/utils

Import symbol

import * as utils from "@gleam-tools/utils";

---- OR ----

Import directly with a jsr specifier

import * as utils from "jsr:@gleam-tools/utils";

Add Package

npx jsr add @gleam-tools/utils

Import symbol

import * as utils from "@gleam-tools/utils";

Add Package

yarn dlx jsr add @gleam-tools/utils

Import symbol

import * as utils from "@gleam-tools/utils";

Add Package

pnpm dlx jsr add @gleam-tools/utils

Import symbol

import * as utils from "@gleam-tools/utils";

Add Package

bunx jsr add @gleam-tools/utils

Import symbol

import * as utils from "@gleam-tools/utils";