1.0.0 • Published 15 days ago

@povsicoenpm/quos-excepturi-porro v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

@povsicoenpm/quos-excepturi-porro

A Node.js wrapper for the Backpack.tf economy Web API.

npm version node version npm test dependencies npm downloads license paypal

Installation

Using npm:

$ npm install @povsicoenpm/quos-excepturi-porro

Using yarn:

$ yarn add @povsicoenpm/quos-excepturi-porro

Testing

Note: Make sure you've supplied a valid API key in the test.js file.

Using npm:

$ npm test

Using yarn:

$ yarn test

Examples

Importing with CommonJS

const bptfprices = require('@povsicoenpm/quos-excepturi-porro');

or with ES6's import statement

import bptfprices from '@povsicoenpm/quos-excepturi-porro';

Instantiating with the apiKey option

const bptf = new bptfprices({ apiKey: 'XXXXXXXXXXXXXXXXXXXXXXXX' });

Asynchronous requests with callbacks

bptf.getSpecialItems({
    appid: 440,
    callback: (err, specials) => {
        if (err) throw err;

        console.log(specials.items);
    }
});

Asynchronous requests with async/await

(async () => {
    try {
        const data = await bptf.getCurrencies({ 
            raw: 2 
        });

        console.log(data.currencies);
    } catch (error) {
        console.error('An error occurred: ', error);
    }
})();

There are some more examples available in the test directory.

Documentation

See the Wiki pages for further documentation.

License

MIT

Copyright 2023, Simon Sørensen

reactcode pointses2015reducebreaksharedarraybufferpurejsonpackage.jsonhooksObservableses-shimsspringcryptofast-cloneprotominimalexecsignalstypeerrorjsdommime-dbpicomatchtranspilercensordependency managerrm -rfcallspinnerdiffes6multi-packagees2016throatpipeutilityworkspace:*statelessReactiveExtensionstrimStarteslintconfigfigletpackagesgesturesECMAScript 5zerojasminesetterenderdotenvcolorsstatuses7MicrosoftInt16ArraylengthString.prototype.matchAllvalidstylingdeep-cloneAsyncIteratorexpressJSON-SchemajsxrequestarrayYAMLparsebrowserlistauthdatafromfastclonecircularECMAScript 2020RegExp#flagsastinspectloggerES7ttycheckxhrcompilerestreehardlinksweaksetfile systemshelltypedarraymrureal-timetermUint16ArrayoptimistTypeScriptwarninglink0libphonenumberwhatwgWeakMapreadablestreameveryArray.prototype.flatMapdescriptionslothandlersecmascriptcryptyup.envidleCSSStyleDeclarationcodesbatchnumberES2021internal slot6to5i18ninternalpostcssphonekarmaredactoperating-systemponyfillmkdirsmkdirObject.assignBigInt64ArraydeterministicframerwordwrappersistentwatchconcatfastfindupimportpatchECMAScript 7eslinttypedarraysTypeBoxparentssymlinkoptimizerexitArray.prototype.findLastoptionkeypoint-freeserializationmoduleslastuninstallpyyamlbindconcatMaponcetrimstringifierregular expressionmixinsmoduleWebSocketsdependenciesmiddlewareECMAScript 2018slicelistenershelperstoStringTagprotocol-bufferseventDispatcherfindLastIndexmomentrfc4122groupqueueMicrotaskratemacosECMAScript 6react-testing-libraryECMAScript 2021immerObject.fromEntriesscheme-validation__proto__bundlersetPrototypeOfobjectjsonschemapromisescommand-linerequirerecursivecharactersweakmapfsrm -frdescriptorcorstypedtostringtagdayjsprivateshebanggradients cssenvclassnameObject.entriesanimationgetintrinsicregexpxssmakethreeassertionapollolimitedwatchFileawesomesauceviewdatastructureArray
1.0.0

15 days ago