{"id":16860473,"url":"https://github.com/webpro/versionify","last_synced_at":"2025-03-17T05:32:25.634Z","repository":{"id":23466851,"uuid":"26831095","full_name":"webpro/versionify","owner":"webpro","description":"Browserify transform to replace placeholder with package version","archived":false,"fork":false,"pushed_at":"2015-07-17T19:45:51.000Z","size":167,"stargazers_count":33,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:27:06.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-18T21:34:52.000Z","updated_at":"2022-07-19T07:43:14.000Z","dependencies_parsed_at":"2022-08-22T00:30:48.381Z","dependency_job_id":null,"html_url":"https://github.com/webpro/versionify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fversionify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fversionify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fversionify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webpro%2Fversionify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webpro","download_url":"https://codeload.github.com/webpro/versionify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846984,"owners_count":20357297,"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","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":[],"created_at":"2024-10-13T14:24:26.229Z","updated_at":"2025-03-17T05:32:24.632Z","avatar_url":"https://github.com/webpro.png","language":"JavaScript","readme":"# browserify-versionify\n\nBrowserify transform to replace placeholder with package version.\n\nBy default, it replaces `__VERSION__` with the version from `package.json` in your source code. E.g. before:\n\n```js\nvar version = '__VERSION__';\n```\n\nafter:\n\n```js\nvar version = '1.0.0';\n```\n\n## Usage\n\nFrom command line:\n\n    browserify -t browserify-versionify\n\nFrom Node.js:\n\n    browserify().transform('browserify-versionify');\n\n    // Configure (default values shown)\n    browserify().transform('browserify-versionify', {\n        placeholder: '__VERSION__',\n        version: pkg.version\n    });\n\nYou can also provide a `filter` property to whitelist files to apply the transform to (e.g. `filter: /\\.js$/`).\n\nYou can also add the transform to your `package.json`:\n\n```json\n{\n    \"browserify\": {\n        \"transform\": [\n            \"browserify-versionify\"\n        ]\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fversionify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebpro%2Fversionify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebpro%2Fversionify/lists"}