@orderinator/buda
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Using this module in other modules

Here is a quick example of how this module can be used in other modules. The TypeScript Module Resolution Logic makes it quite easy. The file src/index.ts is a barrel that re-exports selected exports from other files. The package.json file contains main attribute that points to the generated lib/index.js file and typings attribute that points to the generated lib/index.d.ts file.

  • To use the Orderinator class in a TypeScript file -
import { Orderinator as Buda } from "@orderinator/buda";

const buda = new Buda("API_KEY", "API_SECRET");
buda.balances();
  • To use the Orderinator class in a JavaScript file -
const Buda = require('@orderinator/buda').Orderinator;

const buda = new Buda('API_KEY', 'API_SECRET');
buda.balances();

Readme

Keywords

none

Package Sidebar

Install

npm i @orderinator/buda

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

10.8 kB

Total Files

7

Last publish

Collaborators

  • mautematico