Skip to content

Commit

Permalink
Updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
robertoachar committed Jul 22, 2017
1 parent bf4698a commit 4d9ac31
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ Generated by [OSS Project Generator](http://bit.ly/generator-oss-project).

> Create a hash for file identification.
Long description.

# Installation

Install package
Expand All @@ -23,16 +21,22 @@ $ npm install --save node-file-hash

# Usage

Say `It works!`

```js
const lib = require('node-file-hash');

lib.hello((err, message) => {
if (err) return console.error(err);
lib.createHash('Buffer')
.then((hash) => console.log(hash))
.catch((err) => console.error(err));
```

Output

console.log(message);
});
```json
{
"md5": "7e62bc342f41c946868f0ea6f0b712d8",
"sha1": "2be5f64b36230104ef9c6e230215846a83d18df6",
"sha256": "e44193fd2d21722a46c8fcab041508d4c5be95a34828b72c631df53e8d7e20a6"
}
```

# Development
Expand Down

0 comments on commit 4d9ac31

Please sign in to comment.