0.3.0 • Published 7 months ago

classy-pay-core v0.3.0

Weekly downloads
205
License
MIT
Repository
github
Last release
7 months ago

Introduction

The classy-pay-core NPM module contains a set of reusable common tools used in ClassyPay-related projects. There are a few pieces of functionality included, most notably:

  • A plugin-based, lazily loaded configuration "dictionary" (implemented by the Config class). The intent here is to be able to provide a bunch of different running node applications with a common set of lazily-populated global state, e.g. configuration that's shared between applications. A sample implementation (aws/AWSConfig) and set of plugins (inside DataSources/) is included as well (though probably minimally useful to anyone outside of Classy).

  • A client that can be used to authenticate with / converse with the ClassyPay APIs (PayClient).

  • A set of general purpose utilities:

    • Lock: a simple mutex
    • Once: a JavaScript implementation of pthread_once
    • callbackWrapper: code which allows you to perform promise-based operations (or async/await-based) from within a callback
    • Some other random utilities

Usage

To load parts of the module, first load classy-pay-core as a whole, and then call submodule on the default export, like so:

const Once = require('classy-pay-core').submodule('utils/Once');
0.3.0

7 months ago

0.2.21

9 months ago

0.2.20

4 years ago

0.2.19

4 years ago

0.2.18

4 years ago

0.2.17

4 years ago

0.2.16

5 years ago

0.2.15

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

6 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.6

7 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