This package can be installed in Adonisjs application to send messages to the Ray app.
You can find the full documentation on our documentation site.
- Add package:
npm i @faisal50x/ray
- Register providers inside the your start/app.js file.
const providers = [
...
'@faisal50x/ray/providers/RayProvider',
...
]
const Ray = use('@faisal50x/ray');
Ray("Yahoooo it's working.").color('green');
//JSON
Ray().toJson({
appName: "Adonis Ray",
appVersion: "0.0.1",
author: "Faisal Ahmed",
credit: "Spatie"
});
//Table
Ray().table({
"node_version": "15.0",
"adonis_version": "4.1",
"os": "MacOS 11.1"
});
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.