@caspertech/node-metaverse
A node.js interface for Second Life.
Last updated 5 months ago by tommettam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @caspertech/node-metaverse 
SYNC missed versions from official npm registry.

node-metaverse

A node.js interface for Second Life.

npm version Build Status Known Vulnerabilities Dependencies

Install

npm install --save @caspertech/node-metaverse

Usage

Javascript

const nmv = require('@caspertech/node-metaverse');

const loginParameters     = new nmv.LoginParameters();
loginParameters.firstName = 'firstName';
loginParameters.lastName  = 'lastName';
loginParameters.password  = 'password';
loginParameters.start     = "last";

const options = nmv.BotOptionFlags.LiteObjectStore | nmv.BotOptionFlags.StoreMyAttachmentsOnly;
const bot     = new nmv.Bot(loginParameters, options);

bot.login().then((response) =>
{
    console.log("Login complete");

    //Establish circuit with region
    return bot.connectToSim();
}).then(() =>
{
    console.log("Connected");
}).catch((error) =>
{
    console.error(error);
});

Typescript

import { Bot, BotOptionFlags, LoginParameters } from '@caspertech/node-metaverse';

const loginParameters = new LoginParameters();
loginParameters.firstName = 'firstName';
loginParameters.lastName = 'lastName';
loginParameters.password = 'password';
loginParameters.start = 'last';

const options = BotOptionFlags.LiteObjectStore | BotOptionFlags.StoreMyAttachmentsOnly;
const bot = new Bot(loginParameters, options);

bot.login().then((response) =>
{
    console.log("Login complete");

    //Establish circuit with region
    return bot.connectToSim();
}).then(() =>
{
    console.log("Connected");
}).catch((error) =>
{
    console.error(error);
});

License

MIT

Current Tags

  • 0.5.13                                ...           latest (5 months ago)

22 Versions

  • 0.5.13                                ...           5 months ago
  • 0.5.12                                ...           5 months ago
  • 0.5.11                                ...           5 months ago
  • 0.5.10                                ...           5 months ago
  • 0.5.9                                ...           5 months ago
  • 0.5.8                                ...           5 months ago
  • 0.5.7                                ...           5 months ago
  • 0.5.6                                ...           5 months ago
  • 0.5.5                                ...           6 months ago
  • 0.5.4                                ...           6 months ago
  • 0.5.3                                ...           8 months ago
  • 0.5.2                                ...           8 months ago
  • 0.5.1                                ...           8 months ago
  • 0.4.9                                ...           2 years ago
  • 0.4.8                                ...           2 years ago
  • 0.4.7                                ...           2 years ago
  • 0.4.6                                ...           2 years ago
  • 0.4.5                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 22
Dependencies (27)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |