UNPKG

@huggingface/hub

Version:

Utilities to interact with the Hugging Face hub

74 lines 1.95 kB
{ "name": "@huggingface/hub", "version": "2.7.1", "description": "Utilities to interact with the Hugging Face hub", "repository": "https://github.com/huggingface/huggingface.js.git", "publishConfig": { "access": "public" }, "main": "./dist/index.js", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "exports": { ".": { "types": "./dist/index.d.ts", "require": "./dist/index.js", "import": "./dist/index.mjs" } }, "browser": { "./src/utils/sha256-node.ts": false, "./src/utils/sub-paths.ts": false, "./src/utils/FileBlob.ts": false, "./src/lib/cache-management.ts": false, "./src/lib/download-file-to-cache-dir.ts": false, "./src/lib/snapshot-download.ts": false, "./dist/index.js": "./dist/browser/index.js", "./dist/index.mjs": "./dist/browser/index.mjs" }, "engines": { "node": ">=18" }, "source": "index.ts", "files": [ "src", "dist", "index.ts", "tsconfig.json" ], "keywords": [ "huggingface", "hub", "api", "client", "hugging", "face" ], "bin": { "hfjs": "./dist/cli.js" }, "author": "Hugging Face", "license": "MIT", "dependencies": { "@huggingface/tasks": "^0.19.64" }, "optionalDependencies": { "cli-progress": "^3.12.0" }, "devDependencies": { "@types/cli-progress": "^3.11.6" }, "scripts": { "lint": "eslint --quiet --fix --ext .cjs,.ts .", "lint:check": "eslint --ext .cjs,.ts .", "format": "prettier --write .", "format:check": "prettier --check .", "build": "tsup && tsc --emitDeclarationOnly --declaration", "test": "vitest run", "test:browser": "vitest run --browser.name=chrome --browser.headless --config vitest-browser.config.mts", "check": "tsc", "build:xet-wasm": "./scripts/build-xet-wasm.sh -t bundler --clean", "bench": "tsx scripts/bench.ts", "debug-xet": "tsx scripts/debug-xet.ts" } }