Skip to content

Commit

Permalink
add example.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlike Mike Reagent committed Dec 23, 2014
1 parent f0fa37e commit 83bff8e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
14 changes: 14 additions & 0 deletions example.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/**
* gitlogin <https://github.com/tunnckoCore/gitlogin>
*
* Copyright (c) 2014 Charlike Mike Reagent, contributors.
* Released under the MIT license.
*/

'use strict';

var gitlogin = require('./index');

gitlogin()
.then(console.log)
.catch(console.error)
1 change: 1 addition & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## v0.0.0 / December 24, 2014
- add `example.js`
- update history and add hybrid example
- add usage example
- add cli docs
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gitlogin --help


## Usage
> For more use-cases see the [tests](./test.js)
> For more use-cases see the [tests](./test.js). You can run `node example.js` to try it.
```js
var gitlogin = require('gitlogin');
Expand Down

0 comments on commit 83bff8e

Please sign in to comment.