JSPM

@getclarify/nodejs-sdk

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1283
  • Score
    100M100P100Q113757F
  • License MIT

JavaScript/TypeScript SDK for Clarify platform

Package Exports

  • @getclarify/nodejs-sdk

Readme

@getclarify/nodejs-sdk

JavaScript/TypeScript SDK for the Clarify platform.

Prerequisites

  • Node.js >= 18.0.0
  • npm

Development

Install dependencies

npm install

Build

Build ESM, CJS, and type definitions:

npm run build

Individual build targets:

npm run build:esm    # ES modules
npm run build:cjs    # CommonJS
npm run build:types  # TypeScript declarations

Clean build artifacts:

npm run clean

Lint

npm run lint        # Check for issues
npm run lint:fix    # Auto-fix issues

Test

npm run test        # Run tests once
npm run test:watch  # Watch mode
npm run test:cov    # With coverage

Type check

npm run tsc         # One-time check
npm run tsc:watch   # Watch mode

Publishing

1. Ensure tests pass and code is clean

npm run lint
npm run test
npm run build

2. Update version

npm version patch   # 0.0.1 -> 0.0.2
npm version minor   # 0.0.1 -> 0.1.0
npm version major   # 0.0.1 -> 1.0.0

3. Verify package contents

npm publish --dry-run

4. Publish

npm publish

Authentication

If not logged in:

npm login

Or set a token for CI:

npm config set //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN