Getting started

Private packages for importOK

Once you subscribe to a paid plan, you will receive an email with a license key and access to the private repository. You can install the package directly via npm or yarn.

Please note that the paid plans are fully compatible with the tester plan, meaning that no code changes are needed when upgrading. All you need is to switch to the private packages as described below.

If you've previously installed the free version, the private package might not be automatically detected by npm or yarn. If this occurs, you should receive a console warning indicating that the free version is still installed. To resolve this, you'll need to remove the node_modules/@importok folder and reinstall the package.

npm

You will need to create a new file called .npmrc in your project root folder.

Then you will need to copy paste the following. Please make sure to replace $TOKEN with the token provided via email. After that, you can install the package as you would normally do.

1@importok:registry=https://npm.importok.io/
2//npm.importok.io/:_authToken=$TOKEN

yarn

You will need to create a new file called .yarnrc.yml in your project root folder.

Then you will need to copy paste the following. Please make sure to replace $TOKEN with the token provided via email. After that, you can install the package as you would normally do.

1npmScopes:
2 importok:
3 npmRegistryServer: https://npm.importok.io/
4 npmAlwaysAuth: true
5 npmAuthToken: $TOKEN