react-unique-id-generator
Version:
A lightweight, zero-dependency library for generating unique, sequential IDs in React — with hooks, custom prefix/suffix, SSR support, and stable CSS selector generation
79 lines (78 loc) • 2.17 kB
JSON
{
"name": "react-unique-id-generator",
"version": "2.3.0",
"description": "A lightweight, zero-dependency library for generating unique, sequential IDs in React — with hooks, custom prefix/suffix, SSR support, and stable CSS selector generation",
"main": "./dist/index.cjs.js",
"module": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js"
}
},
"sideEffects": false,
"files": [
"dist"
],
"scripts": {
"build": "tsup && tsc --emitDeclarationOnly --declarationMap",
"build:watch": "tsup --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"prepublishOnly": "npm run build",
"clean": "rm -rf dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/riyajath-ahamed/react-unique-id-generator.git"
},
"keywords": [
"react-id",
"unique-id",
"id-generator",
"react-hooks",
"useId",
"useId-alternative",
"ssr-safe-id",
"react-ssr-id",
"react-unique-id",
"react-form-id",
"accessibility-id",
"aria-id",
"data-testid",
"data-testid-generator",
"test-automation-id",
"typescript",
"react-context",
"sequential-id",
"css-selector",
"stable-selector",
"dom-selector"
],
"author": "riyajath-ahamed <riyajath.ahamed@gmail.com> (https://github.com/riyajath-ahamed)",
"license": "MIT",
"peerDependencies": {
"react": ">=16.8.0"
},
"bugs": {
"url": "https://github.com/riyajath-ahamed/react-unique-id-generator/issues"
},
"homepage": "https://github.com/riyajath-ahamed/react-unique-id-generator#readme",
"devDependencies": {
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.3.1",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.79",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.2.0",
"react-test-renderer": "^18.2.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsup": "^8.0.0",
"typescript": "^5.4.5"
}
}