psapi
v1.1.2
Published
Interface with your Garry's mod server's pointshop data
Downloads
16
Maintainers
Readme
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
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