Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-ray

permafrost-dev12.1kMIT2.1.2TypeScript support: included

Understand and fix Javascript & TypeScript bugs faster

ray, debug, dump, spatie, permafrost

readme

node-ray

test status npm version license
Codecov tech debt

npm downloads jsDelivr hits (npm) npm-installs-monthly

node-ray

The official Node/JS & TypeScript integration for Ray - Understand and fix bugs faster.

The package can be installed in any NodeJS, ES6+, or TypeScript application to send data to the Ray app.


Installation

Install with npm:

npm install node-ray

or bun:

bun add node-ray

Available environments

node-ray offers several options to allow you to use it in either NodeJS, Web-based TypeScript or Javascript projects, and browser environments.

If you're using NextJs/React, take a look at permafrost-dev/react-ray.

If you're using Vue, check out permafrost-dev/vue-ray.

NodeJS

When using in a NodeJS environment (the default), import the package as you would normally:

// es module import:
import { ray } from 'node-ray';

// commonjs import:
const ray = require('node-ray').ray;

Browser bundle

When bundling scripts for use in a Browser environment (i.e., using webpack or vite), import the /web export:

import { ray } from 'node-ray/web';

// or a commonjs import:
const { ray } = require('node-ray/web');

Browser standalone

There are two standalone versions of node-ray available: one with axios included, and one without (slim version).

node-ray may be directly used within a web page via a script tag. The standalone version includes all required libraries, including axios.

<script src="https://cdn.jsdelivr.net/npm/node-ray@latest/dist/standalone.min.js"></script>

Or use the slim version (without axios) if you already have axios included in your project:

<script src="https://cdn.jsdelivr.net/npm/node-ray@latest/dist/standalone-slim.min.js"></script>

As of version 2.0.0, you no longer need to manually initialize the global ray objects; it is now performed automatically on load:

<script src="https://cdn.jsdelivr.net/npm/node-ray@latest/dist/standalone.min.js"></script>
<script>
    // nothing to do here, just use `window.ray()` as normal
</script>

Laravel Mix

To use node-ray with Laravel Mix, include the following in resources/js/bootstrap.js:

const { ray } = require('node-ray/web');

window.ray = ray;

Compile the bundle (npm run dev)as usual. After including js/app.js in your view, you may access ray() within your scripts.

Laravel + Vite

To use node-ray with Laravel + Vite, include the following in resources/js/bootstrap.js:

import { ray } from 'node-ray/web';

window.ray = ray;

ray() is immediately available to other scripts such as app.js, however note that window.ray() is NOT immediately available in <script> tags embedded in the view.

Usage

Most of the API from the original PHP package is supported. See the api reference for more information.

// es module import:
import { ray } from 'node-ray';

// commonjs import:
const { ray } = require('node-ray');

To modify the host or port:

// make sure you import the Ray class (capital "R")
import { Ray, ray } from 'node-ray';

Ray.useDefaultSettings({ host: '127.0.0.1', port: 3000 });

// or just modify the port:
Ray.useDefaultSettings({ port: 3000 });

// ...and use ray() as normal

When using NodeJS, you must call await Ray.initSettings() to initialize the settings before using ray(). This is not necessary when using the browser bundle.

ray('a string');

ray(['several', 'arguments'], 'can', {be: provided});

ray().table(['one two', {a: 100, b: 200, c: 300}, [9, 8, 7]]).blue();

ray().chain(ray => ray.html('<em>large text</em>').large().green());

ray().image('https://placekitten.com/200/300');

ray().clearAll();

ray().disable(); // disable sending data to Ray at runtime
ray().xml('<one>11</one>'); // previous call disabled sending data, XML not sent to Ray

Configuration

NodeJS config

Note: This section only applies when using node-ray in the NodeJS environment, NOT a browser environment.

node-ray will search for ray.config.js, which should be in the project's root directory.

Using a configuration file is optional, and the package will use the default settings if no configuration file is specified.

Example:

// ray.config.js

module.exports = {
    enable: true,
    host: 'localhost',
    port: 23517,
    scheme: 'http', //only change this if you know what you're doing!

    // calls to console.log() are redirected to Ray
    intercept_console_log: true,

    // determine the enabled state using the specified callback
    // the 'enable' setting is also considered when using this setting.
    enabled_callback: () => {
        return functionThatReturnsABoolean();
    },

    sending_payload_callback: (rayInstance, payloads) => {
        if (payloads[0].getType() === 'custom') {
            payloads[0].html += ' <strong>- modified!</strong>';
        }
    },

    sent_payload_callback: (rayInstance) => {
        // automatically make all payloads sent to Ray green.
        rayInstance.green();
    },
}

