JavaScript/TypeScript SDK for Clarify platform
npm install @getclarify/nodejs-sdkJavaScript/TypeScript SDK for the Clarify platform.
- Node.js >= 18.0.0
- npm
``bash`
npm install
Build ESM, CJS, and type definitions:
`bash`
npm run build
Individual build targets:
`bash`
npm run build:esm # ES modules
npm run build:cjs # CommonJS
npm run build:types # TypeScript declarations
Clean build artifacts:
`bash`
npm run clean
`bash`
npm run lint # Check for issues
npm run lint:fix # Auto-fix issues
`bash`
npm run test # Run tests once
npm run test:watch # Watch mode
npm run test:cov # With coverage
`bash`
npm run tsc # One-time check
npm run tsc:watch # Watch mode
`bash`
npm run lint
npm run test
npm run build
`bash`
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
`bash`
npm publish --dry-run
`bash`
npm publish
If not logged in:
`bash`
npm login
Or set a token for CI:
`bash``
npm config set //registry.npmjs.org/:_authToken=YOUR_NPM_TOKEN