Skip to content

Commit

Permalink
Updating README.md and removing test code from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieferrero committed Jan 3, 2018
1 parent 7a802ce commit 86de4fe
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Change the default font size. (Don't pass in units, or it won't work.)
```bash
$ copper index.js --fontSize 25 Raleway //uses '25px' instead of '20px'
```

---

## Module Usage
Expand Down Expand Up @@ -152,9 +153,28 @@ An object via which you can pass in the following parameters.
resolution: 1,
theme: 'hybrid',
font: 'Source Code Pro',
fontSize: 20
}
fontSize: 20,
background: '#fff',
prettify: true, // use prettify to format `js`
style: null, // override code styles injected by theme
webshotCustomConfig: { // Using webshot default options
shotSize: {
width: 'window',
height: 'window'
},
windowSize: {
width: 1024,
height: 768
},
shotOffset: {
top: 0,
right: 0,
bottom: 0,
left: 0
}
}
```
*See [webshot](https://www.npmjs.com/package/webshot) for a description of webshot options.*
## Available Themes
Expand Down
4 changes: 0 additions & 4 deletions code-snipper.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,5 @@ function codeSnipper(fileName, options = opts) {
});
return 0;
}
codeSnipper('package.json', {
theme: 'solarized-dark',
webshotCustomConfig: {}
});

module.exports = codeSnipper;

0 comments on commit 86de4fe

Please sign in to comment.