Skip to content
This repository was archived by the owner on Jul 23, 2018. It is now read-only.

Commit 9c66d93

Browse files
committed
update readme for 0.0.6
1 parent 27cbe49 commit 9c66d93

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ Gerber file to SVG converter for Node and the browser.
77
2. `$ gerber2svg /path/to/gerber` (writes to stdout)
88
* `$ gerber2svg /path/to/gerber > file.svg` will write to a file
99

10-
### api (with Node or in the Browser with Browserify)
10+
### api (node and browser)
11+
For Node and Browserify:
1112
1. `$ npm install --save(-dev) gerber-to-svg`
13+
2. Add `var gerberToSvg = require(gerber-to-svg);` to your JavaScript
14+
15+
If you'd rather not manage your packages:
16+
1. Download the standalone [library]() or [minified library]()
17+
2. Add `<script src="path/to/gerber-to-svg.js"></script>` to your HTML before your application
1218

1319
Use in your app with:
1420
``` javascript
15-
var gerberToSvg = require(gerber-to-svg);
1621
var svgString = gerberToSvg(gerberString);
1722
```
1823
Where `gerberString` is the gerber file (e.g. from fs.readFile encoded with UTF-8 or FileReader.readAsText).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gerber-to-svg",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "Gerber file to SVG converter",
55
"main": "lib/gerber-to-svg.js",
66
"bin": {

0 commit comments

Comments
 (0)