npm package '@binary-owls/sdk-node'

Popularity: Low
Description: JavaScript helpers with TypeScript
Installation: npm install @binary-owls/sdk-node
Last version: 1.4.0 (Download)
Size: 30.65 kB
License: MIT

Activity

Last modified: August 5, 2022 10:37 PM (6 days ago)
Versions released in one year: 4
Weekly downloads: 157
08/15/202110/31/202101/16/202204/10/202207/17/20220408012016001234released versions / week
  • Versions released
  • Weekly downloads

Readme

Node SDK

Useful for any backend or frontend JavaScript or TypeScript project.

Usage

yarn add @binary-owls/sdk-node

Maintain

Maintain: Unit Tests

First, it's easiest to use the Jetbrains Debugger to run individual unit tests.

But you can also test via CLI:

yarn test

Maintain: Try Locally

To locally develop the package, install Yalc:

yarn global add yalc

Then we can publish this package locally:

cd sdk-node
yalc publish

In the implementing project:

yalc add @binary-owls/sdk-node

Publish to NPM


# Log in to npmjs.org
npm login

# NOTE the built files is the main publication, not the TS source
yarn build

# 1. Edit version in package.json
# 2. Run publish
# NOTE: yarn publish has issues with auto-committing, and running `npm publish` as a yarn command also has issues, so we need to just run this raw:
npm publish --access public

# You will be prompted for the new semver.  
# Then if publication is successful, package.json will automatically have its `"version"` updated
git add --all
git commit

Optional:

# Remove a specific package version
npm unpublish @binary-owls/sdk-node@0.1.0