Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@cosmic-plus/jsutils

2.0.2 • Public • Published

@cosmic-plus/jsutils

Generic JavaScript utilities that are not related to Stellar.

Note: This is an internal library and may be modified in compatibility-breaking ways.

Install

  • Npm npm install @cosmic-plus/jsutils
  • Yarn yarn add @cosmic-plus/jsutils

Then: const { $module, ... } = require("@cosmic-plus/jsutils")

To pick a module: const $module = require("@cosmic-plus/jsutils/es5/$module")

Modules

  • env: Check whether we are into a Node.js or browser environment.
  • mirrorable: Subscribable Arrays.
  • misc: Various unrelated methods.
  • nice: Nicely format numbers.
  • observable: Add event support to Object.
  • projectable: Self-updatable Object properties.

Additional Resources

Keywords

none

Install

npm i @cosmic-plus/jsutils

DownloadsWeekly Downloads

2

Version

2.0.2

License

MIT

Unpacked Size

51.6 kB

Total Files

20

Last publish

Collaborators

  • avatar