UNPKG

rutility

Version:

A JavaScript library for validating and formatting Chilean RUTs (Rol Único Tributario). It provides functions to add/remove dots and dashes, validate formats, and calculate check digits

65 lines 1.98 kB
{ "name": "rutility", "version": "1.0.18", "main": "dist/index.js", "browser": "dist/index.js", "module": "dist/index.js", "scripts": { "prettier-format": "prettier --config .prettierrc \"{src,test}/**/*.ts\" --write", "test:unit": "jest", "test:coverage": "npx jest --coverage --collectCoverageFrom='src/**/*.ts'", "test:lint": "eslint --fix", "test": "npm run test:unit & npm run test:coverage & npm run test:lint & npm run prettier-format", "build": "npm run test && tsc --project tsconfig.json", "public-npm": "npm run build && npm publish --access public" }, "files": [ "dist" ], "exports": { ".": { "import": "./dist/index.js", "require": "./dist/index.js", "default": "./dist/index.js" } }, "types": "dist/index.d.ts", "author": "Pedro Yanez <wotanCode> (https://github.com/wotanCode)", "license": "MIT", "description": "A JavaScript library for validating and formatting Chilean RUTs (Rol Único Tributario). It provides functions to add/remove dots and dashes, validate formats, and calculate check digits", "repository": { "type": "git", "url": "git+https://github.com/wotanCode/RUTility.git" }, "homepage": "https://github.com/wotanCode/RUTility#README.md", "keywords": [ "rutility", "rut", "chilean dni", "chilean rut", "rut utils", "validar", "rut", "identificación", "chile", "node" ], "devDependencies": { "@babel/parser": "^7.26.2", "@babel/types": "^7.26.0", "@eslint/js": "^9.15.0", "coverage": "^0.4.1", "eslint": "^8.57.1", "globals": "^15.12.0", "jest": "^29.7.0", "prettier": "^3.3.3", "ts-jest": "^29.2.5", "typescript": "^5.6.3", "typescript-eslint": "^8.14.0", "undici-types": "^6.21.0" }, "funding": { "type": "github", "url": "https://github.com/wotanCode/RUTility?sponsor=1" } }