{"_id":"tiny-conventional-commits-parser","_rev":"2-6bf7311ccf408fad8943ad128b912258","name":"tiny-conventional-commits-parser","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"tiny-conventional-commits-parser","version":"0.0.1","keywords":["tiny-conventional-commits-parser","conventional-commits","parser"],"author":{"name":"northword","email":"northword@outlook.com"},"license":"MIT","_id":"tiny-conventional-commits-parser@0.0.1","maintainers":[{"name":"northword","email":"northword@outlook.com"}],"homepage":"https://github.com/northword/tiny-conventional-commits-parser#readme","bugs":{"url":"https://github.com/northword/tiny-conventional-commits-parser/issues"},"dist":{"shasum":"6a0509565dc947ac186f57f8aafc160a9c1a7651","tarball":"https://registry.npmjs.org/tiny-conventional-commits-parser/-/tiny-conventional-commits-parser-0.0.1.tgz","fileCount":6,"integrity":"sha512-N5+AZWdBeHNSgTIaxvx0+9mFrnW4H1BbjQ84H7i3TuWSkno8Hju886hLaHZhE/hYEKrfrfl/uHurqpZJHDuYGQ==","signatures":[{"sig":"MEUCIQD+5g11lV5Y5vwStXsKWfepA1byTqFI8R1R4FZo3lw/+gIgFL8Rdfj0e888r3o+YCR+HGLozigktwFaDolb/2QtLAA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10824},"main":"./dist/index.mjs","type":"module","_from":"file:tiny-conventional-commits-parser-0.0.1.tgz","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"type":"./dist/index.d.mts","import":"./dist/index.mjs"}},"scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","build":"tsc --noEmit && unbuild","release":"bumpp"},"_npmUser":{"name":"northword","email":"northword@outlook.com"},"_resolved":"C:\\Users\\NORTHW~1\\AppData\\Local\\Temp\\74ccf75725367b0819eb856a318fa451\\tiny-conventional-commits-parser-0.0.1.tgz","_integrity":"sha512-N5+AZWdBeHNSgTIaxvx0+9mFrnW4H1BbjQ84H7i3TuWSkno8Hju886hLaHZhE/hYEKrfrfl/uHurqpZJHDuYGQ==","repository":{"url":"git+https://github.com/northword/tiny-conventional-commits-parser.git","type":"git"},"_npmVersion":"10.9.0","description":"A tiny conventional commits parser","directories":{},"lint-staged":{"*":"eslint --fix"},"_nodeVersion":"22.12.0","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","bumpp":"^9.10.2","eslint":"^9.18.0","vitest":"^3.0.4","unbuild":"^3.3.1","typescript":"^5.7.3","@types/node":"^22.10.9","lint-staged":"^15.4.2","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^3.16.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/tiny-conventional-commits-parser_0.0.1_1737701198640_0.7701755528332321","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"tiny-conventional-commits-parser","type":"module","version":"0.1.0","description":"A tiny conventional commits parser","author":{"name":"northword","email":"northword@outlook.com"},"license":"MIT","homepage":"https://github.com/northword/tiny-conventional-commits-parser#readme","repository":{"type":"git","url":"git+https://github.com/northword/tiny-conventional-commits-parser.git"},"bugs":{"url":"https://github.com/northword/tiny-conventional-commits-parser/issues"},"keywords":["tiny-conventional-commits-parser","conventional-commits","parser"],"exports":{".":{"import":"./dist/index.mjs","type":"./dist/index.d.mts"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"devDependencies":{"@antfu/eslint-config":"^6.2.0","@types/node":"^24.9.2","bumpp":"^10.3.1","eslint":"^9.39.0","lint-staged":"^16.2.6","simple-git-hooks":"^2.13.1","tsx":"^4.20.6","typescript":"^5.9.3","unbuild":"^3.6.1","vitest":"^4.0.6"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"scripts":{"build":"tsc --noEmit && unbuild","dev":"unbuild --stub","lint":"eslint .","release":"bumpp","test":"vitest"},"_id":"tiny-conventional-commits-parser@0.1.0","_integrity":"sha512-pLbcSKDnlETspEOKJvVfr8Jymb3exA8UeeRkACn7axlfbqmBr6BT0T3jI7hwPr3gVbrOQQ7DjaPhN5A86+E6Nw==","_resolved":"/tmp/a58e43b3b24434158260d722fab63366/tiny-conventional-commits-parser-0.1.0.tgz","_from":"file:tiny-conventional-commits-parser-0.1.0.tgz","_nodeVersion":"24.11.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-pLbcSKDnlETspEOKJvVfr8Jymb3exA8UeeRkACn7axlfbqmBr6BT0T3jI7hwPr3gVbrOQQ7DjaPhN5A86+E6Nw==","shasum":"813b401c228b86275f38fa8c9751447ec67d491b","tarball":"https://registry.npmjs.org/tiny-conventional-commits-parser/-/tiny-conventional-commits-parser-0.1.0.tgz","fileCount":6,"unpackedSize":10957,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/tiny-conventional-commits-parser@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDfk3JdWT276RQtrZVEzKjzMX6OMAlcIVgMnZycGwWkMAiAjMj+R+qyNUfGsxt40V+uPodhdh6fQB/Lzo4Y9zFx+ww=="}]},"_npmUser":{"name":"northword","email":"northword@outlook.com"},"directories":{},"maintainers":[{"name":"northword","email":"northword@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tiny-conventional-commits-parser_0.1.0_1762839962967_0.6876514289926516"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-24T06:46:38.514Z","modified":"2025-11-11T05:46:03.611Z","0.0.1":"2025-01-24T06:46:38.819Z","0.1.0":"2025-11-11T05:46:03.153Z"},"bugs":{"url":"https://github.com/northword/tiny-conventional-commits-parser/issues"},"author":{"name":"northword","email":"northword@outlook.com"},"license":"MIT","homepage":"https://github.com/northword/tiny-conventional-commits-parser#readme","keywords":["tiny-conventional-commits-parser","conventional-commits","parser"],"repository":{"type":"git","url":"git+https://github.com/northword/tiny-conventional-commits-parser.git"},"description":"A tiny conventional commits parser","maintainers":[{"name":"northword","email":"northword@outlook.com"}],"readme":"# tiny-conventional-commits-parser\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Install size][size]][size-url]\n[![bundle][bundle-src]][bundle-href]\n[![JSDocs][jsdocs-src]][jsdocs-href]\n[![License][license-src]][license-href]\n\nA tiny conventional commits parser.\n\nThis package does not aim to provide features and APIs compatible with [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser), but only basic, simple parsing of conventional-commits.\n\n## Usage\n\n```ts\nimport { getRecentCommits } from 'tiny-conventional-commits-parser'\n\ngetRecentCommits('v9.10.0', 'HEAD')\n\nconst rawCommit = {\n  author: {\n    email: 'author1@example.com',\n    name: 'author1',\n  },\n  body: '',\n  data: 'Thu Jan 23 17:42:15 2025 +0800',\n  message: 'feat(scope)!: commit message',\n  shortHash: '9cfa09f',\n}\nparseCommit(rawCommit)\n```\n\n```json\n{\n  \"authors\": [\n    {\n      \"email\": \"author1@example.com\",\n      \"name\": \"author1\"\n    }\n  ],\n  \"body\": \"\",\n  \"data\": \"Thu Jan 23 17:42:15 2025 +0800\",\n  \"description\": \"commit message\",\n  \"isBreaking\": true,\n  \"isConventional\": true,\n  \"message\": \"feat(scope)!: commit message\",\n  \"references\": [],\n  \"scope\": \"scope\",\n  \"shortHash\": \"9cfa09f\",\n  \"type\": \"feat\"\n}\n```\n\n## License\n\n[MIT](./LICENSE) License\n\n## Acknowledgements\n\n- [unjs/changelogen](https://github.com/unjs/changelogen/): most of the code in this package comes from this package.\n- [conventional-commits-parser](https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-commits-parser)\n\n<!-- Badges -->\n\n[npm-version-src]: https://img.shields.io/npm/v/tiny-conventional-commits-parser?style=flat&colorA=080f12&colorB=1fa669\n[npm-version-href]: https://npmjs.com/package/tiny-conventional-commits-parser\n[npm-downloads-src]: https://img.shields.io/npm/dm/tiny-conventional-commits-parser?style=flat&colorA=080f12&colorB=1fa669\n[npm-downloads-href]: https://npmjs.com/package/tiny-conventional-commits-parser\n[size]: https://packagephobia.com/badge?p=tiny-conventional-commits-parser\n[size-url]: https://packagephobia.com/result?p=tiny-conventional-commits-parser\n[bundle-src]: https://img.shields.io/bundlephobia/minzip/tiny-conventional-commits-parser?style=flat&colorA=080f12&colorB=1fa669&label=minzip\n[bundle-href]: https://bundlephobia.com/result?p=tiny-conventional-commits-parser\n[license-src]: https://img.shields.io/github/license/northword/tiny-conventional-commits-parser.svg?style=flat&colorA=080f12&colorB=1fa669\n[license-href]: https://github.com/northword/tiny-conventional-commits-parser/blob/main/LICENSE\n[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669\n[jsdocs-href]: https://www.jsdocs.io/package/tiny-conventional-commits-parser\n","readmeFilename":"README.md"}