{"name":"@commitlint/read","version":"14.0.0","description":"Read commit messages from a specified range or last edit","main":"lib/read.js","types":"lib/read.d.ts","scripts":{"deps":"dep-check","pkg":"pkg-check --skip-import"},"engines":{"node":">=v12"},"repository":{"type":"git","url":"git+https://github.com/conventional-changelog/commitlint.git","directory":"@commitlint/read"},"bugs":{"url":"https://github.com/conventional-changelog/commitlint/issues"},"homepage":"https://commitlint.js.org/","keywords":["conventional-changelog","commitlint","library","core"],"author":{"name":"Mario Nebl","email":"hello@herebecode.com"},"license":"MIT","devDependencies":{"@commitlint/test":"^14.0.0","@commitlint/utils":"^14.0.0","@types/fs-extra":"^9.0.1","@types/git-raw-commits":"^2.0.0","execa":"^5.0.0"},"dependencies":{"@commitlint/top-level":"^14.0.0","@commitlint/types":"^14.0.0","fs-extra":"^10.0.0","git-raw-commits":"^2.0.0"},"gitHead":"0bb3487f8ca0cd8e67977c089f65037ea2c7788b","readme":"> Read commit messages from a specified range or last edit\n\n# @commitlint/read\n\n## Getting started\n\n```shell\nnpm install --save @commitlint/read\n```\n\n## Example\n\n```js\nconst read = require('@commitlint/read').default;\n\n// Read last edited commit message\nread({edit: true}).then((messages) => console.log(messages));\n// => ['I did something\\n\\n']\n\n// Read from the third to second commit message from HEAD\nread({from: 'HEAD~2', to: 'HEAD~1'}).then((messages) => console.log(messages));\n// => ['Initial commit\\n\\n']\n```\n\nConsult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.\n","readmeFilename":"README.md","_id":"@commitlint/read@14.0.0","_nodeVersion":"12.22.7","_npmVersion":"lerna/4.0.0/node@v12.22.7+x64 (darwin)","dist":{"integrity":"sha512-WXXcSLBqwXTqnEmB0lbU2TrayDJ2G3qI/lxy1ianVmpQol8p9BjodAA6bYxtYYHdQFVXUrIsclzFP/naWG+hlQ==","shasum":"f871600ce815b541c7f1a4fdabe2c66d8840c2ab","tarball":"http://registry-npm.ywwl.com/@commitlint/read/download/@commitlint/read-14.0.0.tgz","fileCount":24,"unpackedSize":18838,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTmw/+fjQHisPxDKyi22jIt63cGnQEFPnkJM6sC480gQIgWWhyx03JnTdRRi88JnWKlw0sVgpWYcb90DQhPgW3XqE="}],"size":5792,"noattachment":false,"key":"/@commitlint/read/-/@commitlint/read-14.0.0.tgz"},"_npmUser":{"name":"escapedcat","email":"npm@htmlcss.de"},"directories":{},"maintainers":[{"name":"marionebl","email":"hello@mario-nebl.de"},{"name":"martinhelmut","email":"info@martin-fieber.se"},{"name":"escapedcat","email":"npm@htmlcss.de"},{"name":"bycedric","email":"me@bycedric.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/read_14.0.0_1635224158914_0.47764594017122053"},"_hasShrinkwrap":false,"publish_time":1635224159033,"_cnpm_publish_time":1635224159033,"dist-tags":{"latest":"21.2.3"}}