{"id":30247227,"url":"https://github.com/jofunliang/usuallyjs","last_synced_at":"2025-08-15T06:09:38.876Z","repository":{"id":57388860,"uuid":"161923178","full_name":"JofunLiang/usuallyjs","owner":"JofunLiang","description":"一个面向现代 Web 开发的 JavaScript 函数库","archived":false,"fork":false,"pushed_at":"2020-03-12T14:43:38.000Z","size":665,"stargazers_count":28,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-15T04:31:13.236Z","etag":null,"topics":["javascript","usually","usuallyjs","utils","utils-library"],"latest_commit_sha":null,"homepage":"https://jofunliang.github.io/usuallyjs/","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/JofunLiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-15T16:27:32.000Z","updated_at":"2023-05-10T13:54:12.000Z","dependencies_parsed_at":"2022-09-19T02:32:51.513Z","dependency_job_id":null,"html_url":"https://github.com/JofunLiang/usuallyjs","commit_stats":null,"previous_names":["jofunliang/usually"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JofunLiang/usuallyjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JofunLiang%2Fusuallyjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JofunLiang%2Fusuallyjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JofunLiang%2Fusuallyjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JofunLiang%2Fusuallyjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JofunLiang","download_url":"https://codeload.github.com/JofunLiang/usuallyjs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JofunLiang%2Fusuallyjs/sbom","scorecard":{"id":73456,"data":{"date":"2025-08-11","repo":{"name":"github.com/JofunLiang/usuallyjs","commit":"a62b62bc4ef120bd4783446e1d83cca5a7321b00"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/15 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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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 30 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-15T04:20:11.777Z","repository_id":57388860,"created_at":"2025-08-15T04:20:11.777Z","updated_at":"2025-08-15T04:20:11.777Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270529536,"owners_count":24601192,"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-08-15T02:00:12.559Z","response_time":110,"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":["javascript","usually","usuallyjs","utils","utils-library"],"created_at":"2025-08-15T06:09:33.127Z","updated_at":"2025-08-15T06:09:38.864Z","avatar_url":"https://github.com/JofunLiang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=center\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/JofunLiang/usuallyjs/dev/logo.png\" alt=\"usuallyjs\"/\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://www.npmjs.com/package/usuallyjs\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/usuallyjs.svg\" alt=\"npm\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/JofunLiang/usuallyjs/blob/master/LICENSE\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/jofunliang/usuallyjs.svg\" alt=\"license\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/usuallyjs\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dm/usuallyjs.svg\" alt=\"downloads\"/\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/JofunLiang/usuallyjs/blob/master/dist/usually.min.js\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/size/jofunliang/usuallyjs/dist/usually.min.js.svg?label=minified%20size\" alt=\"GitHub file size in bytes\"/\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://jofunliang.github.io/usuallyjs/\"\u003e\n  \u003cimg src=\"https://img.shields.io/badge/docs-%E6%96%87%E6%A1%A3-brightgreen.svg\" alt=\"文档\"/\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n一个面向现代 Web 开发的 JavaScript 函数库。\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://github.com/JofunLiang/usuallyjs\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/jofunliang/usuallyjs.svg?style=social\" alt=\"GitHub forks\"/\u003e\n\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003ca href=\"https://jofunliang.github.io/usuallyjs/\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/jofunliang/usuallyjs.svg?style=social\" alt=\"GitHub stars\"/\u003e\n\u003c/a\u003e\n\u003cbr /\u003e\n\u003cbr /\u003e\n\u003ca href=\"https://jofunliang.github.io/usuallyjs/\"\u003e中文文档\u003c/a\u003e\n\u003c/div\u003e\n\n\n# 简介\n\nusuallyjs 基于 ES6 开发，抛弃了传统 Web 开发中 DOM 和 BOM 操作部分的内容，精选了一系列 Web 开发过程中最常用的、最实用的 JavaScript 函数。与 Vue、React、Angular等现代 Web 框架搭配使用，更好的服务于开发现代 Web 应用。\n\n## 更新日志\n\n[更新日志](./UPDATENOTES.md)\n\n# 安装和使用\n\n### npm安装和使用\n\n通过 npm 使用如下命令安装：\n```\nnpm install --save-dev usuallyjs\n```\n\n通过 es6 模块引用：\n```javascript\n// 全部引入\nimport * as U from 'usuallyjs'\n\n// 按需引入\nimport {uniqueItems， mask} from 'usuallyjs'\n```\n注意：通过 es6 模块引入的是源码，需要自行配置 babel 开发环境。\n\n### 浏览器安装和使用\n\n下载本存储库，在页面中通过 script 标签引入 dist 文件夹下的 usually.js 文件即可，建议使用压缩版本 usually.min.js。通过命名空间 U 调用相关的函数。\n如：\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003ctitle\u003eusually浏览器安装和使用示例\u003c/title\u003e\n    \u003cscript src=\"dist/usually.min.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003cscript\u003e\n      var a = U.random()\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n# 浏览器兼容\n\n支持 IE10+ 和现代浏览器\n\n# 贡献\n\n在提出拉取请求之前，请务必阅读[贡献指南](https://github.com/JofunLiang/usuallyjs/blob/master/CONTRIBUTING.md)。\n\n# LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofunliang%2Fusuallyjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjofunliang%2Fusuallyjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjofunliang%2Fusuallyjs/lists"}