UNPKG

use-file-picker

Version:

Simple react hook to open browser file selector.

87 lines 2.1 kB
{ "name": "use-file-picker", "description": "Simple react hook to open browser file selector.", "version": "2.1.4", "license": "MIT", "author": "Milosz Jankiewicz, Kamil Planer", "homepage": "https://github.com/Jaaneek/useFilePicker", "repository": { "url": "https://github.com/Jaaneek/useFilePicker", "type": "git" }, "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "require": { "types": "./dist/index.d.ts", "default": "./dist/index.cjs" }, "import": { "types": "./dist/index.d.ts", "default": "./dist/index.mjs" } }, "./validators": { "require": { "types": "./dist/validators/index.d.ts", "default": "./dist/validators/index.cjs" }, "import": { "types": "./dist/validators/index.d.ts", "default": "./dist/validators/index.mjs" } }, "./types": { "types": "./dist/interfaces.d.ts" } }, "files": [ "dist" ], "peerDependencies": { "@types/react": ">=16", "@types/react-dom": ">=16", "react": ">=16" }, "engines": { "node": ">=12" }, "keywords": [ "file", "fileselector", "file-selector", "file-picker", "filepicker", "file-input", "react-file", "react-file-picker", "react-file-selector" ], "devDependencies": { "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^16.3.0", "@testing-library/user-event": "^14.6.1", "@vitejs/plugin-react": "^4.5.0", "happy-dom": "^17.4.7", "pkgroll": "^2.12.2", "prettier": "^3.5.3", "ts-xor": "^1.3.0", "typescript": "^5.8.3", "vitest": "^3.1.4" }, "dependencies": { "file-selector": "^2.1.2" }, "scripts": { "postbuild": "cp ../../README.md ../../LICENSE .", "build": "pkgroll --clean-dist --sourcemap", "dev": "pkgroll --watch", "test:watch": "vitest", "test": "vitest run", "type-check": "tsc --noEmit" } }