{"id":13432446,"url":"https://github.com/duojs/duo","last_synced_at":"2025-12-30T06:42:33.934Z","repository":{"id":15868804,"uuid":"18609451","full_name":"duojs/duo","owner":"duojs","description":"A next-generation package manager for the front-end","archived":true,"fork":false,"pushed_at":"2017-12-31T06:40:40.000Z","size":3393,"stargazers_count":3412,"open_issues_count":104,"forks_count":117,"subscribers_count":96,"default_branch":"master","last_synced_at":"2025-09-15T06:56:46.049Z","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/duojs.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","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-04-09T19:05:08.000Z","updated_at":"2025-07-23T21:22:17.000Z","dependencies_parsed_at":"2022-08-27T03:50:26.570Z","dependency_job_id":null,"html_url":"https://github.com/duojs/duo","commit_stats":null,"previous_names":[],"tags_count":76,"template":false,"template_full_name":null,"purl":"pkg:github/duojs/duo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duojs%2Fduo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duojs%2Fduo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duojs%2Fduo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duojs%2Fduo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duojs","download_url":"https://codeload.github.com/duojs/duo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duojs%2Fduo/sbom","scorecard":{"id":359889,"data":{"date":"2025-08-11","repo":{"name":"github.com/duojs/duo","commit":"a01cfa748619c963d5c9824273db2e7390c92eb2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T10:34:11.093Z","repository_id":15868804,"created_at":"2025-08-18T10:34:11.094Z","updated_at":"2025-08-18T10:34:11.094Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277450939,"owners_count":25819971,"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","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-31T02:01:11.708Z","updated_at":"2025-09-29T00:32:30.829Z","avatar_url":"https://github.com/duojs.png","language":"JavaScript","readme":"![duo](https://i.cloudup.com/zxYO3-GNkP.png)\n\n[![npm version](https://img.shields.io/npm/v/duo.svg)](https://npmjs.org/package/duo)\n[![build status](https://img.shields.io/travis/duojs/duo.svg)](https://travis-ci.org/duojs/duo)\n[![Join the chat at https://gitter.im/duojs/duo](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/duojs/duo?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nDuo is a next-generation package manager that blends the best ideas from [Component](https://github.com/component/component), [Browserify](https://github.com/substack/node-browserify) and [Go](http://golang.org/) to make organizing and writing front-end code quick and painless.\n\n- [Features](#features)\n- [Installation](#installation)\n- [Getting Started](#getting-started)\n- [Command Line Usage](/docs/cli.md)\n- [Javascript API](/docs/api.md)\n- [Duo.js Plugins](https://github.com/duojs/duo/wiki/Third-Party-Libraries)\n- [FAQ](/docs/faq.md)\n- [Mailing List](https://groups.google.com/forum/#!forum/duojs)\n- `#duojs` on freenode\n\n\n## Features\n\n  1. has first-class support for Javascript, HTML and CSS\n  2. exposes a unix-y command line interface\n  3. pulls source directly from GitHub with semantic versioning\n  4. supports source transforms, like Coffeescript or Sass\n  5. does not require a manifest\n\n\n## Installation\n\nInstall Duo straight from `npm` with:\n\n```\n$ npm install -g duo\n```\n\n## Getting Started\n\nTo get started just write normal Javascript, requiring dependencies straight from the file system or from GitHub as you need them:\n\n```js\nvar uid = require('matthewmueller/uid');\nvar fmt = require('yields/fmt');\n\nvar msg = fmt('Your unique ID is %s!', uid());\nwindow.alert(msg);\n```\n\nThen use `duo` to install your dependencies and build your file:\n\n```\n$ duo index.js\n```\n\nFinally, drop a single `\u003cscript\u003e` onto your page and you're done!\n\n```html\n\u003cscript src=\"build/index.js\"\u003e\u003c/script\u003e\n```\n\nSame goes for CSS! You can require dependencies and assets from the file system or straight from GitHub:\n\n```css\n@import 'necolas/normalize.css';\n\nbody {\n  color: teal;\n  background: url('./background-image.jpg');\n}\n```\n\nThen bundle up your CSS with `duo`:\n\n```\n$ duo index.css\n```\n\nAnd add your bundled-up stylesheet to your page!\n\n```html\n\u003clink rel=\"stylesheet\" href=\"build/index.css\"\u003e\n```\n\n## Authenticate with Github\n\nWe recommend that you authenticate with Github so you can increase your rate limit and allow you to pull from private repositories. To do that, add the following entry to your `~/.netrc` file:\n\n    machine api.github.com\n      login \u003cusername\u003e\n      password \u003ctoken\u003e\n\nYou can create a new `token` here: https://github.com/settings/tokens/new\n\n## Debugging\n\nIf you run into an issue with Duo, often times you can resolve it by prepending `DEBUG=duo*` to your `$COMMAND`:\n\n```bash\n$ DEBUG=duo* $COMMAND\n```\n\nExample:\n\n```bash\n$ DEBUG=duo* duo index.js\n```\n\nIf you can't figure it out, you should open an issue: https://github.com/duojs/duo/issues\n\n## Test\n\nDownload this repository and run:\n\n```bash\nmake test\n```\n\n## Authors\n\n- [Matthew Mueller](https://github.com/MatthewMueller)\n- [Amir Abu Shareb](https://github.com/yields)\n- Plus many more wonderful [contributors](https://github.com/duojs/duo/graphs/contributors)!\n\n## License\n\nThe MIT License\n\nCopyright \u0026copy; 2014\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["JavaScript","Package Managers","包管理器","📦 Legacy \u0026 Inactive Projects","Package Managers [🔝](#readme)","{{ Builder }}"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduojs%2Fduo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduojs%2Fduo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduojs%2Fduo/lists"}