npm.io
0.0.4 • Published 1 year ago

@gleam-tools/utils

Licence
MIT
Version
0.0.4
Deps
1
Size
12 kB
Vulns
0
Weekly
0
Stars
3

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.