{"_id":"normalize-svg-path","_rev":"13-c95bb8ac73d9310ab118ae5d426d1930","name":"normalize-svg-path","description":"Convert all segments in a path to curves","dist-tags":{"latest":"1.1.0"},"versions":{"0.1.0":{"name":"normalize-svg-path","version":"0.1.0","description":"convert all segments in a path to curves","keywords":["svg","path","normalize"],"dependencies":{},"devDependencies":{"serve":"jkroso/serve","dom":"component/dom","parse-svg-path":"*","equals":"*","mocha":"*","jsmd":"*"},"repository":{"type":"git","url":"git://github.com/jkroso/normalize-svg-path.git"},"bugs":{"url":"https://github.com/jkroso/normalize-svg-path/issues"},"author":{"name":"Jake Rosoman"},"files":["index.js"],"license":"MIT","homepage":"https://github.com/jkroso/normalize-svg-path","_id":"normalize-svg-path@0.1.0","dist":{"shasum":"456360e60ece75fbef7b5d7e160480e7ffd16fe5","tarball":"https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-0.1.0.tgz","integrity":"sha512-1/kmYej2iedi5+ROxkRESL/pI02pkg0OBnaR4hJkSIX6+ORzepwbuUXfrdZaPjysTsJInj0Rj5NuX027+dMBvA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6NiNG/ZyCgOeYjIOd2AeTakuZ4uSl2vM449yWBmmEbwIgfvpr+YlfcU3sQ1NX8uxiBXY2v9RrXK3oYjKE8RkSBtM="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"jkroso","email":"jkroso@gmail.com"},"maintainers":[{"name":"jkroso","email":"jkroso@gmail.com"}],"directories":{}},"1.0.0":{"name":"normalize-svg-path","version":"1.0.0","description":"Convert all segments in a path to curves","keywords":["svg","path","normalize"],"dependencies":{"svg-arc-to-cubic-bezier":"^2.0.0"},"devDependencies":{"parse-svg-path":"^0.1.2","tape":"^4.7.0"},"repository":{"type":"git","url":"git://github.com/jkroso/normalize-svg-path.git"},"bugs":{"url":"https://github.com/jkroso/normalize-svg-path/issues"},"author":{"name":"Jake Rosoman"},"license":"MIT","gitHead":"2ed5768cd73a1e1b1aceb3554c76447790e3011d","homepage":"https://github.com/jkroso/normalize-svg-path#readme","_id":"normalize-svg-path@1.0.0","scripts":{},"_shasum":"70f8145d587c4b4c79615a59514b393c8c4c0e41","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"70f8145d587c4b4c79615a59514b393c8c4c0e41","tarball":"https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-1.0.0.tgz","integrity":"sha512-wWzJbUVHN0v179/C6rFgJMhFZF4MOJeDlrm6V7dPUAEwriIfsGtyTRV2wACudaW2S2UvMnIPImMthj09s+Rkog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC27XR7tpTbi9t5y308QBxcvaDhvSTUA3U804t8tWG7jwIge/tP18T5uukyHmk8+wGEqWFlgWSG/18n+mRMZTrPza4="}]},"maintainers":[{"email":"df.creative@gmail.com","name":"dfcreative"},{"email":"jkroso@gmail.com","name":"jkroso"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/normalize-svg-path-1.0.0.tgz_1500732655764_0.9820324000902474"},"directories":{}},"1.0.1":{"name":"normalize-svg-path","version":"1.0.1","description":"Convert all segments in a path to curves","keywords":["svg","path","normalize"],"dependencies":{"svg-arc-to-cubic-bezier":"^3.0.0"},"devDependencies":{"parse-svg-path":"^0.1.2","tape":"^4.7.0"},"repository":{"type":"git","url":"git://github.com/jkroso/normalize-svg-path.git"},"bugs":{"url":"https://github.com/jkroso/normalize-svg-path/issues"},"author":{"name":"Jake Rosoman"},"license":"MIT","gitHead":"961bbc14b755545c7116e60fc1a660935b0e178a","homepage":"https://github.com/jkroso/normalize-svg-path#readme","_id":"normalize-svg-path@1.0.1","scripts":{},"_shasum":"6f729ad6b70bb4ca4eff2fe4b107489efe1d56fe","_from":".","_npmVersion":"4.6.1","_nodeVersion":"8.1.2","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"dist":{"shasum":"6f729ad6b70bb4ca4eff2fe4b107489efe1d56fe","tarball":"https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-1.0.1.tgz","integrity":"sha512-YYmAW+yyloRKTjlARixzjURv3Wjmpw7Rrgr08si0lWJoHCILhoiNcuAuO7uJhXEIJDm9xld8Jy0VekMC9JuAgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGtsUpOItLTGf70kBeBPGVGpSQRKd282xQHonLTN171AAiAp9g9ROrMnIWgbh4DMhm8ENDE+FHysU4VezzHaa9jrAg=="}]},"maintainers":[{"email":"df.creative@gmail.com","name":"dfcreative"},{"email":"jkroso@gmail.com","name":"jkroso"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/normalize-svg-path-1.0.1.tgz_1500760581391_0.44756540143862367"},"directories":{}},"1.1.0":{"name":"normalize-svg-path","version":"1.1.0","description":"Convert all segments in a path to curves","keywords":["svg","path","normalize"],"module":"./index.mjs","main":"./index.js","exports":{"require":"./index.js","import":"./index.mjs"},"dependencies":{"svg-arc-to-cubic-bezier":"^3.0.0"},"devDependencies":{"parse-svg-path":"^0.1.2","tape":"^4.7.0"},"scripts":{"test":"node test.mjs"},"repository":{"type":"git","url":"git://github.com/jkroso/normalize-svg-path.git"},"bugs":{"url":"https://github.com/jkroso/normalize-svg-path/issues"},"author":{"name":"Jake Rosoman"},"license":"MIT","gitHead":"34fcddc9451ff0d223167fd089af49ab6a179b90","homepage":"https://github.com/jkroso/normalize-svg-path#readme","_id":"normalize-svg-path@1.1.0","_nodeVersion":"14.3.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-r9KHKG2UUeB5LoTouwDzBy2VxXlHsiM6fyLQvnJa0S5hrhzqElH/CH7TUGhT1fVvIYBIKf3OpY4YJ4CK+iaqHg==","shasum":"0e614eca23c39f0cffe821d6be6cd17e569a766c","tarball":"https://registry.npmjs.org/normalize-svg-path/-/normalize-svg-path-1.1.0.tgz","fileCount":8,"unpackedSize":13662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZPl9CRA9TVsSAnZWagAAWEUP+QCVdsfU8aTvqK6dadVx\nNJ+v5QvowJaVRGnMGBi2N+GyxHmmBfHI48vWtofCsYmlrwb0sGP6R2hW4G9E\nu88Nihqkhd9P75L9wdwcxU6J5gX3nzc2OOtQzt/UbZ05g6OZg5jyaB2c/nx7\nbqZN4YOiXxcZfcxQUkb7RGn+mVJx0l1QGS8s4qmGUT49X0aTZs8UJx2dlHAr\nXh9K/KmXiOMc0D8Dn+AiUWLhDrHMfuDQ9fXXVyQS+PErIUrRU69xg8F1e/zf\nsRdPu+b+i1OnXnTN96VCT5kQeGkXHmwuAgnSDPVX8FEa6Ot5yTVhH+oN3h0T\nQBvucnaP8nTA+okdIA3+6DbldZM3T5Dw7/gFCtx2Gz/B4i4HfjpQKMwJ1mj1\nIIb80lEKmZ7J0joxACdTyyA0zCpp94Wk9i2+eb2EZAr0SXqhr/oeKlQHF4fk\nSrzHeUZpQyQ3idu3sfvnrHhr/ghrnO9GbDaPbvY5EcoM2kHhPnpI6nj0LdK4\n4aJjlyfWnwZJNn+GAcwysLgsZWbfMM/rQwl/oc56+C97GGWkCWGsc6kzFDks\n/iyE6eq01uxJVCmKeOimUvPPMnILPMlrXwA3iLNoUd0myULlJse1+5MaY9jB\nogR0AJ2SSVk+68pRei0mSkg3cJUjPbGQJiL3FsRiLZw7LLT3JGrqosklB53I\nEppz\r\n=0FOo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVtrZ+3TQPiEdvTzT4fRKy1amdECDAzgDOJxpdmzZH0AiB+SxftoJ6b5sJR/9yneC+zJCLV2pPjJIfUhyyzzrRk0Q=="}]},"maintainers":[{"name":"jkroso","email":"jkroso@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"}],"_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/normalize-svg-path_1.1.0_1600452989173_0.9467742659424596"},"_hasShrinkwrap":false}},"readme":"# normalize-svg-path [![build](https://travis-ci.org/jkroso/normalize-svg-path.svg?branch=master)](https://travis-ci.org/jkroso/normalize-svg-path)\r\n\r\n\r\n Convert all segments in a path to curves. Usefull if you intend to animate one shape to another. By defining all segments with curves instead of a mix of lines, arcs, and curves tweening becomes much simpler. It could also help you rewrite your SVG code according to the principles of [narcissistic design](//vimeo.com/77199361).\r\n\r\n## Usage\r\n\r\n[![npm install normalize-svg-path](https://nodei.co/npm/normalize-svg-path.png?mini=true)](https://npmjs.org/package/normalize-svg-path/)\r\n\r\n```js\r\nvar parse = require('parse-svg-path')\r\nvar abs = require('abs-svg-path')\r\nvar normalize = require('normalize-svg-path')\r\n\r\nvar segments = normalize(abs(parse('M0 0L10 10A10 10 0 0 0 20 20Z')))\r\n```\r\n\r\n## API\r\n\r\n### normalize(path)\r\n\r\n Translate each segment in `path` to an equivalent cubic bézier curve. The input `path` must be [absolute](//github.com/jkroso/abs-svg-path).\r\n\r\n```js\r\nnormalize([['L',1,2]]) // => [['C',0,0,1,2,1,2]]\r\n```\r\n","maintainers":[{"name":"jkroso","email":"jkroso@gmail.com"},{"name":"dfcreative","email":"df.creative@gmail.com"}],"time":{"modified":"2022-06-22T05:34:07.024Z","created":"2013-12-19T10:00:00.056Z","0.1.0":"2013-12-19T10:00:14.947Z","1.0.0":"2017-07-22T14:10:56.733Z","1.0.1":"2017-07-22T21:56:22.454Z","1.1.0":"2020-09-18T18:16:29.307Z"},"author":{"name":"Jake Rosoman"},"repository":{"type":"git","url":"git://github.com/jkroso/normalize-svg-path.git"},"users":{"doubleshow":true,"dirtybirdnj":true},"homepage":"https://github.com/jkroso/normalize-svg-path#readme","keywords":["svg","path","normalize"],"bugs":{"url":"https://github.com/jkroso/normalize-svg-path/issues"},"license":"MIT","readmeFilename":"Readme.md"}