{"id":19450447,"url":"https://github.com/ymc-github/js-lib-write-shields","last_synced_at":"2026-05-12T12:08:39.099Z","repository":{"id":44008997,"uuid":"202894869","full_name":"YMC-GitHub/js-lib-write-shields","owner":"YMC-GitHub","description":"write badge for ymc repo status","archived":false,"fork":false,"pushed_at":"2022-12-30T19:32:03.000Z","size":780,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T23:46:09.420Z","etag":null,"topics":["badge","shield","ymc"],"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/YMC-GitHub.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-08-17T15:03:06.000Z","updated_at":"2020-02-01T01:26:56.000Z","dependencies_parsed_at":"2023-01-31T14:25:30.305Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/js-lib-write-shields","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fjs-lib-write-shields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fjs-lib-write-shields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fjs-lib-write-shields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fjs-lib-write-shields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/js-lib-write-shields/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240637663,"owners_count":19833159,"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":["badge","shield","ymc"],"created_at":"2024-11-10T16:37:37.393Z","updated_at":"2026-05-12T12:08:34.080Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# write-shields\n\n## desc\n\nwrite shields for github repo in readme.md\n\n\n## how to use for production?\n### install\n\n```sh\n#npm install write-shields --save-dev\nnpm install https://github.com/YMC-GitHub/js-lib-write-shields.git --save-dev\n```\n\n### config\n\n```js\nconst PATH_TO_SAVE = `${rootPath}`; \nconst FILE_TO_SAVE = `${PATH_TO_SAVE}/shields-status.md`;\n\nconst GITHUB_REPO = 'js-lib-write-shields';\nconst GITHUB_USER = 'ymc-github';\nconst SHIELDS_URL = 'https://img.shields.io';\nconst TWITTER_USER = 'yemiancheng';\nconst config= {\n  GITHUB_REPO,\n  GITHUB_USER,\n  SHIELDS_URL,\n  TWITTER_USER,\n  config: {\n    GITHUB_CONTRIBUTORS: 'deletes',\n    GITHUB_LAST_COMMIT: 'deletes',\n    GITHUB_LAST_COMMIT_BRANCH: 'sets',\n    GITHUB_RELEASE_DATE: 'deletes',\n    GITTER: 'sets',\n    GITHUB_LANGUAGE_COUNT: 'sets',\n    GITHUB_LANGUAGE_TOP: 'sets',\n    TRAVIS_COM_BRANCH: 'sets',\n    GITHUB_COMMIT_ACTIVITY: 'sets',\n    GITHUB_PACKAGE_VERSION_BRANCH: 'sets',\n    GITHUB_FOLLOWERS: 'sets',\n    TWITTER_FOLLOWERS: 'sets',\n    GITHUB_REPO_SIZE: 'sets'\n  },\n  order: [\n    'GITHUB_COMMIT_ACTIVITY',\n    'GITHUB_CONTRIBUTORS',\n    'GITHUB_FOLLOWERS',\n    'GITHUB_LANGUAGE_COUNT',\n    'GITHUB_LANGUAGE_TOP',\n    'GITHUB_LAST_COMMIT',\n    'GITHUB_LAST_COMMIT_BRANCH',\n    'GITHUB_PACKAGE_VERSION_BRANCH',\n    'GITHUB_RELEASE_DATE',\n    'GITHUB_REPO_SIZE',\n    'GITTER',\n    'TRAVIS_COM_BRANCH',\n    'TWITTER_FOLLOWERS'\n  ],\n  EOL: '\\n',\n  PATH_TO_SAVE,\n  FILE_TO_SAVE,\n}\n```\n//034629\n\n### usage\n\n```js\nimport He from 'write-shields'\nHe.config(config).writeShields().writeToFs()\n```\n\n## how to use for developer?\n\n### install\n\n```sh\n#get the code\ngit clone https://github.com/ymc-github/js-lib-dev-with-rollup.git\n#get his dep\nnpm install\n```\n\n### usage\n\n```sh\n#dev\nnpm run dev\n\n#build\nnpm run build\n\n#release\nnpm run release\n\n#lint\nnpm run lint\nnpm run lint:no-fix\n\n#format\nnpm run beautify\n\n#test\nnpm run test\nnpm run test:unit\nnpm run test:coverage\n```\n\n\n## Author\n\nyemiancheng \u003cymc.github@gmail.com\u003e\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fjs-lib-write-shields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fjs-lib-write-shields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fjs-lib-write-shields/lists"}