Nagging Mario's Princess

    gamemoney
    TypeScript icon, indicating that this package has built-in type declarations

    4.2.0 • Public • Published

    GameMoney

    GameMoney API wrapper for Node.js

    Full API documentation here

    Installation

    $ npm install gamemoney

    Usage

    Initialization

    import fs from 'fs'
    import GameMoney from 'gamemoney'
    
    const gm = new GameMoney({
    	project: 42,
    	hmacPrivateKey: 'test',
    
    	// Optional. But to make checkouts must be specified
    	rsaPrivateKey: {
    		key: fs.readFileSync('./private.pem').toString(),
    		passphrase: '123' // Optional
    	},
    
    	// OR:
    	// rsaPrivateKey: Buffer.from(
    	// 	process.env.GM_RSA_PRIVATE_KEY ?? '',
    	// 	'base64',
    	// )
    })

    Examples

    See examples in src/examples directory

    Install

    npm i gamemoney

    DownloadsWeekly Downloads

    238

    Version

    4.2.0

    License

    MIT

    Unpacked Size

    25.4 kB

    Total Files

    7

    Last publish

    Collaborators

    • kondratio
    • maxpain