Skip to content

Commit 00e8de4

Browse files
author
Tomek Wiszniewski
committed
Update usage info
1 parent 486000f commit 00e8de4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ Use
4747
```js
4848
const parse = require('parametric-svg-parse');
4949

50-
const svg = domify('<svg><rect parametric:width="a + 5" /></svg>')
50+
// In the browser:
51+
const domify = require('domify');
52+
const svg = domify('<svg><rect parametric:width="a + 5" /></svg>');
53+
54+
// …or in node:
55+
const svg = document.querySelect('#my-svg');
56+
5157
const ast = parse(svg);
5258
ast;
5359
//» { type: 'ParametricSvgAst',

0 commit comments

Comments
 (0)