{"id":21817904,"url":"https://github.com/iansu/blarn","last_synced_at":"2025-04-14T01:33:42.974Z","repository":{"id":42897700,"uuid":"253101318","full_name":"iansu/blarn","owner":"iansu","description":"A Yarn wrapper with extra functionality","archived":false,"fork":false,"pushed_at":"2023-04-25T01:10:04.000Z","size":651,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T08:50:07.520Z","etag":null,"topics":["cli","npm","package-management","package-manager","typescript","yarn"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/iansu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"iansu"}},"created_at":"2020-04-04T21:23:33.000Z","updated_at":"2021-12-11T06:31:49.000Z","dependencies_parsed_at":"2024-11-14T13:22:06.064Z","dependency_job_id":"30a9607b-95cb-409d-baf1-306096c55060","html_url":"https://github.com/iansu/blarn","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"59c5fc80830788a4291e7fe64d06c435b5be91ae"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fblarn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fblarn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fblarn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fblarn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iansu","download_url":"https://codeload.github.com/iansu/blarn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248808300,"owners_count":21164822,"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":["cli","npm","package-management","package-manager","typescript","yarn"],"created_at":"2024-11-27T15:48:59.235Z","updated_at":"2025-04-14T01:33:42.929Z","avatar_url":"https://github.com/iansu.png","language":"TypeScript","funding_links":["https://github.com/sponsors/iansu"],"categories":[],"sub_categories":[],"readme":"# Blarn\n\nA Yarn wrapper with extra functionality\n\n## Features\n\n- Automatically add and remove TypeScript `@types` packages when adding or removing packages in a TypeScript project\n- List linked and linkable packages, unlink all packages and automatically rerun Yarn after unlinking packages.\n\n## Usage\n\n### Requirements\n\n- You must have Yarn 1 installed and available on your path\n\n### Installation\n\n```sh\n// npm\nnpm install -g blarn\n\n// yarn\nyarn global add blarn\n```\n\n### Upgrading\n\n```sh\n// npm\nnpm install -g blarn\n\n// yarn\nyarn global upgrade blarn --latest\n```\n\n### Running Yarn commands\n\nBlarn will pass all commands and arguments through to Yarn. When adding packages in a TypeScript project it will execute a second `yarn add` command to add any available `@types` packages as dev dependencies. When removing packages any corresponding `@types` packages will be added to the list of packages to remove.\n\n### Examples\n\n#### Adding packages\n\n`blarn add yargs`\n\nIf you run this command in a TypeScript project `yargs` will be installed as a dependency and `@types/yargs` will be installed as a dev dependency. If you run this command in a JavaScript project only `yargs` will be installed as a dependency.\n\n### Removing packages\n\n`blarn remove yargs`\n\nIf you run this command in a TypeScript project and `@types/yargs` exists in `package.json` both `yargs` and `@types/yargs` will be removed. If you run this command in a JavaScript project only `yargs` will be removed.\n\n### Showing linked packages in a project\n\n`blarn linked`\n\n### Showing all packages available to be linked\n\n`blarn linkable`\n\n### Unlinking all linked packages in a project\n\n`blarn unlink-all`\n\n## Contributing\n\n### Running locally\n\n1. Fork and clone this repo\n1. Run `yarn`\n1. Run `yarn build` or `yarn watch`\n1. Run `yarn start` or `bin/blarn.js`\n\n## Acknowledgements\n\nThis project was inspired by [Yarn 2](https://yarnpkg.com/) and [Bojack Horseman](https://bojackhorseman.fandom.com/wiki/Diane_Nguyen).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansu%2Fblarn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiansu%2Fblarn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansu%2Fblarn/lists"}