{"name":"github-buttons","version":"0.0.1-security","description":"This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/npm/security-holder.git"},"keywords":[],"author":"","license":"ISC","bugs":{"url":"https://github.com/npm/security-holder/issues"},"homepage":"https://github.com/npm/security-holder#readme","_id":"github-buttons@0.0.1-security","_shasum":"1ff3836e87844e39adcdb2d7c286f99bea41068a","_from":".","_npmVersion":"3.10.5","_nodeVersion":"4.1.2","_npmUser":{"name":"ehsalazar","email":"ernie@npmjs.com"},"dist":{"shasum":"1ff3836e87844e39adcdb2d7c286f99bea41068a","tarball":"http://registry-npm.ywwl.com/github-buttons/download/github-buttons-0.0.1-security.tgz","integrity":"sha512-2KIylTjgndx4L0/I3E5x60W+t0Q2qePwJPJx3qryeBm+iicOJw4r3fdBUL/PadICDhtOMcr4ZP1GeUF8j7XVMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDSlE8b9EB34evPYaSIviDZhqL0r8WUdeKjKKif0KOAvAiEA3q341+zncWnHwr76zmr9+7NLzg0OxDt61vmZoJeDqpM="}],"size":577,"noattachment":false,"key":"/github-buttons/-/github-buttons-0.0.1-security.tgz"},"maintainers":[{"name":"ehsalazar","email":"ernie@npmjs.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/github-buttons-0.0.1-security.tgz_1468279090225_0.447677111485973"},"directories":{},"readme":"github-buttons\n==============\n\n![build](https://github.com/buttons/github-buttons/workflows/build/badge.svg)\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":1468279090695,"_cnpm_publish_time":1468279090695,"dist-tags":{"latest":"2.33.1"}}