Skip to content

JamesxX/ps2api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published