{"_id":"phosphor-astro","_rev":"2-b949a6f36d363d35b60d925fb992306d","name":"phosphor-astro","dist-tags":{"latest":"2.1.0","beta":"2.1.0-beta"},"versions":{"0.1.0":{"name":"phosphor-astro","version":"0.1.0","keywords":["astro","astro-component","phosphor","icons"],"author":{"url":"https://github.com/seanmcp","name":"Sean McPherson","email":"sean@seanmcp.com"},"license":"MIT","_id":"phosphor-astro@0.1.0","maintainers":[{"name":"seanmcp","email":"sean@seanmcp.com"}],"homepage":"https://github.com/seanmcp/phosphor-astro#readme","bugs":{"url":"https://github.com/seanmcp/phosphor-astro/issues"},"dist":{"shasum":"27c8956a9e88bde920d8ae3046962e0ef500a429","tarball":"https://registry.npmjs.org/phosphor-astro/-/phosphor-astro-0.1.0.tgz","fileCount":6285,"integrity":"sha512-6n9pPq0I4XXsY5kTrHndMZR108sHygcH5Geh88Bj8r1+mVf3y1iXP6DyOpyDj3hBjLS3KRfShNR9rp6030wp/A==","signatures":[{"sig":"MEUCIQCqqLgRb1llroGrGaLcpiPf7mr9+eIwYcrxqFXFV/1lnQIgTeP8nP1eJYElXc0jQshWTpXmV+V1cp5J6iYMMBZagCA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4615821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjhsWVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdNRAAhSdrVJ7vJ3M87OQtvs8RWaoIN1Xic3D6q0JG84Ifu+fv/voF\r\nwYt7x4Jfajx2iXU5M/O0jTh3WsZ4A6HvL9jaQ/YHd6cFGJ5JoVf3WTvqtOsm\r\nTaZA8atKj6clfniN4ERR2KX32P1QdCeAlD4E1LNp1C6xaXvDppSrTgFpgss2\r\nK74aYjnsW49t/vhU8FKRZmcoKzOyYP8JwX8MN3mK/RUlWamoGYV5nUJzC/CB\r\npd+IujWsNY+2jLTj9G7rRdFqAsmIzRfzJnjLgpDbbfw/iJ/GVCw0w0DDx1F/\r\nErYAZ2gBly72pH4xdjZNNA3LBkdYYbgDs8pk/Ul2hdicyyxNzREsuMY0iCy2\r\nE/jMhJg3MM3E0W/SMrdm8o9aLFvaMOBlUGfTrTbASCjcbCHvVtw5u1iWvtRl\r\nlGuAjKqTqeqy0dFj5Ffp0CU+LJUeCWGr+MAW1F6VfqS5x0P8zktnhK4n9AcP\r\nPFecj9QayVnYclDTDs0R8IeB+iXO37AsbQB/u0wBSdbi9MHdBwYyUkEBEbRx\r\nAEOmcxpDg/lbfPL7RJx2rTikLKIA/EgzjfK/acgsplhbcfr0kR1ablvsGLQI\r\nYFGpD5ZBz/4ZKIIona7dXilaYk17mL6b576sSuSrv5VxQNgNo7I8SBrt/Xkp\r\njJe+89zha0s/k4ZupQMEmvr//0oHLJCX6d0=\r\n=kTVK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fbe4c0580d960c6183033dac1df23fd65f12d236","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs","prebuild":"rm -f ./*.astro","postpublish":"rm -rf ./*.astro"},"_npmUser":{"name":"seanmcp","email":"sean@seanmcp.com"},"repository":{"url":"git+https://github.com/seanmcp/phosphor-astro.git","type":"git"},"_npmVersion":"8.5.0","description":"Phosphor icons as Astro components","directories":{},"_nodeVersion":"16.14.2","_hasShrinkwrap":false,"devDependencies":{"astro":"^1.6.11","pascalcase":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/phosphor-astro_0.1.0_1669776788735_0.0726894702151133","host":"s3://npm-registry-packages"}},"2.1.0-beta":{"name":"phosphor-astro","version":"2.1.0-beta","keywords":["astro","astro-component","phosphor","icons","phosphor-icons"],"author":{"url":"https://github.com/seanmcp","name":"Sean McPherson","email":"sean@seanmcp.com"},"license":"MIT","_id":"phosphor-astro@2.1.0-beta","maintainers":[{"name":"seanmcp","email":"sean@seanmcp.com"}],"homepage":"https://github.com/seanmcp/phosphor-astro#readme","bugs":{"url":"https://github.com/seanmcp/phosphor-astro/issues"},"dist":{"shasum":"dd513dd740713ed4dc9c670a0c3da9977029ef8b","tarball":"https://registry.npmjs.org/phosphor-astro/-/phosphor-astro-2.1.0-beta.tgz","fileCount":9075,"integrity":"sha512-ncGofwDWLHZxhcC361S9DALcl3TrQDxtIp488SuYhLQ2XFn4VP+XZHnK1kmvAssKY6r/TzauNFrTQC1VBJzhaw==","signatures":[{"sig":"MEYCIQCeeD5V8Pj4K3Pdq9cXfffGTUvcvus/ZGzAesI4mgIa7QIhAPu86Y2327JLANSVUd4Ifc0xOaeeL8svLfcorD1LA3AV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5842693},"gitHead":"53c1854ac15ef44eb93470703a5fb9cfc8d6f750","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs","clean":"rm -rf ./*.astro phosphor-icons/ LICENSE *.zip","prebuild":"rm -f ./*.astro","prepublish":"npm run build","postpublish":"npm run clean"},"_npmUser":{"name":"seanmcp","email":"sean@seanmcp.com"},"repository":{"url":"git+https://github.com/seanmcp/phosphor-astro.git","type":"git"},"_npmVersion":"10.5.0","description":"Phosphor icons as Astro components","directories":{},"_nodeVersion":"20.12.0","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"astro":"^4.11.5","pascalcase":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/phosphor-astro_2.1.0-beta_1721386042020_0.5286616538307671","host":"s3://npm-registry-packages"}},"2.1.0":{"name":"phosphor-astro","version":"2.1.0","description":"Phosphor icons as Astro components","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"node build.mjs","clean:all":"pnpm run \"/^clean:.*/\"","clean:download":"rm -rf phosphor-icons/ *.zip","clean:generated":"rm -rf ./*.astro LICENSE","download":"bash ./download.sh","prebuild":"pnpm run clean:generated","prepublish":"npm run build"},"keywords":["astro","astro-component","phosphor","icons","phosphor-icons"],"author":{"name":"Sean McPherson","email":"sean@seanmcp.com","url":"https://github.com/seanmcp"},"repository":{"type":"git","url":"git+https://github.com/seanmcp/phosphor-astro.git"},"homepage":"https://github.com/seanmcp/phosphor-astro#readme","license":"MIT","devDependencies":{"astro":"^4.11.5","pascalcase":"^2.0.0"},"_id":"phosphor-astro@2.1.0","gitHead":"413b1711aaa9555a138be233ae4075cdb2225139","bugs":{"url":"https://github.com/seanmcp/phosphor-astro/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"integrity":"sha512-qyYUlxF8DbfHc+85DDGPL04ghNBwrVK75EsNsBfYOChiCeCRwAwfbHxj/qqPrrSFPMgh9cUyEvgKYjI/7bjCUA==","shasum":"e89eeaaf4cc480ab270b5394905cea31bd11d193","tarball":"https://registry.npmjs.org/phosphor-astro/-/phosphor-astro-2.1.0.tgz","fileCount":9075,"unpackedSize":5842793,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuEJrfi/oKkznkhl5rZaWcZlUPNPQoNR0yjWtH/9GswwIgVIzJphz2ZpyZAFoitc25JOwsYWwgX7SkQi+oEzmA1C4="}]},"_npmUser":{"name":"seanmcp","email":"sean@seanmcp.com"},"directories":{},"maintainers":[{"name":"seanmcp","email":"sean@seanmcp.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/phosphor-astro_2.1.0_1721473097495_0.2725069078714062"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-30T02:53:08.735Z","modified":"2024-07-20T10:58:18.002Z","0.1.0":"2022-11-30T02:53:08.981Z","2.1.0-beta":"2024-07-19T10:47:22.307Z","2.1.0":"2024-07-20T10:58:17.821Z"},"bugs":{"url":"https://github.com/seanmcp/phosphor-astro/issues"},"author":{"name":"Sean McPherson","email":"sean@seanmcp.com","url":"https://github.com/seanmcp"},"license":"MIT","homepage":"https://github.com/seanmcp/phosphor-astro#readme","keywords":["astro","astro-component","phosphor","icons","phosphor-icons"],"repository":{"type":"git","url":"git+https://github.com/seanmcp/phosphor-astro.git"},"description":"Phosphor icons as Astro components","maintainers":[{"name":"seanmcp","email":"sean@seanmcp.com"}],"readme":"# phosphor-astro\n\n[![npm](https://img.shields.io/npm/v/phosphor-astro.svg)](https://npmjs.com/package/phosphor-astro) [![npm](https://img.shields.io/npm/dt/phosphor-astro.svg)](https://npmjs.com/package/phosphor-astro)\n\n👩‍🚀 Phosphor icons as Astro components\n\n## Installation\n\nAdd `phosphor-astro` to your project:\n\n```sh\nnpm install phosphor-astro\n# or\nyarn add phosphor-astro\n```\n\n## Use\n\nImport the icons from `phoshor-astro` and add it to your code:\n\n```jsx\n---\nimport RocketLaunch from 'phosphor-astro/RocketLaunch.astro':\nimport ArrowRight from 'phosphor-astro/ArrowRightBold.astro':\nimport Sparkle from 'phosphor-astro/SparkleDuotone.astro':\n---\n\n<p>\n  <RocketLaunch />\n  <ArrowRight />\n  <Sparkle />\n</p>\n```\n\n## Astro components\n\nThe components exported from `phosphor-astro` are the raw `svg` elements from Phosphor with `{...Astro.props}` added to the root element. This should enable you to customize the element as you see fit.\n\n```jsx\n// Book.astro\n<svg {...Astro.props} xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 256\">\n  <rect width=\"256\" height=\"256\" fill=\"none\" />\n  <path\n    d=\"M48,216a23.9,23.9,0,0,1,24-24H208V32H72A23.9,23.9,0,0,0,48,56Z\"\n    fill=\"none\"\n    stroke=\"currentColor\"\n    stroke-linecap=\"round\"\n    stroke-linejoin=\"round\"\n    stroke-width=\"16\"\n  />\n  <polyline\n    points=\"48 216 48 224 192 224\"\n    fill=\"none\"\n    stroke=\"#000\"\n    stroke-linecap=\"round\"\n    stroke-linejoin=\"round\"\n    stroke-width=\"16\"\n  />\n</svg>\n```\n\nAny prop that you pass to the component will be added to the top-level `svg` element:\n\n```jsx\n// Heart.astro\n<Heart class=\"a few classes\" data-favorite=\"true\" id=\"id\" />\n```\n\n## License\n\n[MIT](/LIBRARY_LICENSE)\n","readmeFilename":"README.md"}