{"_id":"github-buttons@2.33.1","bugs":{"url":"https://github.com/buttons/github-buttons/issues"},"dist":{"shasum":"ff1e028778307960af5dbd35b35a2169373256e8","tarball":"http://registry-npm.ywwl.com/github-buttons/download/github-buttons-2.33.1.tgz","fileCount":9,"integrity":"sha512-T0yhQKV/qicsr4IH1Cwa7Oy0L9Q/nsG5m2OftH88+Sq9Ub+1chjnhl4D8bFN2RlB3s63IJv4zEqcF2vgO5TJiw==","signatures":[{"sig":"MEUCIQDZYkUL5me0khXkX8h1ntOt2vNGREmxvc3cNLhHDbpYswIga1RccTYmWX0yRBtwqDc09aIqwNeNDWv6hY1qH1N1+As=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD8qAO66wrceyQaU+yDDKg5aU/w8Awdh+fq0F/ChDLurQIhANd0MS780aXv8lLyR07MRHQ4Nwvb3bHt95UQnqda/GH9"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/github-buttons@2.33.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":109385,"size":16488,"noattachment":false,"key":"/github-buttons/-/github-buttons-2.33.1.tgz"},"main":"dist/buttons.common.js","name":"github-buttons","types":"dist/buttons.d.ts","unpkg":"dist/buttons.min.js","author":{"url":"https://ntk.me/","name":"なつき","email":"i@ntk.me"},"module":"dist/buttons.esm.js","gitHead":"4b288f01784c5bea0522fdc9c2b0b2651e2271c5","license":"BSD-2-Clause","scripts":{"lint":"eslint .","test":"node node_modules/@babel/node/lib/babel-node.js --presets @babel/preset-env -- node_modules/karma/bin/karma start --single-run","build":"rollup -c rollup.config.mjs","pretest":"npm run lint"},"version":"2.33.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8450da03-6a41-4c85-b63c-1fc2e51e45d5"}},"homepage":"https://buttons.github.io/","jsdelivr":"dist/buttons.min.js","keywords":["github","button","frontend","component"],"repository":{"url":"git+https://github.com/buttons/github-buttons.git","type":"git"},"_npmVersion":"11.19.0","description":"GitHub Buttons","directories":{},"maintainers":[{"name":"ntkme","email":"i@ntk.me"}],"_nodeVersion":"24.20.0","_hasShrinkwrap":false,"devDependencies":{"chai":"^4.5.0","sass":"^1.104.1","karma":"^6.4.4","mocha":"^12.0.2","sinon":"^22.1.0","eslint":"^8.57.1","rollup":"^4.63.4","karma-chai":"^0.1.0","sinon-chai":"^3.7.0","@babel/node":"^8.0.6","karma-mocha":"^2.0.1","karma-sinon":"^1.0.5","karma-coverage":"^2.2.1","@primer/octicons":"^19.38.0","karma-sinon-chai":"^2.0.2","@babel/preset-env":"^8.0.6","@primer/primitives":"^11.10.0","eslint-plugin-node":"^11.1.0","@rollup/plugin-html":"^2.0.0","@rollup/plugin-json":"^6.1.0","@rollup/pluginutils":"^5.4.0","eslint-plugin-import":"^2.32.0","karma-mocha-reporter":"^2.2.5","@rollup/plugin-terser":"^1.0.0","eslint-plugin-promise":"^6.6.0","karma-chrome-launcher":"^3.2.0","karma-safari-launcher":"^1.0.0","@rollup/plugin-replace":"^6.0.3","eslint-config-standard":"^17.1.0","karma-firefox-launcher":"^2.1.3","rollup-plugin-istanbul":"^5.0.0","karma-rollup-preprocessor":"^7.0.8","@rollup/plugin-node-resolve":"^16.0.3"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/github-buttons_2.33.1_1789964031871_0.552824575290634"},"readme":"github-buttons\n==============\n\n[![build](https://github.com/buttons/github-buttons/actions/workflows/build.yml/badge.svg)](https://github.com/buttons/github-buttons/actions/workflows/build.yml)\n[![npm](https://img.shields.io/npm/v/github-buttons)](https://www.npmjs.com/github-buttons)\n\nUsage\n-----\n\n### Use as a Snippet\n\nGet started quickly with **[github:button configurator](https://buttons.github.io)**.\n\n### Use as a Component\n\n- [vue-github-button](https://github.com/buttons/vue-github-button) for [Vue](https://vuejs.org)\n- [react-github-btn](https://github.com/buttons/react-github-btn) for [React](https://reactjs.org)\n\n### Use as a Module\n\n``` javascript\nimport { render } from 'github-buttons'\n\n// export function render(options: object, callback: (el: HTMLElement) => void): void;\nrender(options, function (el) {\n  document.body.appendChild(el) \n})\n\n// export function render(anchor: HTMLAnchorElement, callback: (el: HTMLElement) => void): void;\nrender(anchor, function (el) {\n  anchor.parentNode.replaceChild(el, anchor)\n})\n```\n\n### Options\n\n- For snippet usage, an option is an attribute on `<a>` element.\n- For component usage, an option is a prop on component.\n- For module usage, an option is a property on `options` object.\n\n##### `href`\n\n- Type: `string` \n- Default: `'#'`\n\nAssign `href` attribute (GitHub link) for button.\n\n##### `title`\n\n- Type: `string`\n- Default: `undefined`\n\nAssign `title` attribute for button.\n\n##### `data-icon`\n\n- Type: `string`\n- Default: `'octicon-mark-github'`\n\nSet icon on button. A [subset](rollup.config.mjs) of [Octicons](https://primer.style/octicons/) is bundled.\n\n##### `data-color-scheme`\n\n- Type: `string`\n- Default: `undefined`\n\nDefine a mapping of system color scheme to widget color scheme in css-like syntax.\n\nThis is an _opt-in_ feature since version `>=2.3.0`. It means if `data-color-scheme` is `undefined`, it would still behave like version `<2.3.0`, where light color scheme is used under all conditions.\n\nOnce `data-color-scheme` is set to a string, it will inherit the default mapping: `no-preference: light; light: light; dark: dark;`.\n\n- `no-preference: light;` means when system has no preference on color scheme, light color scheme will be used.\n- `light: light;` means when system prefers light color scheme, light color scheme will be used.\n- `dark: dark;` means when system prefers dark color scheme, dark color scheme will be used.\n\nUser declarations would override the default. For example:\n\n- To enable color scheme using default, set `data-color-scheme=\"\"`.\n- To use dark color scheme when system has no preference, set `data-color-scheme=\"no-preference: dark;\"`.\n- To force light color scheme everywhere, set `data-color-scheme=\"dark: light;\"`.\n- To force dark color scheme everywhere, set `data-color-scheme=\"no-preference: dark; light: dark;\"`.\n\nA single word can be used to force the color scheme everywhere since version `>=2.11.0`. For example:\n\n- To force light color scheme everywhere, set `data-color-scheme=\"light\"`.\n- To force dark color scheme everywhere, set `data-color-scheme=\"dark\"`.\n\n##### `data-size`\n\n- Type: `string`\n- Default: `undefined`\n\nSet button size. Possible values are `undefined` and `'large'`.\n\n##### `data-show-count`\n\n- Type: `boolean`\n- Default: `false`\n\nShow a dynamic count based on button type (detected from `href`):\n\n- `https://github.com/:user` (follow)\n- `https://github.com/:user/:repo` (star)\n- `https://github.com/:user/:repo/subscription` (watch)\n- `https://github.com/:user/:repo/fork` (fork)\n- `https://github.com/:user/:repo/issues` (issues)\n- `https://github.com/:user/:repo/issues/new` (issues)\n\nTailing slash, query string, and hash in the `href` won't affect type detection:\n\n- `https://github.com/:user/` (follow)\n- `https://github.com/:user?tab=repositories` (follow)\n- `https://github.com/:user/:repo#readme` (star)\n- `https://github.com/:user/:repo/#readme` (star)\n\n##### `data-text`\n\n- Type: `string`\n- Default: `undefined`\n\nSet button text. When button is generated from `<a>` element and `data-text` is `undefined`, the button text will be anchor's `textContent`.\n\n##### `aria-label`\n\n- Type: `string`\n- Default: `undefined`\n\nSet `aira-label` for button.\n\n---\n\nSee also\n--------\n\n- [mdo/github-buttons](https://ghbtns.com)\n\n---\n\nLicense\n-------\n\nSee [LICENSE](LICENSE).\n","publish_time":1789964031954,"_cnpm_publish_time":1789964031954,"dist-tags":{"latest":"2.33.1"}}