Skip to content

Installation

Depending on the programming language used (JavaScript or Python), the package can be directly loaded from npm or PyPI. Since it is currently still a pre-release, the next tag must be used for npm, and the test.pypi.org index must be used for PyPI.

Terminal window
npm install @requence/service@next

The previously created access token can be used in various ways.

Terminal window
REQUENCE_SERVICE_ACCESS_TOKEN="..."
# or
REQUENCE_ACCESS_TOKEN="..."

in package.json ts/js only

Section titled “in package.json ”
{
"name": "...",
"type": "module",
"version": "...",
"dependencies": {
"@requence/service": "next"
}
"peerDependencies": {
"typescript": "^5.0.0",
},
"requence": {
"accessToken": "..."
}
}
import { createService } from '@requence/service'
createService(
{
version: '...',
accessToken: '...',
},
(ctx) => {
...
},
)