When running node-ray within a NodeJS environment, you may set the environment variable NODE_ENV to "production" or "staging" to disable sending data to Ray from calls to ray().

Browser config

This section only applies within a browser environment (i.e., webpack).

You can configure node-ray by importing the Ray class and calling the useDefaultSettings() method.

import { Ray, ray } from 'node-ray/web';

// set several settings at once:
Ray.useDefaultSettings({
    host: '192.168.1.20',
    port: 23517
});

// or set individual settings only:
Ray.useDefaultSettings({ port: 23517 });

// use ray() normally:
ray().html('<strong>hello world</strong>');

These settings persist across calls to ray(), so they only need to be defined once.

Enabled state

If providing a callback for the enabled_callback setting (a function that returns a boolean), payloads will only be sent to Ray if:

  • the enable setting is set to true.
  • the callback returns a value of true.

If either condition is false, then no payloads will be sent to Ray.

Set the enabled_callback setting to null or leave it undefined to consider the enable setting (the default).

Sending/sent payload callbacks

Specify the sending_payload_callback or sent_payload_callback settings to trigger a callback before (sending) or after (sent) sending a payload.

This feature is helpful when sending additional payloads or modifying all payloads (i.e., changing the color).

Chaining payloads

You can chain payloads together using the chain() method. This allows you to send multiple payloads at once, which may be necessary when performing multiple chained calls to ray() in an asynchronous context.

ray().chain((ray) => {
    ray.text('first payload')
        .blue()
        .small()
        .label('test');
});

About

This package attempts to replicate the entire PHP API for Ray to provide a robust solution for debugging NodeJS, TypeScript, Javascript and web-based projects.

Using the package

See using the package.

Reference

Call Description
ray(variable) Display a string, array or object
ray(var1, var2, …) Ray accepts multiple arguments
ray().blue() Output in color. Use green, orange, red, blue,purple or gray
ray().caller() Asynchronous. Show the calling class and method
ray().chain(callback) Chain multiple Ray payloads and send them all at once. callback: (ray: Ray) => void
ray().clearScreen() Clear current screen
ray().clearAll() Clear current and all previous screens
ray().className(obj) Display the classname for an object
ray().confetti() Display Confetti in Ray
ray().count(name) Count how many times a piece of code is called, with optional name
ray().date(date, format) Display a formatted date, the timezone, and its timestamp
ray().die() Halt code execution - NodeJS only
ray().disable() Disable sending stuff to Ray
ray().disabled() Check if Ray is disabled
ray().enable() Enable sending stuff to Ray
ray().enabled() Check if Ray is enabled
ray().error(err) Display information about an Error/Exception
ray().event(name, data) Display information about an event with optional data
ray().exception(err) Asynchronous. Display extended information and stack trace for an Error/Exception
ray().file(filename) NodeJS only. Display contents of a file
ray().hide() Display something in Ray and make it collapse immediately
ray().hideApp() Programmatically hide the Ray app window
ray().html(string) Send HTML to Ray
ray().htmlMarkup(string) Display syntax-highlighted HTML code in Ray
ray().if(true, callback) Conditionally show things based on a truthy value or callable, optionally calling the callback with a ray argument
ray().image(url) Display an image in Ray
ray().interceptor() Access ConsoleInterceptor; call .enable() to show console.log() calls in Ray
ray().json([…]) Send JSON to Ray
ray().label(string) Add a text label to the payload
ray().limit(N) Asynchronous. Limit the number of payloads that can be sent to Ray to N; used for debugging within loops
ray().macro(name, callable) Add a custom method to the Ray class. make sure not to use an arrow function if returning this
ray().measure(callable) Measure the performance of a callback function
ray().measure() Begin measuring the overall time and elapsed time since previous measure() call
ray().newScreen() Start a new screen
ray().newScreen('title') Start a new named screen
ray().nodeinfo() NodeJS only. Display statistics about node, such as the v8 version and memory usage
ray().notify(message) Display a notification
ray().once(arg1, …) Asynchronous. Only send a payload once when in a loop
ray().pass(variable) Display something in Ray and return the value instead of a Ray instance
ray().pause() Pause code execution within your code; must be called using await
ray().projectName(name) Change the active project name
ray().remove() Remove an item from Ray
ray().screenColor(color) Changes the screen color to the specified color
ray().separator() Display a separator
ray().showApp() Programmatically show the Ray app window
ray().small() Output text smaller or bigger. Use large or small
ray().stopTime(name) Removes a named stopwatch if specified, otherwise removes all stopwatches
ray().table(…) Display an array or an object formatted as a table; Objects and arrays are pretty-printed
ray().text(string) Display raw text in Ray while preserving whitespace formatting
ray().toJson(variable) Convert a variable using JSON.stringify() and display the result
ray().trace() Display a stack trace
ray().xml(string) Send XML to Ray

