{"_id":"@node-oauth/formats","_rev":"4-382266e5fbb5d09887cdaa8041a9bd79","name":"@node-oauth/formats","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@node-oauth/formats","version":"1.0.0","keywords":["unicode","validate","utf-8","ascii","vschar","uri","uchar","nqschar","nqchar","nchar"],"license":"MIT","_id":"@node-oauth/formats@1.0.0","maintainers":[{"name":"jkuester","email":"jkuester@uni-bremen.de"},{"name":"happyzombies","email":"DANIEL.REGUERO@HOTMAIL.COM"}],"contributors":[{"name":"Jan Küster","email":"info@jankuester.com"},{"name":"Jonah Werre","email":"jonahwerre@gmail.com"},{"name":"Michael Salinger","email":"mjsalinger@gmail.com"},{"name":"Nuno Sousa"}],"homepage":"https://github.com/node-oauth/formats#readme","bugs":{"url":"https://github.com/node-oauth/formats/issues"},"dist":{"shasum":"6525478802180199ecf6ea3208fc5e1b683031be","tarball":"https://registry.npmjs.org/@node-oauth/formats/-/formats-1.0.0.tgz","fileCount":5,"integrity":"sha512-DwSbLtdC8zC5B5gTJkFzJj5s9vr9SGzOgQvV9nH7tUVuMSScg0EswAczhjIapOmH3Y8AyP7C4Jv7b8+QJObWZA==","signatures":[{"sig":"MEQCIF6dAhxH1ClhQTl5PG1rQgf0LEFDcwFVCza28VZoxrpwAiBTsN3lkHpS+XyuJ+KpGhHD6dnGg2qn/mm6QHH7RwDkhg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9371,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhtMuHCRA9TVsSAnZWagAAlHYP/RadMLYHSnw+Z/2aoOKA\nK35Kwlz3cu0R1wuUv531Ew7pDjj0K5TY9akwLsnskEWh5cpZJ9dz4GOLF/BH\nny/yWUzVToTSCJ6ezRm6+37sNyLW1bVl/UpNap6T/C5UUpSAqIu3WMzZSqVx\nCfRYNz4g3++isiHUA2LWFjz/FNvEl/moKd+gAr4+Lxb/b9KiRiPdWXlfGR+9\ney/b8VAQAGLa5VsRTlC5ln/3UvcKZCI1bIAkqoGxG3mIou48gnAvQ7oqEceO\nCLRZ34iYv141khEZYmdnUDZW3fRVdocOX9uVULIjmdeIB7To2iOmG8dnDOXK\na43xtb5Mul9zcYsv5bpJCbmNM2woxoqKulpVjdBNI4bd/KKPn0U0CEqZ8Uyk\nhR5t95L8bPz3vDOMzp1D6+VpxlT5ILVhrHIdPlOP54hErk+p0xvx+PrRtgm2\nAY5V6ZWe6Vpceq1A2KxK3T0qPfncRHUbeE/tVf4tulX2P+CWpIcyW324i4hc\njTE9Nn5275nz5s823ZVgdKQO07KkHg4Oh2E3yJwMpFsOurxQYZrOGUzNuFAv\n+BZ6nLvZr2UTdlI/+NaSbHcPcR9GWHS6VYqCJqV42ue4JRr1pjL4d2+bE82p\nm7jx9oSGEtCm5ZYKkS5EBDa52rWP1+5BQFTWgrSmE3EblF69FVuvXe0W3+3B\nHtpl\r\n=xQt1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"06b3c68e4cc6b081db32f0175677d4bafbe1918b","scripts":{"docs":"jsdoc2md index.js > API.md","lint":"npx eslint .","test":"mocha test","pretest":"eslint index.js test","lint:fix":"npx eslint . --fix","test:coverage":"NODE_ENV=test nyc --reporter=html --reporter=text ./node_modules/.bin/mocha 'test/*'"},"_npmUser":{"name":"jkuester","email":"jkuester@uni-bremen.de"},"repository":{"url":"git+https://github.com/node-oauth/formats.git","type":"git"},"_npmVersion":"6.14.15","description":"Validate ascii and unicode values.","directories":{"test":"test"},"_nodeVersion":"14.18.1","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","mocha":"^9.1.3","eslint":"^8.3.0","jsdoc-to-markdown":"^7.1.0"},"_npmOperationalInternal":{"tmp":"tmp/formats_1.0.0_1639238534923_0.9824306209988167","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@node-oauth/formats","version":"1.1.0","keywords":["unicode","validate","utf-8","ascii","vschar","uri","uchar","nqschar","nqchar","nchar"],"license":"MIT","_id":"@node-oauth/formats@1.1.0","maintainers":[{"name":"jkuester","email":"jkuester@uni-bremen.de"},{"name":"happyzombies","email":"DANIEL.REGUERO@HOTMAIL.COM"}],"contributors":[{"name":"Jan Küster","email":"info@jankuester.com"},{"name":"Jonah Werre","email":"jonahwerre@gmail.com"},{"name":"Michael Salinger","email":"mjsalinger@gmail.com"},{"name":"Nuno Sousa"}],"homepage":"https://github.com/node-oauth/formats#readme","bugs":{"url":"https://github.com/node-oauth/formats/issues"},"dist":{"shasum":"c04ea3f63c124e3fcfb5448b5053ff221cd02584","tarball":"https://registry.npmjs.org/@node-oauth/formats/-/formats-1.1.0.tgz","fileCount":5,"integrity":"sha512-Rgkxfg5k3wdI/BymwCK+wdudhyHl6hiqmY/uKuYqQmyKedg9RQCe+LaTHKtzrEthj33cr4bxYlA0onCkQ1AHng==","signatures":[{"sig":"MEYCIQCyI4+qbvP44P2KIsYgNH1o4+BAW1FXPIo+xiGlpxk6SQIhAITzsm0PmPULRs9vyDUl3Yvforhvraze+XUXbx1efMUj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9800},"main":"index.js","gitHead":"8078c2fa2e3ec1c9cc97b24df152c310c1266606","scripts":{"docs":"jsdoc2md index.js > API.md","lint":"npx eslint .","test":"mocha test","pretest":"eslint index.js test","lint:fix":"npx eslint . --fix","test:coverage":"NODE_ENV=test nyc --reporter=html --reporter=text --reporter=lcov ./node_modules/.bin/mocha 'test/*'"},"_npmUser":{"name":"jkuester","email":"jkuester@uni-bremen.de"},"repository":{"url":"git+https://github.com/node-oauth/formats.git","type":"git"},"_npmVersion":"10.9.3","description":"Validate ascii and unicode values.","directories":{"test":"test"},"_nodeVersion":"22.18.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^17.1.0","chai":"^6.2.2","mocha":"^11.7.5","eslint":"^8.3.0","jsdoc-to-markdown":"^9.1.3"},"_npmOperationalInternal":{"tmp":"tmp/formats_1.1.0_1769424973875_0.07893149826666601","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2021-12-11T16:02:14.865Z","modified":"2026-08-02T18:18:18.015Z","1.0.0":"2021-12-11T16:02:15.074Z","1.1.0":"2026-01-26T10:56:14.019Z"},"bugs":{"url":"https://github.com/node-oauth/formats/issues"},"license":"MIT","homepage":"https://github.com/node-oauth/formats#readme","keywords":["unicode","validate","utf-8","ascii","vschar","uri","uchar","nqschar","nqchar","nchar"],"repository":{"url":"git+https://github.com/node-oauth/formats.git","type":"git"},"description":"Validate ascii and unicode values.","contributors":[{"name":"Jan Küster","email":"info@jankuester.com"},{"name":"Jonah Werre","email":"jonahwerre@gmail.com"},{"name":"Michael Salinger","email":"mjsalinger@gmail.com"},{"name":"Nuno Sousa"}],"maintainers":[{"email":"jkuester@uni-bremen.de","name":"jkuester"}],"readme":"# @node-oauth/formats\n\nMinimal, [RFC 6749](https://datatracker.ietf.org/doc/html/rfc6749#appendix-A)\ncompliant ascii and unicode validator.\n\nThis package is intended to be used with a OAuth2 server, like \n[@node-oauth/node-oauth2-server](https://github.com/node-oauth/node-oauth2-server)\n, but can also be used with any other project, that shares the same \nrequirements.\n\n## Install\n\n```bash\n$ npm install @node-oauth/formats\n```\n\n## Usage\n\n```js\nconst isFormat = require('@node-oauth/formats')\n\nisFormat.nchar('Hello, World!') // false\nisFormat.nqchar('Hello, World!') // true\n```\n\nFor detailed usage see the [API docs](./API.md)\n\n## Test\n\n```sh\nnpm install\nnpm run lint            # run esline in check mode\nnpm run lint:fix        # run esline in check mode\nnpm run test            # run test once\nnpm run test:coverage   # run tests with coverage report\n```\n\n## License\n\nThis project has been outsourced from \n[@node-oauth/node-oauth2-server](https://github.com/node-oauth/node-oauth2-server)\n, which is a fork from [oauth2-server](https://github.com/oauthjs/node-oauth2-server)\n. The licence remains MIT, see [our license file](./LICENSE).\n","readmeFilename":"README.md"}