diff --git a/docs/installation.md b/docs/installation.md index 9b2be06..9f2e0ee 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -10,6 +10,12 @@ $ npm install react-table $ yarn add react-table ``` +React Table uses [Scarf](https://www.npmjs.com/package/@scarf/scarf) to collect +anonymized installation analytics. These anlytics help support the maintainers +of this library. However, if you'd like to opt out, you can do so by setting the +environment variable `SCARF_ANALYTICS=false` before you install, or by setting +`scarfSettings.enabled = false` in your project's `package.json` + To import React Table: ```js diff --git a/package.json b/package.json index 2be9db2..384f652 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,9 @@ "README.md" ], "browserslist": "> 0.25%, not dead", + "dependencies": { + "@scarf/scarf": "^0.1.3" + }, "peerDependencies": { "react": "^16.8.3" }, diff --git a/yarn.lock b/yarn.lock index 90245da..6b19098 100644 --- a/yarn.lock +++ b/yarn.lock @@ -992,6 +992,11 @@ dependencies: any-observable "^0.3.0" +"@scarf/scarf@^0.1.3": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@scarf/scarf/-/scarf-0.1.3.tgz#536f4fe54c613fca20f84dc7700ed3b8f1fb73cf" + integrity sha512-ftMyZO7Mi8JQh8XLBcuH3erPGmT4CU4s131nsZIDC7/PYXxaDCJtOzbz3okH0YiTAif+DSIlFhX6d7FXLOtnvA== + "@sheerun/mutationobserver-shim@^0.3.2": version "0.3.2" resolved "https://registry.yarnpkg.com/@sheerun/mutationobserver-shim/-/mutationobserver-shim-0.3.2.tgz#8013f2af54a2b7d735f71560ff360d3a8176a87b"