moo-client-ts
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

moo-client-ts

automated-checks-badge code-coverage-badge

This can be used to get (and eventually set) verb code in a MOO.

Example (read verb code)

import { MooClient } from 'moo-client-ts';

const client = new MooClient('my.moo.com', 7777, 'MyUser', 'MyPassword');

const verbData = await client.getVerbData('my-object', 'my-verb');

console.log(verbData);

=>

VerbData {
  reference: '#131:test',
  name: 'MyUser:test',
  code: [ '"Usage: ;#131:test();";', 'player:tell("test");' ]
}

Example (write verb code)

TODO

/moo-client-ts/

    Package Sidebar

    Install

    npm i moo-client-ts

    Weekly Downloads

    10

    Version

    0.10.0

    License

    MIT

    Unpacked Size

    45.4 kB

    Total Files

    42

    Last publish

    Collaborators

    • malbios