0.0.2 • Published 8 years ago

ps2api v0.0.2

Weekly downloads
4
License
GPL-3.0
Repository
github
Last release
8 years ago

Pointshop 2 API (PS2API)

A minimal node module providing utility methods to read and write data from a MySQL server containing pointshop 2 data. Get the module here npm version

Installation

npm install ps2api --save

Usage

var psapi = require('p2sapi');

var Pointshop = new psapi.Connection( '0.0.0.0', 'root', '', 'pointshop_stuff' );
Pointshop.Event.on('connected', function( obj ){
	obj.getUser(123456789).giveItem('MyAwesomeItem');
});
Pointshop.Event.on('error', function(error){
	console.log( error );
});

Tests

npm test

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Release History

  • 0.0.1 Initial release
0.0.2

8 years ago

0.0.1

8 years ago