{"_id":"@cumulusds/badge-up","_rev":"56-bc8904cda9b734af1a278265f09348cc","name":"@cumulusds/badge-up","dist-tags":{"latest":"3.0.1"},"versions":{"2.3.0":{"name":"@cumulusds/badge-up","version":"2.3.0","keywords":["badge","yahoo"],"author":{"name":"St. John Johnson","email":"stjohn@yahoo-inc.com"},"license":"BSD-3-Clause","_id":"@cumulusds/badge-up@2.3.0","maintainers":[{"name":"gubbatuba","email":"subhash.gubba@gmail.com"},{"name":"hbull","email":"hannuman@cumulusds.com"},{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},{"name":"only1chi","email":"only1chi@gmail.com"},{"name":"shirshaksharma","email":"shirshak.sharma@gmail.com"},{"name":"birdie697","email":"marc.a.marino@gmail.com"},{"name":"dsumiskum","email":"dylan.sumiskum@live.com"},{"name":"jeffsays","email":"jeff.beck@cumulusds.com"},{"name":"payalzanwar","email":"payal.zanwar@cumulusds.com"},{"name":"k8sousa","email":"k8sousa@gmail.com"},{"name":"omershatil","email":"omershatil@gmail.com"},{"name":"alramo","email":"arama@softedgetech.com"},{"name":"fzanetti","email":"fzanetti@softedgetech.com"},{"name":"xinyu.tang","email":"xinyu.tang@cumulusds.com"},{"name":"surajgutti","email":"suraj.gutti@cumulusds.com"},{"name":"rodrigo_cabrera_23","email":"rcabrera@softedgetech.com"},{"name":"evangelic","email":"Elmer.Evangelio@cumulusds.com"},{"name":"mdallagiovanna","email":"mdallagiovanna@softedgetech.com"},{"name":"illiapetrov","email":"ipetrov@amcbridge.com"},{"name":"mhorshovskyi","email":"mhorshovskyi@amcbridge.com"},{"name":"oborshchak","email":"oborshchak@amcbridge.com"},{"name":"klaptieva","email":"klaptieva@amcbridge.com"},{"name":"ldipetta","email":"ldipetta@softedgetech.com"}],"contributors":[{"name":"Darren Matsumoto","email":"bobafett@yahoo-inc.com"},{"name":"Drew Folta","email":"folta@yahoo-inc.com"},{"name":"Noah Katzman","email":"nkatzman@yahoo-inc.com"},{"name":"Peter Peterson","email":"petey@yahoo-inc.com"},{"name":"Robert Ames","email":"rames@yahoo-inc.com"}],"homepage":"https://github.com/CumulusDS/badge-up","bugs":{"url":"https://github.com/CumulusDS/badge-up/issues"},"nyc":{"reporter":["lcov","text"]},"dist":{"shasum":"ea00160100808eca9be99bd2f742ce9f2e19e6e7","tarball":"https://registry.npmjs.org/@cumulusds/badge-up/-/badge-up-2.3.0.tgz","fileCount":12,"integrity":"sha512-CEXA/H7pu4cNuLEkbQ8IJMOzRKmVFJdVK9+bTkQtw//3NLzBZ/WsKBxvRhpgzJ4rEZyhPdaimX+RIyJFYTCnXg==","signatures":[{"sig":"MEQCIH0l+4+W43GWNFYDq90HkN7/z1jGAjAGuYrMjEZqzQBLAiAyV9EnNnHEYQODqcl/IAIjiMumg3WDGS5tE0ihn24x4Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22917,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzegQCRA9TVsSAnZWagAA/gQP/jFKGOFmX5Pjaf1o0mb5\n24SCLbf33CAYX+Uyr0ccgjc12Xhl7u80CsqRmLThoJT9F63P3/k3+2bVWBxr\nvvbmn7lAOygSS/qWl1Bof1RtnBjhg9G4F5wQbg9fCABuTHTmD9NToTwONUDc\nPwrsF+12OmFWFGdbn4sESe3Uhne94OSpOhNwrARRUZUE0+Uwd1FioECqLNGq\ntiJH37y+vteYDaTIW1xm8W0ubTYGARWbUKg8ntOtaTZjHCiFLcTy+OQ9bDEN\nafDbBIMhclCADxxHFeWgxdMtUdzXPVPIBEoOO9hLZpdc0+jSgrx6WaB/RFj0\nFPjAm9/1vxnxMWlP1/Ed8IqPoUcrRjGHQi+UeMoH/USTs4Sz5DpFxl4l/xzR\nuYeJKYGj8SKflq84+IFvzuYPm+r8k0TEP+NtgNSAVidAS2SFPNrqB82OFQr6\nKYE6hZQmiLZUJBZFQhnuMV6TZYVyHp1JSg2PlURjCcHeiHao6rbVcwg9MhdD\n3ZFD0FRczWpbHyy4fZgSBTFm32H+QUBi9JvYAb+gzNgZ5L/I9oF00u2r8nm+\n39tp6KQB9ad/5wy2OJ3BcdqNFjF2nPBiz19x4Svx9VxfBFoQ7p6lpslArFYs\nbnSmJ99ETJCEwcO9ufWaf34IgWPuVKZbMVvgH34jsf0C9NCOF9tAtpd+Kaue\nO6Ro\r\n=tQLI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=12.0.0"},"gitHead":"cf0f69d12a634ab06ada19357d8ef1469d02e45c","release":{"debug":false,"verifyConditions":{"path":"./node_modules/semantic-release/src/lib/plugin-noop.js"}},"scripts":{"lint":"eslint .","test":"nyc --report-dir ./var/coverage/test mocha --color true","git:push":"git push --follow-tags","publish:major":"run-s version:major git:push","publish:minor":"run-s version:minor git:push","publish:patch":"run-s version:patch git:push","version:major":"yarn version --new-version major","version:minor":"yarn version --new-version minor","version:patch":"yarn version --new-version patch"},"_npmUser":{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},"repository":{"url":"git+ssh://git@github.com/rpl/badge-up.git","type":"git"},"_npmVersion":"6.14.15","description":"A module that produces hot badges without the need of Cairo (forked from the original badge-up package to update vulnerable npm deps)","directories":{},"resolutions":{"ansi-regex":"^5.0.1"},"_nodeVersion":"14.17.6","dependencies":{"dot":"^1.1.3","svgo":"^2.3.1","css-color-names":"~1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","mocha":"^9.0.1","sinon":"^11.1.1","eslint":"^7.29.0","coveralls":"^3.1.0","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/badge-up_2.3.0_1632275090380_0.7019885202692295","host":"s3://npm-registry-packages"}},"2.3.1":{"name":"@cumulusds/badge-up","version":"2.3.1","keywords":["badge","yahoo"],"author":{"name":"St. John Johnson","email":"stjohn@yahoo-inc.com"},"license":"BSD-3-Clause","_id":"@cumulusds/badge-up@2.3.1","maintainers":[{"name":"hadarg","email":"hadar.goldstein@gmail.com"},{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},{"name":"only1chi","email":"only1chi@gmail.com"},{"name":"shirshaksharma","email":"shirshak.sharma@gmail.com"},{"name":"birdie697","email":"marc.a.marino@gmail.com"},{"name":"dsumiskum","email":"dylan.sumiskum@live.com"},{"name":"jeffsays","email":"jeff.beck@cumulusds.com"},{"name":"payalzanwar","email":"payal.zanwar@cumulusds.com"},{"name":"omershatil","email":"omershatil@gmail.com"}],"contributors":[{"name":"Darren Matsumoto","email":"bobafett@yahoo-inc.com"},{"name":"Drew Folta","email":"folta@yahoo-inc.com"},{"name":"Noah Katzman","email":"nkatzman@yahoo-inc.com"},{"name":"Peter Peterson","email":"petey@yahoo-inc.com"},{"name":"Robert Ames","email":"rames@yahoo-inc.com"}],"homepage":"https://github.com/CumulusDS/badge-up","bugs":{"url":"https://github.com/CumulusDS/badge-up/issues"},"nyc":{"reporter":["lcov","text"]},"dist":{"shasum":"63265aaace1d5f6b078eb919028a55ec1cdacd63","tarball":"https://registry.npmjs.org/@cumulusds/badge-up/-/badge-up-2.3.1.tgz","fileCount":14,"integrity":"sha512-SY316ZjZPimX3xxpSGafRakSmdg6BMKpEy55GvFfwUgmv9U5eX4bfX9UXnYJkglWINcpzUJWUeCgRFC17GEMBA==","signatures":[{"sig":"MEUCIQDQPAWrnV5F65sZPylRLDG0oAKopt9U99Z9SvcPBYS7LgIgUibp90Gnh0lN246fOZVh1u4WYow/ipbzVq7oWkpXFZY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23314,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkG2vyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqV7Q//aBgxMjaMz/Z45o5pJ9PfU47fm80cToSWsZb5VNnvlhiVPUQj\r\nQG1gF780cq8Z8uCt+k3ul0XzLa+ZqrLsbqNwFJI1nQWMXRHD4pcVrR0/7R7W\r\n2mJy6/CEbpESgiyh2e5rYFAfmxp0cYOXOGONrbRrgWfnnapwgx2BKosnKumM\r\nV8hwE+OBYvTycIiFWz058ltSCIlpBBDvDc7h7kTZB0A1ExDmpk8853QdYyUn\r\nl2NJV0NorBYncpfZghPn2nKD5p6hy3HA8YP3Pd/zykMzy6DKAdzMoQNS0sMr\r\navDS5ZDQclDTFUx369jQLDXg2GzrUR5IBcy04hzyyRFzgRl/8ruGUAIvbPLZ\r\nyO7K2jkfAhC73XZyjLxlObrjGZk7vzdrJySd22g8pZ9V0Bb2qlAZ0GRP3N2d\r\n+5FCYNayx0/NyJ/caol05mmDsvltfLhVvo+iC3oUr6BcgRX5hwcgwwsnseY9\r\nab5+xfLnkO8nIlS/z1pOWb00dkWFdpCT4+VlnuRzBsJqirLh0us5Kr0tioz7\r\nOv6jTeQXKrR7kMmj8eltpAvtLLQCzUtWEE//oraqLPlZujn+zmE0ImRRXiFr\r\nagbDStaji+c9iNFGDPhbCqxCFDa7b/lCEn7CgDPCQlbtiVpYpOCLzFCYsvM0\r\n4cl9WgKkN8fZRaWIaR0kCcWhMY2sEm7eV+E=\r\n=/7py\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"node":">=12.0.0"},"gitHead":"ff374c6ad90d467fb46f408ceb03d14074776929","release":{"debug":false,"verifyConditions":{"path":"./node_modules/semantic-release/src/lib/plugin-noop.js"}},"scripts":{"lint":"eslint .","test":"nyc --report-dir ./var/coverage/test mocha --color true","git:push":"git push --follow-tags","publish:major":"run-s version:major git:push","publish:minor":"run-s version:minor git:push","publish:patch":"run-s version:patch git:push","version:major":"yarn version --new-version major","version:minor":"yarn version --new-version minor","version:patch":"yarn version --new-version patch"},"_npmUser":{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},"repository":{"url":"git+ssh://git@github.com/rpl/badge-up.git","type":"git"},"_npmVersion":"6.14.18","description":"A module that produces hot badges without the need of Cairo (forked from the original badge-up package to update vulnerable npm deps)","directories":{},"resolutions":{"ansi-regex":"^5.0.1"},"_nodeVersion":"14.21.3","dependencies":{"dot":"^1.1.3","svgo":"^2.3.1","css-color-names":"~1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","mocha":"^9.0.1","sinon":"^11.1.1","eslint":"^7.29.0","coveralls":"^3.1.0","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/badge-up_2.3.1_1679518706406_0.3634162570143771","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@cumulusds/badge-up","version":"3.0.0","keywords":["badge","yahoo"],"author":{"name":"St. John Johnson","email":"stjohn@yahoo-inc.com"},"license":"BSD-3-Clause","_id":"@cumulusds/badge-up@3.0.0","maintainers":[{"name":"hadarg","email":"hadar.goldstein@gmail.com"},{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},{"name":"only1chi","email":"only1chi@gmail.com"},{"name":"shirshaksharma","email":"shirshak.sharma@gmail.com"},{"name":"birdie697","email":"marc.a.marino@gmail.com"},{"name":"dsumiskum","email":"dylan.sumiskum@live.com"},{"name":"jeffsays","email":"jeff.beck@cumulusds.com"},{"name":"payalzanwar","email":"payal.zanwar@cumulusds.com"},{"name":"omershatil","email":"omershatil@gmail.com"}],"contributors":[{"name":"Darren Matsumoto","email":"bobafett@yahoo-inc.com"},{"name":"Drew Folta","email":"folta@yahoo-inc.com"},{"name":"Noah Katzman","email":"nkatzman@yahoo-inc.com"},{"name":"Peter Peterson","email":"petey@yahoo-inc.com"},{"name":"Robert Ames","email":"rames@yahoo-inc.com"}],"homepage":"https://github.com/CumulusDS/badge-up","bugs":{"url":"https://github.com/CumulusDS/badge-up/issues"},"nyc":{"reporter":["lcov","text"]},"dist":{"shasum":"c40e431146ba04e9a0ad94e73beb94e9214e1bea","tarball":"https://registry.npmjs.org/@cumulusds/badge-up/-/badge-up-3.0.0.tgz","fileCount":13,"integrity":"sha512-URHhCPZ4AUhmF/58NkNpYgKaU2CYqVgMXYbiPX7PmCeaF1Z3BeSOPTPa36C7RZF62VpgavU/BN5ObMA0Y+E4Rg==","signatures":[{"sig":"MEUCIDt4nYDnzKZb9CpULWsqfWxt1KJCmOknHqqy+F0v47PZAiEAgF9bkCnD//8Nzrkq+XkLTEeoxhR//g3ZtXx0lfq9WhE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23018},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"342816670975b51a65cd893c95e4c873733f93d3","release":{"debug":false,"verifyConditions":{"path":"./node_modules/semantic-release/src/lib/plugin-noop.js"}},"scripts":{"lint":"eslint .","test":"nyc --report-dir ./var/coverage/test mocha --color true","git:push":"git push --follow-tags","publish:major":"run-s version:major git:push","publish:minor":"run-s version:minor git:push","publish:patch":"run-s version:patch git:push","version:major":"yarn version --new-version major","version:minor":"yarn version --new-version minor","version:patch":"yarn version --new-version patch"},"_npmUser":{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},"repository":{"url":"git+ssh://git@github.com/CumulusDS/badge-up.git","type":"git"},"_npmVersion":"9.6.7","description":"A module that produces hot badges without the need of Cairo (forked from the original badge-up package to update vulnerable npm deps)","directories":{},"_nodeVersion":"20.3.0","dependencies":{"dot":"^1.1.3","svgo":"^3.0.2","css-color-names":"~1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","mocha":"^10.1.0","sinon":"^11.1.1","eslint":"^7.29.0","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/badge-up_3.0.0_1686523425507_0.5076379255227097","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"@cumulusds/badge-up","version":"3.0.1","keywords":["badge","yahoo"],"author":{"name":"St. John Johnson","email":"stjohn@yahoo-inc.com"},"license":"BSD-3-Clause","_id":"@cumulusds/badge-up@3.0.1","maintainers":[{"name":"hadarg","email":"hadar.goldstein@gmail.com"},{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},{"name":"only1chi","email":"only1chi@gmail.com"},{"name":"shirshaksharma","email":"shirshak.sharma@gmail.com"},{"name":"birdie697","email":"marc.a.marino@gmail.com"},{"name":"dsumiskum","email":"dylan.sumiskum@live.com"},{"name":"jeffsays","email":"jeff.beck@cumulusds.com"},{"name":"payalzanwar","email":"payal.zanwar@cumulusds.com"},{"name":"omershatil","email":"omershatil@gmail.com"}],"contributors":[{"name":"Darren Matsumoto","email":"bobafett@yahoo-inc.com"},{"name":"Drew Folta","email":"folta@yahoo-inc.com"},{"name":"Noah Katzman","email":"nkatzman@yahoo-inc.com"},{"name":"Peter Peterson","email":"petey@yahoo-inc.com"},{"name":"Robert Ames","email":"rames@yahoo-inc.com"}],"homepage":"https://github.com/CumulusDS/badge-up","bugs":{"url":"https://github.com/CumulusDS/badge-up/issues"},"nyc":{"reporter":["lcov","text"]},"dist":{"shasum":"16f80a4bd759a797bfbb978ccd07c9bb97e438c1","tarball":"https://registry.npmjs.org/@cumulusds/badge-up/-/badge-up-3.0.1.tgz","fileCount":13,"integrity":"sha512-D4VaWfuvanP7UANaAjQjey7Uj/8Yrc3ZSVg7Gb3RI7kXNe/OjNlToeerdZNKo5CkPFfHkeVEMRNQqlKVv8vKbA==","signatures":[{"sig":"MEQCICo7QFt5yitDqIb2tWWT4tFiKpR7576gUSNCXUeHOqlCAiBkdFTJGxgO/ziwQ6lZr6bfLfIBGIu4SlYkAXCMpa6RMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23073},"main":"index.js","engines":{"node":">=14.0.0"},"gitHead":"dee623b80967f37fa50a99d79abdc830a2a4ee9e","release":{"debug":false,"verifyConditions":{"path":"./node_modules/semantic-release/src/lib/plugin-noop.js"}},"scripts":{"lint":"eslint .","test":"nyc --report-dir ./var/coverage/test mocha --color true","git:push":"git push --follow-tags","publish:major":"run-s version:major git:push","publish:minor":"run-s version:minor git:push","publish:patch":"run-s version:patch git:push","version:major":"yarn version --new-version major","version:minor":"yarn version --new-version minor","version:patch":"yarn version --new-version patch"},"_npmUser":{"name":"joshuanapoli","email":"jnapoli@alum.mit.edu"},"repository":{"url":"git+ssh://git@github.com/CumulusDS/badge-up.git","type":"git"},"_npmVersion":"9.6.7","description":"A module that produces hot badges without the need of Cairo (forked from the original badge-up package to update vulnerable npm deps)","directories":{},"_nodeVersion":"20.3.0","dependencies":{"dot":"^1.1.3","svgo":"^3.0.2","css-color-names":"~1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.1.0","chai":"^4.3.4","mocha":"^10.1.0","sinon":"^11.1.1","eslint":"^7.29.0","npm-run-all":"^4.1.5"},"_npmOperationalInternal":{"tmp":"tmp/badge-up_3.0.1_1686523711233_0.34615266323904015","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-22T01:44:50.380Z","modified":"2026-08-31T18:23:22.993Z","2.3.0":"2021-09-22T01:44:50.550Z","2.3.1":"2023-03-22T20:58:26.555Z","3.0.0":"2023-06-11T22:43:45.671Z","3.0.1":"2023-06-11T22:48:31.438Z"},"bugs":{"url":"https://github.com/CumulusDS/badge-up/issues"},"author":{"name":"St. John Johnson","email":"stjohn@yahoo-inc.com"},"license":"BSD-3-Clause","homepage":"https://github.com/CumulusDS/badge-up","keywords":["badge","yahoo"],"repository":{"url":"git+ssh://git@github.com/CumulusDS/badge-up.git","type":"git"},"description":"A module that produces hot badges without the need of Cairo (forked from the original badge-up package to update vulnerable npm deps)","contributors":[{"name":"Darren Matsumoto","email":"bobafett@yahoo-inc.com"},{"name":"Drew Folta","email":"folta@yahoo-inc.com"},{"name":"Noah Katzman","email":"nkatzman@yahoo-inc.com"},{"name":"Peter Peterson","email":"petey@yahoo-inc.com"},{"name":"Robert Ames","email":"rames@yahoo-inc.com"}],"maintainers":[{"email":"only1chi@gmail.com","name":"only1chi"},{"email":"marc.a.marino@gmail.com","name":"birdie697"},{"email":"dylan.sumiskum@live.com","name":"dsumiskum"},{"email":"jeff.beck@cumulusds.com","name":"jeffsays"},{"email":"payal.zanwar@cumulusds.com","name":"payalzanwar"},{"email":"prabu.guna@cumulusds.com","name":"prabu_2610"},{"email":"hadar.goldstein@gmail.com","name":"hadarg"},{"email":"mark.ford@cumulusds.com","name":"massfordscumulus"},{"email":"cduval@falcon.bentley.edu","name":"coleduval"},{"email":"dkuzmuk@amcbridge.com","name":"dkuzmuk"},{"email":"smkulkarni@amcbridge.com","name":"smkulkarni"},{"email":"rishika100815@gmail.com","name":"rishika08"},{"email":"afrieden@cumulusquality.com","name":"andrewfrieden"},{"email":"kong@cumulusquality.com","name":"kendrickong"},{"email":"dimitri.michel@hey.com","name":"dimitrimichel"},{"email":"fbrochado@softedgetech.com","name":"fbrochado-softedge"},{"email":"mmccredy@cumulusquality.com","name":"matthewmccredy"},{"email":"egomez@softedgetech.com","name":"egomezset"}],"readme":"# This is a forked version of the original [badge-up npm package](https://www.npmjs.com/package/badge-up)\n\nThe only changes applied to the original npm package are:\n\n- updated npm dependencies (to fix some known vulnerabilities detected by npm audit)\n- adapt sources to the changes introduced in the new `svgo` library\n\n------\n\n# badge-up\n\n[![npm](https://img.shields.io/npm/v/badge-up.svg?maxAge=2592000)](https://www.npmjs.com/package/badge-up)\n[![downloads](https://img.shields.io/npm/dt/badge-up.svg?maxAge=2592000)](https://www.npmjs.com/package/badge-up)\n[![build](https://cd.screwdriver.cd/pipelines/62/badge?maxAge=2592000)](https://cd.screwdriver.cd/pipelines/62)\n\nThis is a simple library that generates SVG badges without Cairo.\n\n\n## Install\n\n`npm install @cumulusds/badge-up`\n\n\n## V1 Usage\n\n```js\nconst badge = require('@cumulusds/badge-up');\nbadge('batman', 'component', badge.colors.green, function (error, svg) {\n    // some callback\n});\n```\n\nProduces: ![example](https://cdn.rawgit.com/yahoo/badge-up/master/test/testData/good.svg)\n\nThe color argument can be a CSS color, or one of the specially named colors\nfound in `badge.colors`.\n\nYou can alternatively use the returned `Promise`:\n\n```js\nconst badge = require('@cumulusds/badge-up');\n(async () => {\ntry {\n    const svg = await badge('batman', 'component', badge.colors.green);\n} catch (error) {\n    //\n}\n}());\n```\n\n## V2 Usage\n\nWith this API you can create arbitrary badges with an arbitrary number of sections.\n\nEach section is an array. The first element is the text to show, and the rest\nof the (optional) elements are attributes to apply to the text. If there are no\nattributes then a single string (instead of an array of one element) can be\npassed instead.\n\nThe following attributes are supported:\n\n* `{hex}{hex}{hex}{hex}{hex}{hex}` six hexadecimal characters or `{css-color-name}` a named CSS color,\n    either of which is used to color the section\n* `s{{hex}{hex}{hex}{hex}{hex}{hex}}` six hexadecimal characters or `s{css-color-name}` a named CSS color,\n    either of which is used to color stroke the section, e.g. `s{d3d3d3}`\n\nThe default color for the first section is `696969` and `d3d3d3` for subsequent sections.\n\nAny section can have mulitple lines by putting newlines in its text.\n\n```js\nconst badge = require('@cumulusds/badge-up');\nconst sections = [\n    'foo/far;fun',\n    [ 'bar\\nbaz', 'orange'],\n    [ 'mork \"mindy\"', 'olive', 's{white}'],\n    [ '<∀>', 'moccasin']\n];\nbadge.v2(sections, function (error, svg) {\n    // some callback\n});\n```\n\nProduces: ![example](https://cdn.rawgit.com/yahoo/badge-up/master/test/testData/v2-example.svg)\n\nYou can also use the returned `Promise`:\n\n```js\nconst badge = require('@cumulusds/badge-up');\nconst sections = [\n    'foo/far;fun',\n    [ 'bar\\nbaz', 'orange'],\n    [ 'mork \"mindy\"', 'olive', 's{white}'],\n    [ '<∀>', 'moccasin']\n];\n\n(async () => {\ntry {\n    const svg = await badge.v2(sections);\n} catch (error) {\n  //\n}\n}());\n```\n","readmeFilename":"README.md"}