{"_id":"react-native-svg-web","_rev":"1015710","name":"react-native-svg-web","description":"A web replacement for react-native-svg","dist-tags":{"latest":"1.0.9"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"time":{"modified":"2021-09-28T15:31:39.000Z","created":"2017-05-20T14:05:58.499Z","1.0.9":"2020-06-03T12:55:24.226Z","1.0.8":"2020-05-30T14:13:17.407Z","1.0.7":"2020-05-17T01:35:35.181Z","1.0.6":"2020-05-08T17:04:32.696Z","1.0.5":"2020-05-04T16:31:03.072Z","1.0.4":"2020-05-04T15:53:59.697Z","1.0.3":"2020-05-04T14:03:12.296Z","1.0.2":"2020-04-30T10:31:31.934Z","1.0.1":"2017-05-22T18:25:06.753Z","1.0.0":"2017-05-20T14:05:58.499Z"},"users":{},"author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"versions":{"1.0.9":{"name":"react-native-svg-web","version":"1.0.9","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"peerDependencies":{"prop-types":"*","react":"*","react-native-web":">= 0.10.1"},"devDependencies":{"prop-types":"^15.7.2","react":"^16.13.1","react-dom":"^16.13.1","react-native-web":"^0.12.2"},"gitHead":"3381b28e63872d0887b2c5f6aa88cefd43f72957","_id":"react-native-svg-web@1.0.9","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"a50b1ac6e33eb9efdba38d58e6e13c193ef041c2","size":2250,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.9.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.9_1591188924125_0.5808199948080282"},"_hasShrinkwrap":false,"publish_time":1591188924226,"_cnpm_publish_time":1591188924226},"1.0.8":{"name":"react-native-svg-web","version":"1.0.8","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"peerDependencies":{"prop-types":"*","react":"*","react-native-web":">= 0.10.1"},"devDependencies":{"prop-types":"^15.7.2","react":"^16.13.1","react-dom":"^16.13.1","react-native-web":"^0.12.2"},"gitHead":"7335c0ee1fd05bec829f73b2471e7dc078763bff","_id":"react-native-svg-web@1.0.8","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"f72c41ccba1a2e450b01dc40b2b68fde104e92e7","size":2248,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.8.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.8_1590847997267_0.9930504657699069"},"_hasShrinkwrap":false,"publish_time":1590847997407,"_cnpm_publish_time":1590847997407},"1.0.7":{"name":"react-native-svg-web","version":"1.0.7","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"peerDependencies":{"prop-types":"*","react":"*","react-native-web":">= 0.10.1"},"devDependencies":{"prop-types":"^15.7.2","react":"^16.13.1","react-dom":"^16.13.1","react-native-web":"^0.12.2"},"gitHead":"cae56fcdad57de4e96cee20b28a0e5c45a66d2c6","_id":"react-native-svg-web@1.0.7","_nodeVersion":"14.2.0","_npmVersion":"6.14.4","dist":{"shasum":"82ea28229f47989b763f0863c9b9d582fa7e9c18","size":2226,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.7.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.7_1589679335035_0.155100815200911"},"_hasShrinkwrap":false,"publish_time":1589679335181,"_cnpm_publish_time":1589679335181},"1.0.6":{"name":"react-native-svg-web","version":"1.0.6","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"peerDependencies":{"prop-types":"*","react":"*","react-native-web":"^0.12.2"},"devDependencies":{"prop-types":"^15.7.2","react":"^16.13.1","react-native-web":"^0.12.2"},"gitHead":"1e4e271055a8e4c6c7b0a2465874a8877f2f76e8","_id":"react-native-svg-web@1.0.6","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"1cef23f289934183deae034632918e9e54dbf7f0","size":2240,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.6.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.6_1588957472589_0.40941627503297484"},"_hasShrinkwrap":false,"publish_time":1588957472696,"_cnpm_publish_time":1588957472696},"1.0.5":{"name":"react-native-svg-web","version":"1.0.5","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"peerDependencies":{"prop-types":"*","react":"*","react-native-web":"*"},"devDependencies":{"prop-types":"^15.7.2","react":"^15.6.2"},"gitHead":"c2c7b999bbb47a12d7b661a3b1f72b244f24d241","_id":"react-native-svg-web@1.0.5","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"c07af29c44d11957529e3380c241faa62026c5d3","size":2221,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.5.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.5_1588609862901_0.45174371054827644"},"_hasShrinkwrap":false,"publish_time":1588609863072,"_cnpm_publish_time":1588609863072},"1.0.4":{"name":"react-native-svg-web","version":"1.0.4","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"scripts":{"test":"xo"},"xo":{"space":true,"env":["browser"],"rules":{"object-curly-spacing":["error","always"]}},"peerDependencies":{"react":">=15.4.0","react-native-web":"*"},"dependencies":{"prop-types":"^15.5.10"},"devDependencies":{"react":"^15.5.4","xo":"^0.18.2"},"gitHead":"4e26076856f414d127001a49b664dbec94ce4f3b","_id":"react-native-svg-web@1.0.4","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"5abba5375291a94e2572819db5f2c0655004f8ea","size":2319,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.4.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.4_1588607639568_0.3692338296051936"},"_hasShrinkwrap":false,"publish_time":1588607639697,"_cnpm_publish_time":1588607639697},"1.0.3":{"name":"react-native-svg-web","version":"1.0.3","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"scripts":{"test":"xo"},"xo":{"space":true,"env":["browser"],"rules":{"object-curly-spacing":["error","always"]}},"peerDependencies":{"react":">=15.4.0","react-native-web":"*"},"dependencies":{"prop-types":"^15.5.10"},"devDependencies":{"react":"^15.5.4","xo":"^0.18.2"},"gitHead":"4de2eabb7ad57b263ea7ca4fe3ab047a374f5ab7","_id":"react-native-svg-web@1.0.3","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"11a7e46ca3f7e498445e1f8259c62ffa44bb6aeb","size":2326,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.3.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.3_1588600992194_0.09834052148316563"},"_hasShrinkwrap":false,"publish_time":1588600992296,"_cnpm_publish_time":1588600992296},"1.0.2":{"name":"react-native-svg-web","version":"1.0.2","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"scripts":{"test":"xo"},"xo":{"space":true,"env":["browser"],"rules":{"object-curly-spacing":["error","always"]}},"peerDependencies":{"react":">=15.4.0"},"dependencies":{"prop-types":"^15.5.10"},"devDependencies":{"react":"^15.5.4","xo":"^0.18.2"},"gitHead":"fbcc633d2ffb146ed81a7856399e5b0fb208cd9a","_id":"react-native-svg-web@1.0.2","_nodeVersion":"14.0.0","_npmVersion":"6.14.4","dist":{"shasum":"9fdc0a309a7be8fc520785c97630de4576e03f7b","size":2097,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.2.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web_1.0.2_1588242691789_0.6113308512731763"},"_hasShrinkwrap":false,"publish_time":1588242691934,"_cnpm_publish_time":1588242691934},"1.0.1":{"name":"react-native-svg-web","version":"1.0.1","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"scripts":{"test":"xo"},"xo":{"space":true,"env":["browser"],"rules":{"object-curly-spacing":["error","always"]}},"peerDependencies":{"react":">=15.4.0"},"dependencies":{"prop-types":"^15.5.10"},"devDependencies":{"react":"^15.5.4","xo":"^0.18.2"},"gitHead":"c55b9e0abe256489e268c02dce7d43aa7420e20a","_id":"react-native-svg-web@1.0.1","_shasum":"16e1784077b6e5b6c7ebd9c3829e6684211cba99","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"dist":{"shasum":"16e1784077b6e5b6c7ebd9c3829e6684211cba99","size":2130,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.1.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web-1.0.1.tgz_1495477505780_0.7907700897194445"},"directories":{},"publish_time":1495477506753,"_hasShrinkwrap":false,"_cnpm_publish_time":1495477506753},"1.0.0":{"name":"react-native-svg-web","version":"1.0.0","description":"A web replacement for react-native-svg","main":"index.js","author":{"name":"Chris Baker","email":"mail.chris.baker@gmail.com"},"license":"MIT","homepage":"https://github.com/bakerface/react-native-svg-web#readme","keywords":["react","native","svg","web"],"repository":{"type":"git","url":"git+https://github.com/bakerface/react-native-svg-web.git"},"bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"scripts":{"test":"xo"},"xo":{"space":true,"env":["browser"],"rules":{"object-curly-spacing":["error","always"]}},"peerDependencies":{"react":">=15.4.0"},"dependencies":{"prop-types":"^15.5.10"},"devDependencies":{"react":"^15.5.4","xo":"^0.18.2"},"gitHead":"25198c4827b5da3803bff083ef55861395790b6f","_id":"react-native-svg-web@1.0.0","_shasum":"1014d50c3bff30bd3091224922a736a1fe2925f3","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"bakerface","email":"mail.chris.baker@gmail.com"},"dist":{"shasum":"1014d50c3bff30bd3091224922a736a1fe2925f3","size":2131,"noattachment":false,"key":"/react-native-svg-web/-/react-native-svg-web-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/react-native-svg-web/download/react-native-svg-web-1.0.0.tgz"},"maintainers":[{"name":"bakerface","email":"mail.chris.baker@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-svg-web-1.0.0.tgz_1495289157449_0.5313365645706654"},"directories":{},"publish_time":1495289158499,"_hasShrinkwrap":false,"_cnpm_publish_time":1495289158499}},"readme":"# react-native-svg-web\n[![npm version](https://badge.fury.io/js/react-native-svg-web.svg)](http://badge.fury.io/js/react-native-svg-web)\n[![downloads](http://img.shields.io/npm/dm/react-native-svg-web.svg)](https://www.npmjs.com/package/react-native-svg-web)\n\nThis package can be used as a drop-in replacement for [react-native-svg](https://github.com/react-native-community/react-native-svg) when targeting the web, or as a mock for [jest](https://github.com/facebook/jest) when testing react-native applications.\n\n### Targeting the Web\n\nAdd the following to your webpack configuration:\n\n``` javascript\nmodule.exports = {\n  ..., /* the existing configuration */\n\n  resolve: {\n    alias: {\n      'react-native-svg': 'react-native-svg-web'\n    }\n  }\n};\n```\n\n### Mocking with Jest\n\nAdd the following to your `package.json`.\n\n``` json\n{\n  \"jest\": {\n    \"setupFiles\": [\n      \"./jest/mocks/react-native-svg.js\"\n    ]\n  }\n};\n```\n\nAnd then create a file `./jest/mocks/react-native-svg.js`:\n\n``` javascript\njest.mock('react-native-svg', () => require('react-native-svg-web'));\n```\n","_attachments":{},"homepage":"https://github.com/bakerface/react-native-svg-web#readme","bugs":{"url":"https://github.com/bakerface/react-native-svg-web/issues"},"license":"MIT"}