Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 741 Bytes

File metadata and controls

31 lines (22 loc) · 741 Bytes

script-utils

Utilities for Cavalry scripts

Warning

This library is in active development. Expect breaking changes.

Installation

Install from this Github repo

npm install scenery-io/script-utils --save-dev

Usage

It's recommended that you use these utils with @scenery/create-script or an equivalent Typescript bundler.

Simply import any of the available utils.

// import everything
import * as utils from '@scenery/script-utils'
// or a single util
import { isMac } from '@scenery/script-utils'
// and use as desired
utils.timeout(() => {
	console.log(isMac)
}, 1000)