react-share
Version:
Social media share buttons and share counts for React.
97 lines (96 loc) • 2.65 kB
JSON
{
"name": "react-share",
"version": "5.3.0",
"description": "Social media share buttons and share counts for React.",
"type": "module",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"build": "vite build",
"build-demo": "vite build --config vite.demo.config.js",
"check-types": "tsc --noEmit -p tsconfig.json && tsc --noEmit -p tsconfig.demo.json",
"demo": "vite --config vite.demo.config.js",
"lint": "eslint ./src ./demo",
"lint-package": "npx publint && npx @arethetypeswrong/cli --pack .",
"prepublishOnly": "npm run build",
"start": "npm run demo",
"test": "vitest run",
"test:dist": "vitest run --config vitest.dist.config.ts",
"test:coverage": "vitest run --coverage",
"release": "npm run build && changeset publish"
},
"keywords": [
"react",
"component",
"react-component",
"social",
"media",
"social-media",
"share",
"button",
"count"
],
"repository": {
"type": "git",
"url": "git+https://github.com/nygardk/react-share.git"
},
"author": {
"name": "Klaus Nygård",
"email": "klaus.nygard@gmail.com",
"url": "https://www.klausnygard.fi"
},
"contributors": [
{
"name": "Ari Autio",
"email": "ari.autio@iki.fi"
}
],
"license": "MIT",
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/assert": "^1.5.11",
"@types/jsonp": "^0.2.3",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@typescript-eslint/eslint-plugin": "^8.56.1",
"@typescript-eslint/parser": "^8.56.1",
"@vitejs/plugin-react": "^5.1.4",
"@vitest/coverage-v8": "^4.0.18",
"eslint": "^9.39.4",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"globals": "^17.4.0",
"jsdom": "^28.1.0",
"prettier": "^3.8.1",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-plugin-dts": "^4.5.4",
"vitest": "^4.0.18"
},
"dependencies": {
"classnames": "^2.3.2",
"jsonp": "^0.2.1"
},
"peerDependencies": {
"react": "^17 || ^18 || ^19"
}
}