UNPKG

file-selector

Version:

Convert DataTransfer object to a list of File objects

114 lines (113 loc) 2.82 kB
{ "name": "file-selector", "version": "4.0.2", "description": "Convert DataTransfer object to a list of File objects", "keywords": [ "DataTransfer", "File", "drag-and-drop", "file-api", "html5" ], "homepage": "https://github.com/react-dropzone/file-selector", "license": "MIT", "author": { "name": "Roland Groza", "email": "rolandjitsu@gmail.com" }, "repository": { "type": "git", "url": "https://github.com/react-dropzone/file-selector.git" }, "files": [ "dist", "src", "!src/**/*.spec.*" ], "type": "module", "sideEffects": false, "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", "require": "./dist/index.cjs" }, "./mime": { "types": "./dist/mime.d.ts", "import": "./dist/mime.js", "require": "./dist/mime.cjs" }, "./package.json": "./package.json" }, "publishConfig": { "access": "public" }, "scripts": { "prepare": "prek install || exit 0", "hooks:install": "prek install", "hooks:run": "prek run --all-files", "prebuild": "npm run clean", "build": "tsdown", "dev": "tsdown --watch", "clean": "rm -rf dist", "type-check": "tsc --noEmit", "lint": "oxlint", "lint:fix": "oxlint --fix", "lint:type-aware": "oxlint --type-aware", "format": "oxfmt .", "format:check": "oxfmt --check .", "pretest:cov": "npm run type-check && npm run lint && npm run format:check", "test": "vitest", "test:cov": "vitest run --coverage", "pretest:e2e": "npm run build", "test:e2e": "playwright test", "presize": "npm run build", "size": "size-limit", "docs:dev": "vocs dev", "docs:build": "vocs build", "docs:preview": "vocs preview" }, "devDependencies": { "@playwright/test": "^1.61.1", "@size-limit/file": "^12.1.0", "@types/node": "^26.1.1", "@vitest/coverage-v8": "^4.1.10", "jsdom": "^29.1.1", "oxfmt": "^0.58.0", "oxlint": "^1.73.0", "oxlint-tsgolint": "^0.24.0", "react": "^19.2.7", "react-dom": "^19.2.7", "react-server-dom-webpack": "^19.2.7", "size-limit": "^12.1.0", "tsdown": "^0.22.5", "typescript": "^7.0.2", "vitest": "^4.1.10", "vocs": "^2.5.3", "waku": "^1.0.0-beta.6" }, "size-limit": [ { "name": "core, esm (fromEvent + default MIME map)", "path": [ "dist/index.js", "dist/mime-default.js" ], "limit": "3 kB" }, { "name": "core, cjs (fromEvent + default MIME map)", "path": [ "dist/index.cjs", "dist/mime-default.cjs" ], "limit": "4 kB" } ], "engines": { "node": ">= 20" } }