This package can be installed in any JS application to send messages to the Ray app.
npm install js-ray
or
yarn install js-ray
Using ESM import
import { ray } from 'js-ray';
Using CommonJS require
const { ray } = require('js-ray');
Quick examples
ray('a string')
ray(['an array'])
ray({ text: 'an object' })
ray('as' 'many' , 'arguments', 'as', 'you', 'like')
ray('this is blue').color('blue')
ray().newScreen('My debug screen')
You can find the full documentation on our documentation site.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.