UNPKG

@cardog/corgi

Version:

A TypeScript library for decoding and validating Vehicle Identification Numbers (VINs) using a customized VPIC (Vehicle Product Information Catalog) database. Supports Node.js, browser, and Cloudflare environments with fully offline VIN decoding.

109 lines 2.94 kB
{ "name": "@cardog/corgi", "version": "1.0.0", "description": "A TypeScript library for decoding and validating Vehicle Identification Numbers (VINs) using a customized VPIC (Vehicle Product Information Catalog) database. Supports Node.js, browser, and Cloudflare environments with fully offline VIN decoding.", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.mjs", "types": "./dist/index.d.ts", "bin": { "corgi": "dist/cli.cjs" }, "files": [ "dist", "dist/db/vpic.lite.db.gz", "scripts", "examples", "README.md", "LICENSE" ], "private": false, "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", "require": "./dist/index.cjs", "default": "./dist/index.mjs" }, "./browser-adapter": { "types": "./dist/db/browser-adapter.d.ts", "import": "./dist/db/browser-adapter.js", "require": "./dist/db/browser-adapter.js" }, "./d1-adapter": { "types": "./dist/db/d1-adapter.d.ts", "import": "./dist/db/d1-adapter.js", "require": "./dist/db/d1-adapter.js" } }, "browser": { "./dist/index.js": "./dist/browser.js", "better-sqlite3": false }, "scripts": { "build": "tsup", "test": "vitest run --config ./vitest.config.ts", "test:watch": "vitest --config ./vitest.config.ts", "test:coverage": "vitest run --coverage --config ./vitest.config.ts", "clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist", "cli": "node dist/cli.cjs", "lint": "eslint \"lib/**/*.ts\"", "dev": "tsup --watch", "prepare-db": "node scripts/prepare-db.js", "prepublishOnly": "npm run build && npm run prepare-db", "optimize-db": "cd db && ./optimize-db-v3.sh", "to-d1": "node scripts/sqlite-to-d1.js" }, "keywords": [ "vin", "decoder", "automotive", "nhtsa", "vpic", "vehicle", "identification", "number", "car", "automobile", "typescript", "offline", "validation", "cloudflare", "browser", "nodejs" ], "author": "crdg", "license": "ISC", "engines": { "node": ">=14.0.0" }, "peerDependencies": { "sql.js": "^1.8.0" }, "dependencies": { "better-sqlite3": "^9.4.1", "commander": "^12.0.0" }, "devDependencies": { "@cloudflare/workers-types": "^4.20250525.0", "@types/better-sqlite3": "^7.6.9", "@types/commander": "^2.12.2", "@types/node": "^20.11.19", "@types/pino": "^7.0.5", "@types/sql.js": "^1.4.9", "@vitest/coverage-v8": "^1.3.1", "sql.js": "^1.13.0", "tsup": "^8.0.2", "typescript": "^5.3.3", "vitest": "^1.3.0" }, "repository": { "type": "git", "url": "git+https://github.com/cardog-ai/corgi.git" }, "bugs": { "url": "https://github.com/cardog-ai/corgi/issues" }, "homepage": "https://github.com/cardog-ai/corgi#readme" }