@superscribe/sdk
v10.3.6
Published
The official Superscribe SDK for use in JavaScript!
Downloads
2
Maintainers
Readme
Superscribe JS SDK
Installation
npm install @superscribe/sdk
Basic Usage
import { Superscribe } from '@superscribe/sdk';
const superscribe = new Superscribe('http://superscribe.example.com');
const items = await superscribe.items('articles').readOne(15);
console.log(items);
import { Superscribe } from '@superscribe/sdk';
const superscribe = new Superscribe('http://superscribe.example.com');
superscribe
.items('articles')
.readOne(15)
.then((item) => {
console.log(item);
});
Reference
See the docs for a full usage reference and all supported methods.
Contributing
Requirements
- NodeJS LTS
- pnpm 7.5.0 or newer
Commands
The following pnpm
scripts are available:
pnpm lint
– Lint the code using Eslint / Prettierpnpm test
– Run the unit tests
Make sure that both commands pass locally before creating a Pull Request.
Pushing a Release
This applies to maintainers only
- Create a new version / tag by running
pnpm version <version>
. Tip: usepnpm version patch|minor|major
to auto-bump the version number - Push the version commit / tag to GitHub (
git push && git push --tags
)
The CI will automatically build and release to npm, and generate the release notes.