psapi

1.1.2 • Public • Published

Pointshop API (PSAPI)

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

Installation

  npm install psapi --save

Usage

var psapi = require('psapi'),
    PSConnection = psapi.Connection;
 
var Pointshop = new PSConnection('0.0.0.0', 'root', '', 'db', function( API ){
    API.GetUser('5465432168').AddItem('ItemName', [], false);
});
 
// OR
var Pointshop = new PSConnection('0.0.0.0', 'root', '', 'db');
Pointshop.OnConnect = function(API){
    API.GetUser('5465432168').AddItem('ItemName', [], false);
};
 

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

  • 1.1.2 Rearanged file structure
  • 1.1.0 Bug fixes, proper tests.
  • 1.0.0 Initial release

Package Sidebar

Install

npm i psapi

Weekly Downloads

0

Version

1.1.2

License

GPL-3.0

Last publish

Collaborators

  • jamesxx