{"id":22454771,"url":"https://github.com/autosseyai/autobin","last_synced_at":"2025-08-02T02:31:52.775Z","repository":{"id":65163732,"uuid":"584437246","full_name":"AutosseyAI/autobin","owner":"AutosseyAI","description":"Prepare bin scripts for publishing.","archived":false,"fork":false,"pushed_at":"2023-09-28T15:34:17.000Z","size":43,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-10T04:16:43.581Z","etag":null,"topics":["auto","bin","binary","build","node","npm","package","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AutosseyAI.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,"governance":null}},"created_at":"2023-01-02T15:08:42.000Z","updated_at":"2024-05-07T23:58:34.000Z","dependencies_parsed_at":"2023-01-13T15:44:43.294Z","dependency_job_id":"62a0dc6a-8830-4b8a-abd1-4350a2c47c94","html_url":"https://github.com/AutosseyAI/autobin","commit_stats":null,"previous_names":["autosoftoss/autobin"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutosseyAI%2Fautobin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutosseyAI%2Fautobin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutosseyAI%2Fautobin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutosseyAI%2Fautobin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AutosseyAI","download_url":"https://codeload.github.com/AutosseyAI/autobin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228426100,"owners_count":17917790,"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":["auto","bin","binary","build","node","npm","package","typescript"],"created_at":"2024-12-06T07:09:05.250Z","updated_at":"2024-12-06T07:09:05.854Z","avatar_url":"https://github.com/AutosseyAI.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eautobin\u003c/h1\u003e\n  \u003ca href=\"https://npmjs.com/package/autobin\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/autobin.svg\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/autosoftoss/autobin\"\u003e\n    \u003cimg alt=\"typescript\" src=\"https://img.shields.io/github/languages/top/autosoftoss/autobin.svg\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cblockquote align=\"center\"\u003ePrepare bin scripts for publishing.\u003c/blockquote\u003e\n\n_If you find this repo useful, stars are appreciated ⭐️_\n\u003ca href=\"https://github.com/autosoftoss/autobin\"\u003e\n  \u003cimg align=\"right\" alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/autosoftoss/autobin?label=%E2%AD%90%EF%B8%8F\u0026style=social\"\u003e\n\u003c/a\u003e\n\n_DM me on [Twitter](https://twitter.com/bconnorwhite) if you have questions or suggestions._\n\u003ca href=\"https://twitter.com/bconnorwhite\"\u003e\n  \u003cimg align=\"right\" alt=\"Twitter Follow\" src=\"https://img.shields.io/twitter/url?label=%40bconnorwhite\u0026style=social\u0026url=https%3A%2F%2Ftwitter.com%2Fbconnorwhite\"\u003e\n\u003c/a\u003e\n\n---\n\n## About\n\n### Hashbang\n\nBin scripts require a hashbang to run properly:\n```js\n#!/usr/bin/env node\n```\n\nHowever, if you're using TypeScript, you'll need to compile to JavaScript before publishing.\n\nThis package searches for each file in the `bin` field of your `package.json`, and prepends the Node shebang to the file if it doesn't already have one.\n\n### Executable Bits\n\nAdditionally, autobin sets the executable bits on the file. Although this is not required as package managers set the executable bits when installing, it allows you to run the script directly before publishing.\n\n## Installation\n\n```sh\nyarn add --dev autobin\n```\n\n```sh\nnpm install --save-dev autobin\n```\n\n```sh\npnpm add --save-dev autobin\n```\n\n## Usage\n\n### Package Scripts\n\nIn your `package.json` file:\n\n```json\n{\n  \"scripts\": {\n    \"postbuild\": \"autobin\"\n  }\n}\n```\n\n\u003e The \"postbuild\" script automatically runs after the \"build\" script is run.\n\n### Command Line\n\nAlternatively, you can run `autobin` directly from the command line:\n\n```sh\nyarn autobin\n```\n\n```sh\nnpm run autobin\n```\n\n```sh\npnpm run autobin\n```\n\n\u003cbr /\u003e\n\n---\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cb\u003eHave fun! 🎉\u003c/b\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n---\n\n\u003cbr /\u003e\n\n\n\u003ch2 id=\"dependencies\"\u003eDependencies\u003ca href=\"https://www.npmjs.com/package/autobin?activeTab=dependencies\"\u003e\u003cimg align=\"right\" alt=\"dependencies\" src=\"https://img.shields.io/librariesio/release/npm/autobin.svg\"\u003e\u003c/a\u003e\u003c/h2\u003e\n\n- [@bconnorwhite/package](https://www.npmjs.com/package/@bconnorwhite/package): A utility for reading package.json of a project, and forming paths relative to it.\n- [clee](https://www.npmjs.com/package/clee): Create CLI applications with glee 🎉\n- [make-executable](https://www.npmjs.com/package/make-executable): Set the executable bits on a file\n- [read-file-safe](https://www.npmjs.com/package/read-file-safe): Read files without try catch\n- [write-file-safe](https://www.npmjs.com/package/write-file-safe): Write files atomically and create parent directories if necessary\n\n\u003ch3 id=\"dev-dependencies\"\u003eDev Dependencies\u003c/h3\u003e\n\n- [@autossey/eslint-config](https://www.npmjs.com/package/@autossey/eslint-config): A base for projects that use ESLint.\n- [@autossey/tsconfig](https://www.npmjs.com/package/@autossey/tsconfig): A collection of base TSConfigs for various types of projects.\n- [npm-package-json-lint-config-auto](https://www.npmjs.com/package/npm-package-json-lint-config-auto): NPM Package.json Lint Config\n\n\u003cbr /\u003e\n\n\u003ch2 id=\"license\"\u003eLicense \u003ca href=\"https://opensource.org/licenses/MIT\"\u003e\u003cimg align=\"right\" alt=\"license\" src=\"https://img.shields.io/npm/l/autobin.svg\"\u003e\u003c/a\u003e\u003c/h2\u003e\n\n[MIT](https://opensource.org/licenses/MIT) - _The MIT License_\n\n\u003cbr /\u003e\n\n\u003ch2 id=\"see-also\"\u003eSee Also\u003c/h2\u003e\n\n- [autorepo](https://www.npmjs.com/package/autorepo): Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautosseyai%2Fautobin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautosseyai%2Fautobin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautosseyai%2Fautobin/lists"}