{"_id":"@sparkbox/commit-colors","_rev":"57-9a87f386e789c8ef14588128098f2224","name":"@sparkbox/commit-colors","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@sparkbox/commit-colors","version":"1.0.0","author":{"name":"Bryan Braun","email":"bryan@heysparkbox.com"},"license":"MIT","_id":"@sparkbox/commit-colors@1.0.0","maintainers":[{"name":"asimpson","email":"adam@heysparkbox.com"},{"name":"bryanbraun","email":"bbraun7@gmail.com"},{"name":"cromwellryan","email":"ryan@cromwellhaus.com"},{"name":"dflynn15","email":"djflynn15@gmail.com"},{"name":"kaseybon","email":"kasey@heysparkbox.com"},{"name":"myockey","email":"myockey@gmail.com"},{"name":"patricksimpson","email":"izerop@gmail.com"},{"name":"robtarr","email":"rob@robtarr.net"},{"name":"sparkuser","email":"npmjs@heysparkbox.com"}],"contributors":[{"name":"Rob Tarr","email":"tarr@heysparkbox.com"}],"homepage":"https://github.com/sparkbox/commit-colors#readme","bugs":{"url":"https://github.com/sparkbox/commit-colors/issues"},"bin":{"commit-colors":"./index.js"},"dist":{"shasum":"5eb222c7a5c808dc5cb41530f6f46319708467f7","tarball":"https://registry.npmjs.org/@sparkbox/commit-colors/-/commit-colors-1.0.0.tgz","fileCount":4,"integrity":"sha512-va5obRHlnfZqIg+HDYhbUZGiPcXge3UH6G3d7p21aShOV4KAeDIlv1+ojHIGLWc2colc6e/tSBkZky++sDz8WA==","signatures":[{"sig":"MEUCIQCpKL0gapa7OUl/CW+wxCoPR1PTqbDlgzDQLfQvxGDtjQIgfLq426N9YrYO/oFkpqMxjhtQUnzmOjN8YUTtjZaJXw0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbnIOiCRA9TVsSAnZWagAAa9QP/0+Qk7kOC+bnLpkPwIip\nT9SVlk5/kucqFDBNksAm3DAWw7XyZGkUpq0cnEO3jLS4sxw4hh07MGiiMFYs\n5RwXjMBPjcFbuYyV5odBOn12apt6T5areRqbi22SMt8DuJ1cZwcW4mRMRT3X\nkoCWQvTQzhmjh5xTf0tnnHvGXp5xmpByQHaEKE+U46Ev409u0JFy/vIuMzkm\nHmPn1XfimODSiItwHE2TZmtf2gTzmbxmilQhGZh1k9mfrqLfTMyJdRtH91eq\nuKfmlcJZ/ik99Yp9V0ZiT9nX+r2I4E2moR4C3HBNv08uby/aI1dzJ5C3udAW\nc93531AozRB3UeluuD3zhmRYKFOThAtgEOH68nVthuDH4ZMrt/GwaMXLOb3G\nOsORs9EpxVrXI016dCGqZGyLf5/gh+Oizs5Nb1ZUyDFRpe+bVBLZ4mcQ89JC\nVRCxP/d+sUH9sIWUWW7aXVsIYgc2FhGZ8wg8W5UIRPeZS2uKfjNajBschFXo\no7M27Y++hn4FcP1u5vkZ4us4DJXWItv2HukF9Z20lHUSM8GKfKvN+vCVYQzl\nIUTy790Bs0/ej0uWqoF8pXiNHP5b2hln7QjO3cNXyFSskD9mv0pGwKLF/lEs\nuAzZX6Rh47cE48d/yWbC4qgvmamyVGOUUJZ0gxaejZf1zim+4kupwrpf6t46\nxeXG\r\n=DGJv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c1a06cfba6f362ea49e8c6b9d197b66de869338d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"bryanbraun","email":"bbraun7@gmail.com"},"repository":{"url":"git+https://github.com/sparkbox/commit-colors.git","type":"git"},"_npmVersion":"6.2.0","description":"See a lovely color swatch in your terminal every time you author a commit. The hexadecimal color comes from the first six characters in your commit hash.","directories":{},"_nodeVersion":"6.14.2","dependencies":{"chalk":"2.4.1","color-namer":"1.3.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/commit-colors_1.0.0_1536983969753_0.7596629080536816","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-09-15T03:59:29.596Z","modified":"2025-10-14T14:38:03.535Z","1.0.0":"2018-09-15T03:59:29.946Z"},"bugs":{"url":"https://github.com/sparkbox/commit-colors/issues"},"author":{"name":"Bryan Braun","email":"bryan@heysparkbox.com"},"license":"MIT","homepage":"https://github.com/sparkbox/commit-colors#readme","repository":{"url":"git+https://github.com/sparkbox/commit-colors.git","type":"git"},"description":"See a lovely color swatch in your terminal every time you author a commit. The hexadecimal color comes from the first six characters in your commit hash.","contributors":[{"name":"Rob Tarr","email":"tarr@heysparkbox.com"}],"maintainers":[{"email":"kaseybon@gmail.com","name":"kaseybon"},{"email":"developman@heysparkbox.com","name":"flotsam"},{"email":"jon@heysparkbox.com","name":"jon-sbx"}],"readme":"# Commit Colors\n\nSee a lovely color swatch in your terminal every time you author a commit. Here's what it looks like:\n\n![animated gif demonstrating commit colors](demo.gif)\n\nThe hexadecimal color comes from the first six characters in your commit hash.\n\n## Installing\n\n1. Install the package globally\n\n    ```bash\n    npm install -g @sparkbox/commit-colors\n    ```\n\n2. Copy/paste the following text into a post-commit hook:\n\n    ```\n    #!/bin/bash\n    SHA=$(git rev-parse HEAD)\n    SHA6=${SHA:0:6}\n    commit-colors $SHA6\n    ```\n\n    In other words, put the above code in a file named `post-commit` at the location `.git/hooks/post-commit` in your git project of choice. [Make sure this file is executable](https://stackoverflow.com/a/14208849/1154642). If you want this hook to run an all your repos, [see how to do that here](https://stackoverflow.com/q/2293498/1154642).\n\n\n\n## Todo\n\n- Make it easier to install the commit hook.\n- Ensure it is cross-platform.\n- Support more color names.\n- ???\n","readmeFilename":"README.md"}