{"_rev":"3-eb38e9601d73e238c0d170121f4300d4","time":{"created":"2024-03-12T15:04:04.605Z","7.0.0":"2024-03-12T14:58:29.731Z","modified":"2024-03-12T15:04:05.461Z","7.0.1":"2024-03-12T15:04:04.864Z"},"_id":"@an00b1s/gamemoney","name":"@an00b1s/gamemoney","dist-tags":{"latest":"7.0.1"},"versions":{"7.0.1":{"name":"@an00b1s/gamemoney","version":"7.0.1","description":"GameMoney API wrapper for Node.js","main":".build/index.js","keywords":["gamemoney","gmpays","gm","merchant"],"homepage":"https://github.com/aN00B1s/gamemoney-node-sdk","bugs":{"url":"https://github.com/gamemoney-ps/gamemoney-node-sdk/issues","email":"maxpain177@gmail.com"},"author":{"name":"Maxim Makarov","email":"maxpain177@gmail.com","url":"https://maxpain.pro"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/aN00B1s/gamemoney-node-sdk.git"},"type":"module","exports":{".":{"import":"./index.js","types":"./index.d.ts"}},"scripts":{"prebuild":"rm -rf .build","build":"tsc","postbuild":"cp -r package*.json .npmignore ./src/certs README.md .build","test":"NODE_OPTIONS=--experimental-vm-modules jest","lint":"xo","lint:fix":"xo --fix"},"lint-staged":{"*.ts":"xo"},"jest":{"testMatch":["**/*.test.ts"],"preset":"ts-jest/presets/default-esm","globals":{"ts-jest":{"useESM":true}},"moduleNameMapper":{"^(\\.{1,2}/.*)\\.js$":"$1"},"maxConcurrency":50},"xo":{"extends":"@onmoon","prettier":true},"prettier":"@onmoon/prettier-config","devDependencies":{"@onmoon/eslint-config":"^1.0.12","@onmoon/prettier-config":"^1.0.2","@onmoon/tsconfigs":"^3.0.0","@types/body-parser":"^1.19.5","@types/express":"^4.17.21","@types/jest":"^29.5.12","@types/node":"^20.11.17","@types/uuid":"^9.0.8","body-parser":"^1.20.2","express":"^4.18.2","husky":"^8.0.3","lint-staged":"^13.3.0","ts-jest":"^29.1.2","typescript":"^5.3.3","uuid":"^9.0.1","xo":"^0.57.0"},"dependencies":{"got":"^12.6.1"},"_id":"@an00b1s/gamemoney@7.0.1","gitHead":"ea0e232ee49d26ae4a59e6049aa6f725fc6ad5ac","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-CPqFn4hA66m3808BPlIzDb4C0hYhZkjaIhZ7khROFNpIs4D84HB47aO5nut63CWixLUBCA2ezfGysmELxu9m+w==","shasum":"e83c42e7f15c1adc0942dcf1f757393d40dc7adc","tarball":"https://registry.npmjs.org/@an00b1s/gamemoney/-/gamemoney-7.0.1.tgz","fileCount":7,"unpackedSize":27552,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/US966bc6tCB3/uPAuXYs1Dsble/Z+3A/rGKGhI3upwIhAPSGDjfbcmLg+LbyXishgeDdHS/81/Z3CCjGcdbxGDYy"}]},"_npmUser":{"name":"anubchik","email":"anubchik@gmail.com"},"directories":{},"maintainers":[{"name":"anubchik","email":"anubchik@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gamemoney_7.0.1_1710255844707_0.7243576667306901"},"_hasShrinkwrap":false}},"maintainers":[{"name":"anubchik","email":"anubchik@gmail.com"}],"description":"GameMoney API wrapper for Node.js","homepage":"https://github.com/aN00B1s/gamemoney-node-sdk","keywords":["gamemoney","gmpays","gm","merchant"],"repository":{"type":"git","url":"git+https://github.com/aN00B1s/gamemoney-node-sdk.git"},"author":{"name":"Maxim Makarov","email":"maxpain177@gmail.com","url":"https://maxpain.pro"},"bugs":{"url":"https://github.com/gamemoney-ps/gamemoney-node-sdk/issues","email":"maxpain177@gmail.com"},"license":"MIT","readme":"![GameMoney](https://cp.gmpays.com/assets/img/gm_logo.png)\n\n[GameMoney](https://gmpays.com/) API wrapper for Node.js\n\nFull API documentation [here](https://cp.gmpays.com/apidoc)\n\n## Installation \n```sh\n$ npm install gamemoney\n```\n\n## Usage\n\n### Initialization\n```typescript\nimport fs from 'fs'\nimport GameMoney from 'gamemoney'\n\nconst gm = new GameMoney({\n\tproject: 42,\n\thmacPrivateKey: 'test',\n\n\t// Optional. But to make checkouts must be specified\n\trsaPrivateKey: {\n\t\tkey: fs.readFileSync('./private.pem').toString(),\n\t\tpassphrase: '123' // Optional\n\t},\n\n\t// OR:\n\t// rsaPrivateKey: Buffer.from(\n\t// \tprocess.env.GM_RSA_PRIVATE_KEY ?? '',\n\t// \t'base64',\n\t// )\n})\n```\n\n### Examples\nSee examples in [src/examples](https://github.com/gamemoney-ps/gamemoney-node-sdk/tree/master/src/examples) directory","readmeFilename":"README.md"}