UNPKG

zipcodes-us

Version:

Fast, lightweight US ZIP code lookup library providing city, state, county, and geographic coordinates with TypeScript support - works in both browser and Node.js

83 lines (82 loc) 2.71 kB
{ "name": "zipcodes-us", "version": "1.0.3", "type": "module", "description": "Fast, lightweight US ZIP code lookup library providing city, state, county, and geographic coordinates with TypeScript support - works in both browser and Node.js", "main": "dist/index.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "browser": "dist/index.umd.js", "sideEffects": false, "exports": { ".": { "import": "./dist/index.esm.js", "require": "./dist/index.js", "types": "./dist/index.d.ts" } }, "files": [ "dist", "data" ], "scripts": { "download-data": "node src/scripts/download-data.js", "process-data": "node --loader ts-node/esm src/scripts/process-data.ts", "check-data": "node -e \"const fs=require('fs');const path=require('path');if(!fs.existsSync(path.join('data','zip-data.js'))){console.error('Error: zip-data.js not found! Please run npm run process-data first.');process.exit(1)}\"", "prebuild": "rimraf dist && npm run check-data || npm run process-data", "build": "rollup -c", "build:types": "tsc --emitDeclarationOnly --outDir dist", "prepare": "npm run build", "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "postinstall": "node -e \"const fs=require('fs');const path=require('path');if(!fs.existsSync(path.join('data','zip-data.js'))){console.warn('Warning: zip-data.js not found. If you plan to use this package, run npm run process-data first.')}\"" }, "keywords": [ "zipcode", "zip", "us", "postal", "code", "lookup", "geo", "location", "address", "find", "find city by zipcode", "find state by zipcode", "find county by zipcode", "find geo by zipcode", "browser", "universal", "isomorphic" ], "author": "", "license": "MIT", "devDependencies": { "@rollup/plugin-commonjs": "^28.0.2", "@rollup/plugin-json": "^6.1.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^12.1.2", "@types/jest": "^29.5.14", "@types/node": "^22.13.10", "@types/unzipper": "^0.10.11", "jest": "^29.7.0", "rimraf": "^6.0.1", "rollup": "^4.34.9", "ts-jest": "^29.2.6", "ts-node": "^10.9.2", "tslib": "^2.8.1", "typescript": "^5.8.2", "unzipper": "^0.12.3" }, "repository": { "type": "git", "url": "git+https://github.com/ikarthikng/zipcodes-us.git" }, "bugs": { "url": "https://github.com/ikarthikng/zipcodes-us/issues" }, "homepage": "https://github.com/ikarthikng/zipcodes-us#readme" }