New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

classy-pay-core

Package Overview
Dependencies
Maintainers
0
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classy-pay-core

Shared tools used in ClassyPay-related projects

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-98.73%
Maintainers
0
Weekly downloads
 
Created
Source

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');

Keywords

FAQs

Package last updated on 26 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc