react-svg-worldmap
Version:
A pure react component to draw a map of world countries. Simple. Free.
95 lines (94 loc) • 2.29 kB
JSON
{
"name": "react-svg-worldmap",
"version": "2.0.2",
"license": "MIT",
"displayName": "React Worldmap",
"description": "A pure react component to draw a map of world countries. Simple. Free.",
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"README.md",
"dist/index.js",
"dist/index.cjs",
"dist/index.d.ts",
"dist/index.d.cts"
],
"sideEffects": false,
"engines": {
"node": ">=18"
},
"scripts": {
"build": "tsup && node scripts/inline-sourcemaps.cjs",
"build:local": "yarn build && npm pack",
"generate:readme": "node scripts/generate-readme.mjs",
"test": "ESBUILD_LOG_LEVEL=silent vitest run",
"test:watch": "ESBUILD_LOG_LEVEL=silent vitest",
"test:coverage": "ESBUILD_LOG_LEVEL=silent vitest run --coverage"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
}
},
"typesVersions": {
"*": {
"*": [
"dist/index.d.ts"
]
}
},
"dependencies": {
"d3-geo": "^2.0.2",
"react-path-tooltip": "^1.0.25",
"topojson-client": "^3.1.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.4.0",
"@testing-library/react": "^14.3.0",
"@testing-library/user-event": "^14.5.2",
"@types/d3-geo": "^2.0.2",
"@types/geojson": "^7946.0.10",
"@types/topojson-client": "^3.1.5",
"@types/topojson-server": "^3.0.4",
"@vitest/coverage-v8": "^1.6.0",
"jsdom": "^24.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"topojson-server": "^3.0.1",
"tsup": "^8.0.0",
"tsx": "^4.21.0",
"vitest": "^1.6.0"
},
"peerDependencies": {
"react": ">=16.8",
"react-dom": ">=16.8"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
}
},
"authors": [
"yanivam (https://github.com/yanivam)"
],
"keywords": [
"react",
"worldmap",
"world map",
"map",
"component",
"typescript",
"svg",
"countries"
],
"bugs": "https://github.com/yanivam/react-svg-worldmap/issues",
"repository": {
"type": "git",
"url": "git+https://github.com/yanivam/react-svg-worldmap.git"
}
}