FAQ

  • Is node-ray only for NodeJS? Not at all! It can be used in a web environment with javascript as well.

  • Can node-ray be used with React/Vue? yes, be sure to import node-ray/web. Alternatively, check out the react-ray and vue-ray packages.

  • Can node-ray be used with webpack-based projects? Yes! Just be sure to import node-ray/web.

Development setup

npm install`
npm run build:dev
npm run test

Testing

node-ray uses Vitest for unit tests. To execute the test suite, run the following command:

npm run test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

changelog

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

v2.1.2

v2.1.1

31 March 2024

  • Remove dayjs dependency #270
  • web exports fix 48dc634
  • add unit tests to increase code coverage fcba31d
  • add unit tests to increase code coverage cad91bd

v2.1.0

29 March 2024

  • Add initSettings() to NodeRay #269
  • Chain payloads, minor bug fixes, doc updates #268
  • Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 #266
  • add initSettings() to RayNode, remove async from findUp() cc8bbfb
  • update docs 98bbe5c
  • type fix f10a743

2.0.0

8 March 2024

  • Add bun.lockb to .gitignore to exclude package lock files from version control a6d4ac3

v2.0.0

8 March 2024

  • version 2 #264
  • Bump Dependency Versions #259
  • npm(deps-dev): bump esbuild from 0.19.12 to 0.20.0 #252
  • Bump actions/cache from 3 to 4 #250
  • npm(deps-dev): bump @typescript-eslint/eslint-plugin from 5.62.0 to 6.19.0 #248
  • npm(deps-dev): bump lint-staged from 13.3.0 to 15.2.0 #240
  • npm(deps-dev): bump prettier from 2.8.8 to 3.1.0 #230
  • Bump github/codeql-action from 2 to 3 #242
  • Bump actions/setup-node from 3 to 4 #226
  • Bump actions/checkout from 3 to 4 #210
  • npm(deps-dev): bump esbuild from 0.18.20 to 0.19.3 #214
  • Bump dependabot/fetch-metadata from 1.5.1 to 1.6.0 #191
  • npm(deps-dev): bump esbuild from 0.17.19 to 0.18.6 #189
  • Fix limit() and once() #182
  • Remove rollup deps & config files #181
  • Add tests #180
  • wip 400e96b
  • wip ec0b6a1
  • move some methods to async to use async stack frame tracing ab519a7

v1.21.0

25 May 2023

  • Fix stack frames #179
  • Fix issue 176 #178
  • Bump dependabot/fetch-metadata from 1.4.0 to 1.5.1 #177
  • fix broken test ba12666
  • Fix stack trace frames filtering in Ray class 74a955a
  • Refactor RemovesRayFrames to simplify filter logic and handle additional ray namespaces 8a5f841

v1.20.11

18 May 2023

  • add build standalone script to build:all 378daa9

v1.20.10

18 May 2023

  • Change library build method #174
  • Remove import statement for standalone module in package.json bc1e5f9
  • Add types to package exports e6c98f4
  • Build the project for all environments using new build script 2868991

v1.20.9

12 May 2023

v1.20.8

12 May 2023

  • Add @permafrost-dev/pretty-format package and remove exports property on esm output in rollup.config.js acf45f8

v1.20.7

12 May 2023

  • Update README.md 450a7d3
  • Remove unnecessary line in package.json preversion script 7c83962
  • fixes 2e5b54b

v1.20.6

12 May 2023

  • Remove unnecessary line in package.json preversion script c4c87bc
  • fixes dfa9333

v1.20.5

12 May 2023

  • Update build-library.js and Ray.tsRemoved axios from external dependencies on build-library.js and added import statement for Client on Ray.ts db62c8b
  • Update README.md f514618
  • Update README.md 36995cb

v1.20.4

12 May 2023

  • wip 2f5b542
  • Add standalone library support and update Client.ts 6bf14db

v1.20.3

12 May 2023

  • Comment out Ray setup code to avoid duplicate initialization 9996157
  • wip aaa15ec

v1.20.2

11 May 2023

  • Fix commonjs default issue, update target and module to ES2015 in tsconfig, and remove axios import from StackTraceGps 732112c
  • Refactor DateImmutable.ts to use Dayjs constructor directlyThis commit updates the DateImmutable.ts file to use the Dayjs constructor directly instead of importing the module and then using a default export 9a3ec95

v1.20.1

11 May 2023

  • Refactor StackTraceGps module to import source-map library properly 30ba2a7
  • update snapshots e03cbbc
  • disable tests that break on github actions 2c52479

v1.20.0

11 May 2023

  • fix tests, update snapshots, misc fixes e8eab3b
  • continue fixing stacktraces 1d9a38b
  • Update README.md 1b1ca5c

v1.19.10

11 May 2023

v1.19.9

11 May 2023

  • Stackframes fix #172
  • wip b47760a
  • Refactor CallerPayload.ts to handle null function names and file names 553a2d8
  • fix/disable broken tests, update snapshots 4bd4fd3

v1.19.8

11 May 2023

  • Refactor Ray.ts to import getSync instead of requiring itThe commit message is: "Import getSync instead of requiring it in Ray.ts" acc468b

v1.19.7

11 May 2023

  • fix import issues and broken tests b028e0b
  • code cleanup 522134f
  • Add option to use Ray.standalone() method for initialization in README.md 84ed00b

v1.19.6

11 May 2023

  • Add TypeScript declaration files for web and node builds 5b3d844
  • add eslintignore file c4a09bb
  • Add auto-changelog to generate changelog automatically on version increment 44d314f

v1.19.5

10 May 2023

  • Minor updates #171
  • add node 18 for running tests #170
  • npm(deps-dev): bump dts-bundle-generator from 7.2.0 to 8.0.1 #167
  • npm(deps-dev): bump concurrently from 7.6.0 to 8.0.1 #163
  • npm(deps-dev): bump @types/node from 18.16.4 to 20.0.0 #169
  • npm(deps-dev): bump typescript from 4.9.5 to 5.0.4 #166
  • Bump dependabot/fetch-metadata from 1.3.6 to 1.4.0 #168
  • npm(deps-dev): bump @rollup/plugin-terser from 0.2.1 to 0.4.0 #156
  • Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 #157
  • Bump actions/cache from 3.2.3 to 3.2.4 #158
  • npm(deps-dev): bump @rollup/plugin-typescript from 10.0.1 to 11.0.0 #152
  • Bump actions/cache from 3.2.2 to 3.2.3 #153
  • Update all npm dependencies (2022-12-30) #150
  • Bump actions/cache from 3.0.11 to 3.2.2 #149
  • npm(deps): bump xml-formatter from 2.6.1 to 3.1.0 #144
  • Update all npm dependencies (2022-12-16) #143
  • wip 68b7b56
  • wip 042e2a4
  • Add RayScreenColors class to Ray class as a mixin 80e8676

v1.19.4

1 December 2022

  • Bump dependencies #137
  • npm(deps-dev): bump @types/uuid from 8.3.4 to 9.0.0 #136
  • npm(deps-dev): bump dts-bundle-generator from 6.13.0 to 7.0.0 #120
  • Bump dependabot/fetch-metadata from 1.3.4 to 1.3.5 #132
  • Bump actions/cache from 3.0.10 to 3.0.11 #125
  • Bump actions/cache from 3.0.9 to 3.0.10 #114
  • wip 72cf52e
  • wip 0b35c61

v1.19.3

1 December 2022

v1.19.2

7 October 2022

v1.19.1

7 October 2022

v1.19.0

7 October 2022

  • add confetti #102
  • Bump dependabot/fetch-metadata from 1.3.3 to 1.3.4 #113
  • Bump actions/cache from 3.0.8 to 3.0.9 #112
  • Bump actions/cache from 3.0.7 to 3.0.8 #99
  • Bump actions/cache from 3.0.6 to 3.0.7 #97
  • Bump actions/cache from 3.0.5 to 3.0.6 #96
  • Bump actions/cache from 3.0.4 to 3.0.5 #94
  • npm(deps-dev): bump @types/node from 17.0.45 to 18.0.0 #87
  • Bump dependabot/fetch-metadata from 1.3.1 to 1.3.2 #90
  • Bump actions/cache from 3.0.3 to 3.0.4 #86
  • npm(deps-dev): bump husky from 7.0.4 to 8.0.1 #78
  • npm(deps-dev): bump lint-staged from 12.5.0 to 13.0.0 #81
  • Bump actions/cache from 3.0.2 to 3.0.3 #80
  • npm(deps-dev): bump @rollup/plugin-commonjs from 21.1.0 to 22.0.0 #75
  • Bump github/codeql-action from 1 to 2 #77
  • npm(deps): bump axios from 0.26.1 to 0.27.0 #76
  • Bump dependabot/fetch-metadata from 1.3.0 to 1.3.1 #74
  • Bump actions/cache from 3.0.1 to 3.0.2 #73
  • Bump codecov/codecov-action from 2 to 3 #72
  • Bump actions/cache from 2 to 3.0.1 #71
  • npm(deps-dev): bump ts-mixer from 5.4.1 to 6.0.1 #69
  • npm(deps-dev): bump dts-bundle-generator from 5.9.0 to 6.5.0 #56
  • npm(deps-dev): bump @types/node from 16.11.25 to 17.0.21 #62
  • npm(deps-dev): bump @rollup/plugin-commonjs from 19.0.2 to 21.0.2 #63
  • Bump actions/checkout from 2 to 3 #67
  • Bump actions/setup-node from 2 to 3 #66
  • Bump dependabot/fetch-metadata from 1.2.1 to 1.3.0 #68
  • Bump dependabot/fetch-metadata from 1.2.0 to 1.2.1 #64
  • Bump dependabot/fetch-metadata from 1.1.1 to 1.2.0 #60
  • npm(deps): bump axios from 0.25.0 to 0.26.0 #58
  • npm(deps): bump axios from 0.24.0 to 0.25.0 #54
  • npm(deps-dev): bump @rollup/plugin-replace from 2.4.2 to 3.0.1 #48
  • npm(deps-dev): bump concurrently from 6.5.1 to 7.0.0 #50
  • add confetti to test.js 2a64feb
  • add confetti to readme d8f0050
  • Update README.md 156fd59

v1.18.0

14 January 2022

  • Add new features #51
  • add withCredentials = false header #49
  • npm(deps): bump axios from 0.21.4 to 0.24.0 #45
  • npm(deps-dev): bump @types/node from 15.14.1 to 16.0.0 #29
  • add test snapshot a97bc1a
  • add docs for screenColor, projectName methods 71565a8
  • add unit tests e009e64

v1.17.0

19 November 2021

  • Make exception/error payloads red by default #27
  • update docs 1a5207c
  • various updates/changes, add label method d18f2ca
  • add FUNDING.yml ae4ddd0

v1.16.0

24 June 2021

  • Add if() method #26
  • Add once() method #25
  • Add limit() method #24
  • Add rate limiter #23
  • update changelog 0df8187
  • update test snapshot 5a9c88c
  • update test names f621c03

v1.15.0

30 May 2021

v1.14.0

28 May 2021

  • npm(deps-dev): bump @types/node from 14.14.42 to 15.0.0 #19
  • update changelog bfbb0ea
  • update test snapshots f0f172c
  • fix issue with sent_payload_callback causing a stack overflow 13f27d7

v1.13.1

27 May 2021

  • npm(deps-dev): bump @rollup/plugin-commonjs from 17.1.0 to 18.0.0 #16
  • update changelog 0ca4dde
  • wip a43c457
  • change intercept_console_log default to false when calling create() d353542

v1.13.0

2 April 2021

  • update changelog 4a7dc91
  • add section/examples for sending_payload_callback and sent_payload_callback settings 44dccf5
  • add sending_payload_callback and sent_payload_callback settings a97a4af

v1.12.0

12 March 2021

  • update changelog e58317f
  • update docs e253877
  • make sure macros persist between instances of the Ray class 6b0ea94

v1.11.0

10 March 2021

v1.10.1

6 March 2021

  • update snapshots 9c1e893
  • update changelog 4485ca8
  • fix error thrown when frame filename does not exist 7b92c36

v1.10.0

3 March 2021

  • update changelog 3d6556c
  • add 'hostname' to origin (syncs with spatie/ray 1.21.0 & PR 332) 96b96fc
  • add info for exception() method 8f161a5

v1.9.2

2 March 2021

v1.9.1

1 March 2021

  • update import, bump required version for permafrost-dev/pretty-format to 1.1.0 66d4f2e
  • fix import 73998d8

v1.9.0

1 March 2021

  • update changelog 5d68724
  • update configuration info for NodeJS to include disabling calls to ray() with NODE_ENV 6bbb860
  • skip sending data to Ray when NODE_ENV is "production" or "staging" 8990a77

v1.8.4

1 March 2021

v1.8.3

1 March 2021

  • update changelog 8da95ab
  • use @permafrost-dev/pretty-format package instead of pretty-format af4dcb7

v1.8.2

1 March 2021

v1.8.1

1 March 2021

  • limit prettyFormat plugins to DOM plugins 61b5109
  • add updated test snapshot 0788e7e
  • fix frame filename for caller test snapshot f9dfdcf

v1.8.0

12 February 2021

v1.7.0

11 February 2021

  • always set memory usage in measure payloads to 0 a8f4522
  • update changelog 3a1ffbc
  • refactor resuming/stopping exection after calling pause() so it behaves as expected 0d9e244

v1.6.3

10 February 2021

  • update changelog a637ed7
  • update available status on object creation 469f874
  • add minor helper methods b369a94

v1.6.2

10 February 2021

  • update changelog, readme 4a13c71
  • fix implementation c8af504
  • change the way available status is reset to avoid process hanging 831b90e

v1.6.1

10 February 2021

  • update changelog e2e47ce
  • enable isRayAvailable(), updateRayAvailability(); availability is refreshed every 20 seconds 17ff1ba
  • fix bug where Ray.client was accessed even if it didn't exist 52fe8d3

v1.6.0

10 February 2021

v1.5.3

9 February 2021

  • update changelog 18efeca
  • add node export variant fc69cd0
  • change import to require and export to module.exports c428142

v1.5.2

9 February 2021

  • update changelog 6920f8b
  • update & optimize run-tests workflow dc5aa87
  • split StopwatchEvent into a separate file, updated and added additional tests 1d8068b

v1.5.1

9 February 2021

v1.5.0

9 February 2021

  • add measure(), measureClosure(), and stopTime() methods; add Stopwatch class for timing duration of method calls 6d7cf88
  • update docs 62fe509
  • update tests d771052

v1.4.4

9 February 2021

v1.4.3

8 February 2021

  • change esm to use .mjs extension 3746ef5

v1.4.2

8 February 2021

  • update changelog 7414326
  • use .mjs extensions for esm modules 272cb34

v1.4.1

8 February 2021

  • update changelog 7567c3c
  • add section on using with Laravel mix 942f3a4
  • change the output files to all end with js 8c11fab

v1.4.0

7 February 2021

  • Update README.md #4
  • update changelog, readme, usage docs fbd28c5
  • add error(), date() methods (DatePayload is the original CarbonPayload class) ea4bd66
  • add dayjs package 0dc9f8c

v1.3.0

7 February 2021

  • fix raw html displaying instead of rendered html with calls like ray({hello: 'world'}) 226ccd0

v1.2.2

7 February 2021

  • remove reference to EOL import from os module 721a043

v1.2.1

7 February 2021

  • change codeql scanning to once per day using a cron schedule instead of on push as each run takes 2+ min 38b638e
  • update readme for standalone.js use 2fab1bc
  • fix incorrect quote char escaping 19f2f7f

v1.2.0

7 February 2021

  • add available environments doc c05eb6d
  • add support for browser environments/bundles, so the package can be used for NodeJS/ES6/TypeScript projects, regardless of the target environment 43b9436

v1.1.0

7 February 2021

  • update changelog d898525
  • add reference/section on className() method 18c4486
  • add section on working with screens cf12acd

1.0.0

6 February 2021