{"id":26878125,"url":"https://github.com/idelsink/git-describeify","last_synced_at":"2026-05-16T08:01:36.353Z","repository":{"id":71965407,"uuid":"111210132","full_name":"idelsink/git-describeify","owner":"idelsink","description":"Browserify tranform to require Git describe information at transform time.","archived":false,"fork":false,"pushed_at":"2018-01-03T22:44:42.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-21T10:33:09.978Z","etag":null,"topics":["browserify","browserify-transform","describe","git","git-describe","transform"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/git-describeify","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idelsink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-18T14:01:09.000Z","updated_at":"2019-08-28T01:38:21.000Z","dependencies_parsed_at":"2023-03-27T16:17:42.198Z","dependency_job_id":null,"html_url":"https://github.com/idelsink/git-describeify","commit_stats":null,"previous_names":["idelsink/browserify-git-describe"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/idelsink/git-describeify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idelsink%2Fgit-describeify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idelsink%2Fgit-describeify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idelsink%2Fgit-describeify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idelsink%2Fgit-describeify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idelsink","download_url":"https://codeload.github.com/idelsink/git-describeify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idelsink%2Fgit-describeify/sbom","scorecard":{"id":481168,"data":{"date":"2025-08-11","repo":{"name":"github.com/idelsink/git-describeify","commit":"752e217f531a5afd51126f4f764bcb145a299e5b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/20 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T16:40:10.924Z","repository_id":71965407,"created_at":"2025-08-19T16:40:10.924Z","updated_at":"2025-08-19T16:40:10.924Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708025,"owners_count":26031932,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browserify","browserify-transform","describe","git","git-describe","transform"],"created_at":"2025-03-31T12:19:32.878Z","updated_at":"2025-10-07T01:56:05.762Z","avatar_url":"https://github.com/idelsink.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-describeify\n\n[![npm version](https://img.shields.io/npm/v/git-describeify.svg)](https://www.npmjs.com/package/git-describeify)\n[![npm license](https://img.shields.io/npm/l/git-describeify.svg)](https://www.npmjs.com/package/git-describeify)\n[![Build Status](https://travis-ci.org/idelsink/git-describeify.svg?branch=master)](https://travis-ci.org/idelsink/git-describeify)\n\nThis [browserify](https://www.npmjs.com/package/browserify) transform calls\n[git-describe](https://www.npmjs.com/package/git-describe)\nwith the provided arguments on the working directory or any other directory and\nparses the output to individual components. On build/transform time the\ngit-describe information will be injected so that it can be used in, for example,\nbrowser served applications which have no access to the local file system.\n\n## Installation\n\nAvailable from npm:\n```sh\n$ npm i git-describeify\n```\n\nTests are not included in the npm package —\nclone the git repository to run tests.\n\n## Usage\n\ngit-describeify uses the node [git-describe](https://www.npmjs.com/package/git-describe) module.\nDuring transform, `require('git-describeify')` is replaced with the\n[git-describe](https://www.npmjs.com/package/git-describe#example-output) object.  \n\n### Browserify transform\nMake sure to enable the transform in Browserify by either specifying it in the\nterminal\n\n```sh\n$ browserify -t git-describeify\n```\n\nor by putting it in the `package.json`.\n\n```json\n{\n  \"browserify\": {\n    \"transform\": [\n      \"git-describeify\"\n    ]\n  }\n}\n```\n\n### Require syntax\n```js\n// Require the module      the arguments passed to git-describe\nrequire('git-describeify', argument1, argument2, argument3, ...);\n\n// For example\nconst gitInfo = require('git-describeify');\n\n// Transforms into:\nconst gitInfo = {\n    dirty: false,\n    hash: 'g3c9c15b',\n    distance: 6,\n    tag: 'v2.1.0-beta',\n    semver: SemVer, // SemVer instance, see https://github.com/npm/node-semver\n    suffix: '6-g3c9c15b',\n    raw: 'v2.1.0-beta-6-g3c9c15b',\n    semverString: '2.1.0-beta+6.g3c9c15b'\n}\n```\n\n### More examples\n\n```js\n// Target working directory\nconst gitInfo = require('git-describeify');\n\n// Target the directory of the calling script\n// Recommended when you want to target the repo your app resides in\nconst gitInfo = require('git-describeify', __dirname);\n\n// With options (see https://www.npmjs.com/package/git-describe)\nconst gitInfo = require('git-describeify', __dirname, {\n    longSemver: true,\n    dirtySemver: false\n});\n\n// Another example: working directory, use 16 character commit hash abbreviation\nconst gitInfo = require('git-describeify', {\n    customArguments: ['--abbrev=16']\n});\n\n```\n\n## Example output\n\n```javascript\n{\n    dirty: false,\n    hash: 'g3c9c15b',\n    distance: 6,\n    tag: 'v2.1.0-beta',\n    semver: SemVer, // SemVer instance, see https://github.com/npm/node-semver\n    suffix: '6-g3c9c15b',\n    raw: 'v2.1.0-beta-6-g3c9c15b',\n    semverString: '2.1.0-beta+6.g3c9c15b'\n}\n```\n\n## More information\n\nSee [git-describe](https://www.npmjs.com/package/git-describe) for more information about the usage of the git-describe package.\n\n## Test\n\nTests can be run by cloning the repository and running the following command.\n\n```sh\n$ npm install\n$ npm test\n```\n\n[1]: https://git-scm.com/docs/git-describe\n[2]: http://semver.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidelsink%2Fgit-describeify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidelsink%2Fgit-describeify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidelsink%2Fgit-describeify/lists"}