@givesentiment/js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Sentiment Browser JS Library

npm package MIT License

Please see Sentiment Docs. Specifically, Quickstart/Implementation details.

What is Sentiment

Sentiment redefines survey experiences, blending user-centric design with innovative digital rewards. We provide precise, efficient targeting for quality insights, far surpassing the capabilities of traditional platforms. Our agile, adaptable approach ensures your feedback shapes our evolution.

How to use this library

  1. Install the Sentiment package inside your project using npm:
npm install -s @givesentiment/js
  1. Import Sentiment and initialize the widget in your main component (e.g., App.tsx or App.js):
import sentiment from "@givesentiment/js";

if (typeof window !== "undefined") {
  sentiment.init({
    environmentId: "your-environment-id",
  });
}

Replace your-environment-id with your actual environment ID. You can find your environment ID in the Setup Checklist in the Sentiment settings.

For more detailed guides for different frameworks, check out our Framework Guides.

Package Sidebar

Install

npm i @givesentiment/js

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

2.52 MB

Total Files

10

Last publish

Collaborators

  • ccashwell