Install browser SDK
Yarn or NPM can be used to install the package.
TypeScript type definitions are included as a part of the installed package.
Install the package
NPM
- Append the line below to your
.npmrcfile in the root of your project directory (wherepackage.jsonis located). If.npmrcdoes not exist, create it in the root of your project directory.
.npmrc
@seeka-labs:registry=https://npm.packages.seeka.services/- Login to NPM to get your token (this will create the token in
.npmrcin your user directory) The username and password below can be found in API settings once approved for NPM registry access by our platform team.
npm login --registry=https://npm.packages.seeka.services- Run the below command to get the contents of
.npmrcin your user directory, and copy the line starting with//npm.packages.seeka.services/:_authTokeninto your projects.npmrcfile.
cat ~/.npmrcYour final .npmrc file in the root of your project should look like the below:
.npmrc
@seeka-labs:registry=https://npm.packages.seeka.services/
//npm.packages.seeka.services/:_authToken=aFwHegFR8v237ic23GsdhBwD5TfXEEFFbp2BHdq45309sS/ZB5268Asn9EMGaD45Adg- Install the package
npm install --save @seeka-labs/converge@latest- Ensure the
.npmrcfile is commited to your code repository to allow your CD pipeline to install the packages.
Yarn classic (v1)
- Append the line below to your
.npmrcfile in the root of your project directory (wherepackage.jsonis located). If.npmrcdoes not exist, create it in the root of your project directory.
.npmrc
@seeka-labs:registry=https://npm.packages.seeka.services/- Append the line below to your
.yarnrcfile in the root of your project directory (wherepackage.jsonis located). If.yarnrcdoes not exist, create it in the root of your project directory.
.yarnrc
"@seeka-labs:registry" "https://npm.packages.seeka.services/"- Login to NPM to get your token (this will create the token in
.npmrcin your user directory) The username and password below can be found in API settings once approved for NPM registry access by our platform team.
npm login --registry=https://npm.packages.seeka.services- Run the below command to get the contents of
.npmrcin your user directory, and copy the line starting with//npm.packages.seeka.services/:_authTokeninto your projects.npmrcfile.
cat ~/.npmrcYour final .npmrc file in the root of your project should look like the below:
.npmrc
@seeka-labs:registry=https://npm.packages.seeka.services/
//npm.packages.seeka.services/:_authToken=aFwHegFR8v237ic23GsdhBwD5TfXEEFFbp2BHdq45309sS/ZB5268Asn9EMGaD45Adg- Install the package
yarn add @seeka-labs/converge@latest- Ensure
.npmrcand.yarnrcfiles are commited to your code repository to allow your CD pipeline to install the packages.
If the error below happens when you try and install the package, ensure that
.npmrcand.yarnrcare saved with UTF-8 encodingSyntaxError: Unknown token: { line: 1, col: 0, type: 'INVALID', value: undefined } 1:0 in \.yarnrc
Yarn v2+
The username and password below can be found in API settings once approved for NPM registry access by our platform team.
- Append the lines below to your
.yarnrc.ymlfile in the root of your project directory (wherepackage.jsonis located). If.yarnrc.ymldoes not exist, create it in the root of your project directory.
.yarnrc.yml
npmScopes:
seeka-labs:npmAlwaysAuth: false
npmRegistryServer: "https://npm.packages.seeka.services"
npmAuthIdent: "yourSeekaNpmRegistryUsername:yourSeekaNpmRegistryPassword"- Install the package
yarn add @seeka-labs/converge@latest- Ensure
.yarnrc.ymlfile is commited to your code repository to allow your CD pipeline to install the packages.
Version tags
latest- Latest stable releasealpha- Latest preview/development releaseX.Y.Z- Specific version
To install a specific version, replace latest in the examples above with the version tag.