@rhost/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@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].

Sample of use:

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

npm install
npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i @rhost/sdk

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

143 kB

Total Files

6

Last publish

Collaborators

  • lcanady