How to integrate an npm package
Add the Grovs SDK to your web project using npm.
1
Create package.json
Skip this for an existing project:
Bash
npm init -y2
Install the package
Bash
npm install grovs3
Import the package
javascript
const { default: Grovs } = require('grovs');javascript
import Grovs from 'grovs';Bundlers such as Webpack, Vite and Parcel resolve the import at build time.
4
Configure the SDK
javascript
await Grovs.configure({
apiKey: 'your-api-key',
// Additional configuration options
});See the Web Quick Start for every configuration option.
Was this page helpful?