{"_id":"@accuser/ulnjs","_rev":"2-ead7180690ece5e7052ab4acd31dc1a1","name":"@accuser/ulnjs","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@accuser/ulnjs","version":"1.0.0","description":"Unique Learner Number (ULN) library for JavaScript","main":"src/index.js","type":"module","keywords":["uln"],"author":{"name":"Matthew Gibbons","email":"mhgibbons@me.com","url":"https://github.com/accuser"},"repository":{"type":"git","url":"git+https://github.com/accuser/ulnjs.git"},"license":"Apache-2.0","scripts":{"test":"node --test"},"bugs":{"url":"https://github.com/accuser/ulnjs/issues"},"homepage":"https://github.com/accuser/ulnjs#readme","_id":"@accuser/ulnjs@1.0.0","_integrity":"sha512-UAkCs9IWk3cPe+L+ebZZ+kBQo2ugsN8mLsTbwFygfMuAtyBABtCeVtZmw/vsWIh3218tG/l0C1iRssR1WSvBcQ==","_resolved":"/private/var/folders/nw/htw2nq0n3gv6xwnkr6vkcyt00000gn/T/479f08ff8eead091aee8d1ee487095e1/accuser-ulnjs-1.0.0.tgz","_from":"file:accuser-ulnjs-1.0.0.tgz","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-UAkCs9IWk3cPe+L+ebZZ+kBQo2ugsN8mLsTbwFygfMuAtyBABtCeVtZmw/vsWIh3218tG/l0C1iRssR1WSvBcQ==","shasum":"ec531cbb6d41d85849eeca4b1eddb14787c0f22a","tarball":"https://registry.npmjs.org/@accuser/ulnjs/-/ulnjs-1.0.0.tgz","fileCount":5,"unpackedSize":20653,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4nJ7h/Cue7LTg7ZdSWH8TDnVcXG9npmKdCILmtWvqKgIhAPUrqr2oCNdWKzKYGg1nM7FejuU58W3OFbD8+EhrfWn6"}]},"_npmUser":{"name":"accuser","email":"mhgibbons@me.com"},"directories":{},"maintainers":[{"name":"accuser","email":"mhgibbons@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulnjs_1.0.0_1705304218240_0.23957795980357854"},"_hasShrinkwrap":false},"1.0.1":{"name":"@accuser/ulnjs","version":"1.0.1","description":"Unique Learner Number (ULN) library for JavaScript","main":"src/index.js","type":"module","keywords":["uln"],"author":{"name":"Matthew Gibbons","email":"mhgibbons@me.com","url":"https://github.com/accuser"},"repository":{"type":"git","url":"git+https://github.com/accuser/ulnjs.git"},"license":"Apache-2.0","scripts":{"test":"node --test"},"bugs":{"url":"https://github.com/accuser/ulnjs/issues"},"homepage":"https://github.com/accuser/ulnjs#readme","_id":"@accuser/ulnjs@1.0.1","_integrity":"sha512-qYeyTUrm+tHjFswdZQaytmCne9GZzt0UTFGOD8YNcFT2DN71eDeTp+L8CYM2m8/0OKPKaQM8aeJQWt+VBp1cSA==","_resolved":"/private/var/folders/nw/htw2nq0n3gv6xwnkr6vkcyt00000gn/T/0634c54d9a2df1959e6fb9b991f6d5ac/accuser-ulnjs-1.0.1.tgz","_from":"file:accuser-ulnjs-1.0.1.tgz","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-qYeyTUrm+tHjFswdZQaytmCne9GZzt0UTFGOD8YNcFT2DN71eDeTp+L8CYM2m8/0OKPKaQM8aeJQWt+VBp1cSA==","shasum":"afcd1f9085980b8aae7231fec3f2396b2a8d49bc","tarball":"https://registry.npmjs.org/@accuser/ulnjs/-/ulnjs-1.0.1.tgz","fileCount":5,"unpackedSize":20646,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+zb8EFdNgsw4bbPafJQHFc34qEDh2TmzO92f012/MdAiEAxXB4CYyvZPeQ+Yw+gQgSgRTE9CfodPccClY93qThDBE="}]},"_npmUser":{"name":"accuser","email":"mhgibbons@me.com"},"directories":{},"maintainers":[{"name":"accuser","email":"mhgibbons@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulnjs_1.0.1_1705304723452_0.5195231317643589"},"_hasShrinkwrap":false},"1.0.2":{"name":"@accuser/ulnjs","version":"1.0.2","description":"Unique Learner Number (ULN) library for JavaScript","main":"src/index.js","type":"module","keywords":["uln"],"author":{"name":"Matthew Gibbons","email":"mhgibbons@me.com","url":"https://github.com/accuser"},"repository":{"type":"git","url":"git+https://github.com/accuser/ulnjs.git"},"license":"Apache-2.0","scripts":{"test":"node --test"},"bugs":{"url":"https://github.com/accuser/ulnjs/issues"},"homepage":"https://github.com/accuser/ulnjs#readme","_id":"@accuser/ulnjs@1.0.2","_integrity":"sha512-nZKTF+VqcA9sPvygpXQIYaPtu+F1yIaPnqBKxxLjmATDQEmJ7STOnj86bqcyMkksJO7W11SgQr9Vh6Z6t/MrSg==","_resolved":"/private/var/folders/nw/htw2nq0n3gv6xwnkr6vkcyt00000gn/T/bd5767785b33faee3f9433916ce7788f/accuser-ulnjs-1.0.2.tgz","_from":"file:accuser-ulnjs-1.0.2.tgz","_nodeVersion":"21.4.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-nZKTF+VqcA9sPvygpXQIYaPtu+F1yIaPnqBKxxLjmATDQEmJ7STOnj86bqcyMkksJO7W11SgQr9Vh6Z6t/MrSg==","shasum":"cddb9b4007a10a353e15e1f45ce747fe63cf5cae","tarball":"https://registry.npmjs.org/@accuser/ulnjs/-/ulnjs-1.0.2.tgz","fileCount":5,"unpackedSize":20647,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6IjAbVUKh6gd3yEZjUHkMu0BEplnt6C6c536SEIX2JQIgMFDuuxGtVDZCnAj44tXPIXS02IxHcRuKPSMOHzUVsoo="}]},"_npmUser":{"name":"accuser","email":"mhgibbons@me.com"},"directories":{},"maintainers":[{"name":"accuser","email":"mhgibbons@me.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ulnjs_1.0.2_1705305131100_0.882642386131532"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-15T07:36:58.173Z","1.0.0":"2024-01-15T07:36:58.385Z","modified":"2024-01-15T07:52:11.428Z","1.0.1":"2024-01-15T07:45:23.591Z","1.0.2":"2024-01-15T07:52:11.260Z"},"maintainers":[{"name":"accuser","email":"mhgibbons@me.com"}],"description":"Unique Learner Number (ULN) library for JavaScript","homepage":"https://github.com/accuser/ulnjs#readme","keywords":["uln"],"repository":{"type":"git","url":"git+https://github.com/accuser/ulnjs.git"},"author":{"name":"Matthew Gibbons","email":"mhgibbons@me.com","url":"https://github.com/accuser"},"bugs":{"url":"https://github.com/accuser/ulnjs/issues"},"license":"Apache-2.0","readme":"# Unique Learner Number\n\nA Unique Learner Number (ULN) is a unique identifier assigned to learners in the United Kingdom. It is used to track and record an individual's learning and qualifications across different educational institutions and training providers.\n\n## Installation\n\n```sh\nnpm install @accuser/ulnjs\n```\n\n## Examples\n\nCreate a new ULN object from a String value:\n\n```js\nconst uln = ULN.fromString(\"0000000042\");\n```\n\nValidate a ULN:\n\n```js\nif (!ULN.isValid(uln)) {\n    // ...grumble\n};\n```\n\nRequire a valid ULN:\n\n```js\nclass LearnerRegistrationRequest {\n    #uln;\n\n    /**\n     * @param {string|ULN} uln\n     */\n    constructor(uln) {\n        // `uln` is not `null` or `undefined`\n        // `uln` is a valid ULN value\n        this.#uln = ULN.requireValidULN(uln);\n    }\n}\n```\n\n## Testing\n\nTo clone the package repo and perform unit tests:\n\n```sh\ngit clone https://github.com/accuser/ulnjs.git\ncd ulnjs\nnode run test\n```\n\n## Contributors\n\nThe original author of [`@accuser/ulnjs`](https://github.com/accuser/ulnjs) is [Matthew Gibbons](https://github.com/accuser).\n\n## License\n\nCopyright 2024 Matthew Gibbons\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","readmeFilename":"README.md"}