https://github.com/lcanady/node-rhost
https://github.com/lcanady/node-rhost
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lcanady/node-rhost
- Owner: lcanady
- License: mit
- Created: 2022-09-16T11:40:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T15:31:44.000Z (over 2 years ago)
- Last Synced: 2025-03-11T01:37:59.249Z (3 months ago)
- Language: TypeScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @rhost/sdk
This is a library for Node[1] to make it easier to write execscript scripts for
RhostMUSH[2], by pre-processing the myriad environment variables, and giving a
print() function that munges Unicode into the Rhost-native markup. It is a port
of Deno-Rhost[3].* [1] https://nodejs.org/
* [2] http://rhostmush.com/
* [3] https://github.com/RhostMUSH/deno-rhost## Sample of use:
```JS
const Rhost = require('@rhost/sdk');
try {
var environment = Rhost.environment()
Rhost.print(`You are using a server with execscript version: ${environment.version}`)
} catch(e) {
Rhost.print("Failed parsing Rhost execscript data")
Rhost.print(e)
}
```## development
```bash
npm install
npm run test
```