UNPKG

react-keyed-flatten-children

Version:

Flattens React children and fragments to an array with predictable and stable keys

58 lines (57 loc) 1.46 kB
{ "name": "react-keyed-flatten-children", "version": "5.0.0", "description": "Flattens React children and fragments to an array with predictable and stable keys", "type": "module", "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.cjs" } }, "main": "./dist/index.js", "types": "./dist/index.d.ts", "homepage": "https://github.com/grrowl/react-keyed-flatten-children", "repository": { "type": "git", "url": "https://github.com/grrowl/react-keyed-flatten-children.git" }, "scripts": { "build": "tsup index.ts --format esm,cjs --clean --dts --cjsInterop --splitting", "test": "tsx index.spec.tsx", "prepublishOnly": "npm run build" }, "keywords": [ "react", "fragment", "flatten", "children", "utility" ], "author": "Tom McKenzie <tom@chillidonut.com>", "license": "MIT", "files": [ "dist/" ], "devDependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.2.0", "@types/node": "^16.18.32", "@types/react": "^19.0.7", "@types/react-is": "^19.0.0", "@types/tape": "^5.8.1", "jsdom": "^26.0.0", "jsdom-global": "^3.0.2", "prettier": "^2.8.8", "react": "^19.0.0", "react-is": "^19.0.0", "tape": "^5.9.0", "tsup": "^7.2.0", "tsx": "^3.13.0", "typescript": "^5.0.4" }, "peerDependencies": { "react": ">=18.0.0", "react-is": ">=18.0.0" } }