0.1.5 • Published 6 years ago

gersemi v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage Status MIT license

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.

If you are planning to have code in multiple files (which is quite natural for a NodeJS module) that users can import, make sure you update src/index.ts file appropriately.

Once published to npm with the name gersemi, this module can be installed in the module in which you need it -

  • To use the Client class in a TypeScript file -
import { Client } from "gersemi";

const Genesis = new Client('/some-proxy-url);
Genesis.Query.ByUserCode(12).then((res) => {
    console.log('Success!', res);
});

Release History

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago