{"_id":"@adrianfrith/validator-sa","_rev":"2-9a45538f7583e9f2aa42d0032dac5149","name":"@adrianfrith/validator-sa","dist-tags":{"latest":"0.2.8"},"versions":{"0.2.5":{"name":"@adrianfrith/validator-sa","version":"0.2.5","keywords":["validation","validator","strings","South Africa"],"author":{"url":"http://about.uber5.com/","name":"Chris Oloff","email":"chris@uber5.com"},"license":"MIT","_id":"@adrianfrith/validator-sa@0.2.5","maintainers":[{"name":"adrianfrith","email":"adrian@adrianfrith.com"}],"contributors":[{"url":"http://about.uber5.com/","name":"Chris Oloff","email":"chris@uber5.com"},{"name":"Adrian Frith","email":"adrianf@da.org.za"}],"homepage":"https://github.com/afrith/validator-sa#readme","bugs":{"url":"https://github.com/afrith/validator-sa/issues"},"dist":{"shasum":"ce4b1322bd7ac35e01a529358ecc40696e66c8d5","tarball":"https://registry.npmjs.org/@adrianfrith/validator-sa/-/validator-sa-0.2.5.tgz","fileCount":8,"integrity":"sha512-qwSQLAnBxG3ansH6NdT9HqKekCeE6fBNND5AaePZTEUoU9msBj8r+PFS/Uu10Kb3+qpkOE19kinkhV6gKDvogA==","signatures":[{"sig":"MEYCIQDa/kI0U/hVgngZM6lYn4+vNOHVD+2lCpYB7KB9htBqfgIhAO4BQXYNWOzMQQ0Xiw1cRHX9+CTejVTe8g7Y9N8N1eXF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17017},"jest":{"rootDir":"src"},"main":"dist","babel":{"presets":["@babel/preset-env"]},"gitHead":"4fc05fac3bd45b2a3c947273468cb4a4a68fd2bb","scripts":{"doc":"jsdoc2md -c ./jsdoc.conf --files 'src/*.js' > api.md","test":"jest","build":"babel src --out-dir dist --source-maps","clean":"rimraf lib coverage","precommit":"lint-staged","prepublish":"npm run clean && npm run build && npm test && npm run doc","test:watch":"npm test -- --watch","test:coverage":"jest --coverage"},"_npmUser":{"name":"adrianfrith","email":"adrian@adrianfrith.com"},"repository":{"url":"git+https://github.com/afrith/validator-sa.git","type":"git"},"_npmVersion":"6.13.4","description":"Validation and sanitation for strings, specific to South Africa, compare https://github.com/chriso/validator.js for non-South-Africa specific validation and sanitization","directories":{},"lint-staged":{"*.{js,json,css}":["prettier --write","git add"]},"_nodeVersion":"8.17.0","dependencies":{"ramda":">0.17.1"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^24.9.0","rimraf":"^3.0.0","prettier":"^1.19.1","@babel/cli":"^7.7.4","@babel/core":"^7.7.4","lint-staged":"^9.5.0","@babel/preset-env":"^7.7.4","jsdoc-to-markdown":"^5.0.3"},"_npmOperationalInternal":{"tmp":"tmp/validator-sa_0.2.5_1691953848262_0.2204119513860867","host":"s3://npm-registry-packages"}},"0.2.8":{"name":"@adrianfrith/validator-sa","version":"0.2.8","description":"Validation and sanitation for strings, specific to South Africa, compare https://github.com/chriso/validator.js for non-South-Africa specific validation and sanitization","main":"dist","scripts":{"test":"jest","test:watch":"npm test -- --watch","test:coverage":"jest --coverage","clean":"rimraf lib coverage","precommit":"lint-staged","build":"babel src --out-dir dist --source-maps","doc":"jsdoc2md -c ./jsdoc.conf --files 'src/*.js' > api.md","prepublish":"npm run clean && npm run build && npm test && npm run doc"},"keywords":["validation","validator","strings","South Africa"],"author":{"name":"Chris Oloff","email":"chris@uber5.com","url":"http://about.uber5.com/"},"contributors":[{"name":"Chris Oloff","email":"chris@uber5.com","url":"http://about.uber5.com/"},{"name":"Adrian Frith","email":"adrianf@da.org.za"}],"repository":{"type":"git","url":"git+https://github.com/afrith/validator-sa.git"},"license":"MIT","devDependencies":{"jsdoc-to-markdown":"^5.0.3","@babel/cli":"^7.7.4","@babel/core":"^7.7.4","@babel/preset-env":"^7.7.4","jest":"^24.9.0","lint-staged":"^9.5.0","prettier":"^1.19.1","rimraf":"^3.0.0"},"babel":{"presets":["@babel/preset-env"]},"jest":{"rootDir":"src"},"lint-staged":{"*.{js,json,css}":["prettier --write","git add"]},"dependencies":{"ramda":">0.17.1"},"_id":"@adrianfrith/validator-sa@0.2.8","gitHead":"30383eb084395c900a0606be00441e392eb69f2c","bugs":{"url":"https://github.com/afrith/validator-sa/issues"},"homepage":"https://github.com/afrith/validator-sa#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-DsyfaCyrMIN4tDtFmFcMVbP4eu1sV/qXc6Vns5WGpXmcCHDqWn/ymCMDTff5OVz1rfOoZu6ZoJO+QSXKlqidGg==","shasum":"238354f919109ed4284b2ae862734a999f76ae8c","tarball":"https://registry.npmjs.org/@adrianfrith/validator-sa/-/validator-sa-0.2.8.tgz","fileCount":8,"unpackedSize":20886,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDCiWPC4x+QFyYc6J0CV0eOp9EsJYVRWwvXnn56OZ5aBAiBO3cI3LELmfqhDEDl5dqwt+QV8uBmmRS+j4TCkzENNZA=="}]},"_npmUser":{"name":"adrianfrith","email":"adrian@adrianfrith.com"},"directories":{},"maintainers":[{"name":"adrianfrith","email":"adrian@adrianfrith.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/validator-sa_0.2.8_1743364239504_0.5922177863752318"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-13T19:10:48.145Z","modified":"2025-03-30T19:50:39.881Z","0.2.5":"2023-08-13T19:10:48.542Z","0.2.8":"2025-03-30T19:50:39.711Z"},"bugs":{"url":"https://github.com/afrith/validator-sa/issues"},"author":{"name":"Chris Oloff","email":"chris@uber5.com","url":"http://about.uber5.com/"},"license":"MIT","homepage":"https://github.com/afrith/validator-sa#readme","keywords":["validation","validator","strings","South Africa"],"repository":{"type":"git","url":"git+https://github.com/afrith/validator-sa.git"},"description":"Validation and sanitation for strings, specific to South Africa, compare https://github.com/chriso/validator.js for non-South-Africa specific validation and sanitization","contributors":[{"name":"Chris Oloff","email":"chris@uber5.com","url":"http://about.uber5.com/"},{"name":"Adrian Frith","email":"adrianf@da.org.za"}],"maintainers":[{"name":"adrianfrith","email":"adrian@adrianfrith.com"}],"readme":"# validator-sa\n\nImplements validation and normalization of strings, for South African ID\nnumbers. Maybe in future other validation that is specific to South Africa.\n\n[Here](https://codesandbox.io/s/react-codesandbox-w4o49) is a usage\nexample inside a [React](https://reactjs.org/) component. You can test\nand validate ID numbers there, with error feedback.\n\n# How to Use\n\nInstall it via `npm`:\n\n```\nnpm i validator-sa\n```\n\nIn ES6, import what you need:\n\n```\nimport { isValidSouthAfricanIDNumber } from 'validator-sa'\n```\n\nIn ES5, `require` it, and use it form there:\n\n```\nvar validator = require('validator-sa');\n\nvar isValid = validator.isValidSouthAfricanIDNumber('123')\n// `isValid` should be false\n```\n\n# API\n\nDocumentation is [here](./api.md).\n\nTODO: Not all functions are documented.\n\n# Development\n\n## Publish\n\nIn order to publish to npmjs.com, ensure to run the `prepublish` script first,\nthen publish the package:\n\n* `npm run prepublish`\n* `npm version patch`\n* `npm publish`\n\n","readmeFilename":"README.md"}