{"id":17037783,"url":"https://github.com/heldr/headr","last_synced_at":"2025-04-12T13:51:03.192Z","repository":{"id":57150912,"uuid":"44274239","full_name":"heldr/headr","owner":"heldr","description":"Adds header / banner info to a file. Nice to use as npm script :)","archived":false,"fork":false,"pushed_at":"2016-08-24T21:31:52.000Z","size":6,"stargazers_count":3,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T12:56:50.585Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/heldr.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":"2015-10-14T20:24:31.000Z","updated_at":"2021-04-06T07:36:35.000Z","dependencies_parsed_at":"2022-08-27T06:11:14.685Z","dependency_job_id":null,"html_url":"https://github.com/heldr/headr","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heldr%2Fheadr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heldr%2Fheadr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heldr%2Fheadr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heldr%2Fheadr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heldr","download_url":"https://codeload.github.com/heldr/headr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248575692,"owners_count":21127246,"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-14T08:55:05.835Z","updated_at":"2025-04-12T13:51:03.171Z","avatar_url":"https://github.com/heldr.png","language":"JavaScript","funding_links":[],"categories":["Other Utilities"],"sub_categories":["Utility Packs"],"readme":"# headr\nAdds header / banner info to a file. Nice to use as npm script :)\n\n`npm install -g headr` (it may require Root privileges)\n\nor for npm script:\n\n`npm install --save-dev headr`\n\n\n## Requirements\n\n- Node.js 4+\n\n## Usage\n```CLI\n$ headr input.js -o=output.js --version --homepage --license\n```\n\nHeadr will inspect package.json using **name** and **description** as default, and then generates the following code:\n\n```js\n/**\n * headr - Add header to a file\n *\n * @version v0.0.1\n * @homepage http://heldr.com\n * @license MIT\n */\n\n your code\n```\n\n### Custom labels\n```CLI\n$ headr input.js -o=output.js --homepage=\"link\"\n```\n\n```js\n/**\n * headr - Add header to a file\n *\n * @link http://heldr.com\n */\n\n your code\n```\n\n### Tab spaces\n```CLI\n$ headr input.js -o=output.js --h-tab-spaces=4\n```\n\n## Pipe\n\n```CLI\n$ cat input.js | headr -o=output.js --version --homepage --license\n```\n\nor:\n\n```CLI\n$ cat input.js | headr --version --homepage --license \u003e output.js\n```\nJust make sure to use a different output file in this case, otherwise `-o` replaces the file nicely :)\n\n## License\n\nMIT License\n(c) [Helder Santana](http://heldr.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheldr%2Fheadr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheldr%2Fheadr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheldr%2Fheadr/lists"}