UNPKG

@yookue/react-condition

Version:

Render components conditionally for react

111 lines (110 loc) 3.34 kB
{ "name": "@yookue/react-condition", "version": "0.2.1", "title": "ReactCondition", "description": "Render components conditionally for react", "homepage": "https://yookue.github.io/react-condition", "organization": "Yookue Ltd", "private": false, "license": "MIT", "keywords": [ "react-condition", "if", "if-else", "for", "switch", "while", "do-while", "while-do", "map-iterator", "set-iterator", "object-iterator", "condition", "condition-render", "control-statement" ], "files": [ "dist" ], "main": "dist/cjs/index.js", "module": "dist/esm/index.js", "unpkg": "dist/umd/react-condition.min.js", "types": "dist/esm/index.d.ts", "sideEffects": false, "scripts": { "build": "del-cli ./dist && father build", "build:doctor": "father doctor", "build:watch": "father dev", "docs:build": "typedoc --out ./docs-dist", "docs:publish": "gh-pages -d ./docs-dist", "lint": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"", "test": "jest", "test:coverage": "del-cli ./coverage && jest --coverage --coverageDirectory ./coverage" }, "dependencies": { "@babel/runtime": "^7.27.0" }, "devDependencies": { "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.24.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@types/jest": "^29.5.14", "@types/react": "^18.2.0", "@types/react-dom": "^18.2.0", "@typescript-eslint/eslint-plugin": "^8.29.0", "@yookue/babel-plugin-remove-comment": "^0.2.0", "@yookue/typedoc-plugin-raw-content": "~0.3.0", "@yookue/typedoc-theme-dumi": "~0.4.0", "del-cli": "^6.0.0", "father": "^4.5.2", "gh-pages": "^6.3.0", "globals": "^16.0.0", "jest-environment-jsdom": "^29.7.0", "react": "^18.2.0", "react-dom": "^18.2.0", "ts-jest": "^29.3.1", "typedoc": "~0.28.2", "typescript": "^5.8.3" }, "peerDependencies": { "react": ">=17.0.0", "react-dom": ">=17.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/yookue/react-condition.git" }, "bugs": { "url": "https://github.com/yookue/react-condition/issues" }, "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/" }, "collective": { "url": "https://opencollective.com/yookue-awesome" }, "funding": [ { "type": "opencollective", "url": "https://opencollective.com/yookue-awesome" }, { "type": "individual", "url": "https://yookue.com/public/donate" } ], "author": { "name": "Yookue Ltd", "email": "yookue@outlook.com", "url": "https://yookue.com" }, "contributors": [ { "name": "David Hsing", "email": "davidhsing@163.com", "url": "https://github.com/davidhsing" } ] }