Skip to content

Commit

Permalink
Document API, changelog and contributing.
Browse files Browse the repository at this point in the history
  • Loading branch information
q2s2t committed Aug 25, 2014
1 parent 04cdc0c commit 41df1f8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Changelog
=========

### `v0.0.1` 2014-08-25

* Initial release.
* Feature: Extract with full paths: `Zip.extractFull`
* Feature: Extract: `Zip.extract`.

> Dates are in *ISO 8601* format (year-month-day)
13 changes: 13 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Contributing :heart:
====================

Thanks for your interest! In order to keep the code coherent there are some
easy-to-follow rules.

* Use [JSHint](http://www.jshint.com) and respect the `.jshintrc` file.
* Use [EditorConfig](http://www.editorconfig.com) and respect the
`.editorconfig` file.
* Write test for your modifications (use `mocha` and `chai` modules).
* Keep the code coverage as high as possible (100% is awesome!). Install
`istanbul` module and run `npm run coverage` to check it.
* Proudly add yourself to the contributors in `package.json`! :+1:
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Usage
I chose to use *Promises* in this library. API is consistent with standard use:

```js
var Zip = require('7z');
var Zip = require('7z'); // Name the class as you want!
var myTask = new Zip();
myTask.extractFull('myArchive.7z', 'destination', { p: 'myPassword' })

Expand Down Expand Up @@ -45,7 +45,7 @@ npm install --save 7z
API
---

### Extract with full paths: `extractFull`
### Extract with full paths: `Zip.extractFull`

**Arguments**
* `archive` The path to the archive you want to analyse.
Expand All @@ -60,7 +60,7 @@ API
* `err` An Error object. Its message is the message outputed by 7-Zip.
* `code` 7-Zip [exit code](http://sevenzip.sourceforge.jp/chm/cmdline/exit_codes.htm).

### Extract: `extract`
### Extract: `Zip.extract`

**Arguments**
* `archive` The path to the archive you want to analyse.
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"wrapper"
],
"author": "Quentin Rossetti <[email protected]>",
"contributors": [],
"license": "ISC",
"bugs": {
"url": "https://github.com/quentinrossetti/node-7zip/issues"
Expand Down

0 comments on commit 41df1f8

Please sign in to comment.