{"id":18589656,"url":"https://github.com/alex1990/obito","last_synced_at":"2026-04-29T14:35:27.226Z","repository":{"id":35099068,"uuid":"206365657","full_name":"Alex1990/obito","owner":"Alex1990","description":"A cli to sync npm package(s) to cloud storage, such as AWS S3, Aliyun OSS.","archived":false,"fork":false,"pushed_at":"2023-01-06T02:08:01.000Z","size":1207,"stargazers_count":1,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T08:08:21.904Z","etag":null,"topics":["cdn","cli","npm","oss","package","s3","upload"],"latest_commit_sha":null,"homepage":"","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/Alex1990.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}},"created_at":"2019-09-04T16:36:41.000Z","updated_at":"2023-02-15T23:33:03.000Z","dependencies_parsed_at":"2023-01-15T13:49:47.566Z","dependency_job_id":null,"html_url":"https://github.com/Alex1990/obito","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/Alex1990%2Fobito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fobito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fobito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alex1990%2Fobito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alex1990","download_url":"https://codeload.github.com/Alex1990/obito/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493385,"owners_count":22080127,"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":["cdn","cli","npm","oss","package","s3","upload"],"created_at":"2024-11-07T00:52:55.305Z","updated_at":"2026-04-29T14:35:27.191Z","avatar_url":"https://github.com/Alex1990.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# obito\n\nobito (`/ˈɔːbitəu/`): A cli to sync npm package(s) to cloud storage, such as Aliyun OSS.\n\n## Installation\n\n```\nnpm install --global obito\n```\n\n**Note: You must use npm \u003e= 6.9.0**\n\n## Usage\n\nFirstly, create a file named `.obitorc` in your $HOME directory or any other directory.\nThe obito will merged the `.obitorc`s of current working directory (**preferred**) and $HOME direcotry.\n\n**.obitorc**\n\n```ini\n# The path prefix\nprefix = npm\n\n# ali-oss sdk configuration: https://www.alibabacloud.com/help/zh/doc-detail/32068.htm\n[aliyun]\naccessKeyId = \u003coss accessKeyId\u003e\naccessKeySecret = \u003coss accessKeySecret\u003e\nbucket = \u003coss bucket\u003e\nregion = \u003coss region\u003e\n\n# or aws s3\n[s3]\naccessKeyId = \u003cs3 accessKeyId\u003e\nsecretAccessKey = \u003cs3 secretAccessKey\u003e\nbucket = \u003cs3 bucket\u003e\nregion = \u003cs3 region\u003e\n```\n\nThen, run the below command to sync the npm package(s) to cloud storage.\n\n```sh\n# sync lodash\nobito sync lodash\n\n# sync the latest lodash\nobito sync lodash@latest\n\n# sync lodash with the specified version\nobito sync lodash@4.17.15\n\n# sync multiple packages\nobito sync react react-dom\n\n# By default, it will be uploaded to aliyun.\n# You can specify the `--uploader` argument\n# Currently, the uploader argument can be one of aliyun, s3\nobito sync lodash --uploader s3\n```\n\nThen, the path uploaded to cloud storage is\n\n```\n/npm/lodash@4.17.15/lodash.js\n```\n\n## Docs\n\n```\n$ obito help\nUsage: obito [options] [command]\n\nOptions:\n  -V, --version                      output the version number\n  -h, --help                         output usage information\n\nCommands:\n  sync \u003cpackage\u003e [otherPackages...]  sync the package(s) to cloud storage\n  help [cmd]                         display help for [cmd]\n```\n\n```\n$ obito help sync\nUsage: obito-sync [options]\n\nOptions:\n  -u, --uploader \u003cuploader\u003e  the uploader of cloud storage, one of aliyun, s3 (default: \"aliyun\")\n  -h, --help                 output usage information\n```\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex1990%2Fobito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex1990%2Fobito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex1990%2Fobito/lists"}