Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dy committed Jul 22, 2017
1 parent e9aae26 commit a19c642
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@

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).

## Installation
## Usage

With your favourite package manager:

- [packin](//github.com/jkroso/packin): `packin add normalize-svg-path`
- [component](//github.com/component/component#installing-packages): `component install jkroso/normalize-svg-path`
- [npm](//npmjs.org/doc/cli/npm-install.html): `npm install normalize-svg-path`

then in your app:
[![npm install normalize-svg-path](https://nodei.co/npm/normalize-svg-path.png?mini=true)](https://npmjs.org/package/normalize-svg-path/)

```js
var parse = require('parse-svg-path')
var abs = require('abs-svg-path')
var normalize = require('normalize-svg-path')

var segments = normalize(abs(parse('M0 0L10 10A10 10 0 0 0 20 20Z')))
```

## API
Expand Down

0 comments on commit a19c642

Please sign in to comment.