Comparing version 0.0.1 to 0.0.2
15
life.js
@@ -6,10 +6,10 @@ /** | ||
module.exports = function(o) { | ||
var life = function(o) { | ||
// scope | ||
var that = this; | ||
// static | ||
const version = "0.0.1"; | ||
var version = "0.0.2"; | ||
// private | ||
var totalSec = 0; | ||
var timer = undefined; | ||
var timer; | ||
var time = function() { | ||
@@ -41,5 +41,5 @@ // | ||
clearInterval(timer); | ||
timer = undefined; | ||
}; | ||
this.setGirlFriend = function(o) { | ||
console.log(this); | ||
if(o instanceof life && this.sex === "male" && o.sex === "female") { | ||
@@ -66,2 +66,7 @@ this.girlfriend = o; | ||
}; | ||
} | ||
this.getVersion = function() { | ||
return version; | ||
}; | ||
}; | ||
module.exports = life; |
{ | ||
"name": "lifejs", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "such w0w life!", | ||
@@ -5,0 +5,0 @@ "main": "life.js", |
@@ -1,2 +0,23 @@ | ||
# life | ||
![Logo](http://emblemsbf.com/img/548.jpg) | ||
# life [![Code Climate](https://codeclimate.com/github/erayarslan/life/badges/gpa.png)](https://codeclimate.com/github/erayarslan/life) | ||
such w0w life! | ||
## usage | ||
```js | ||
// idk | ||
``` | ||
## future tasks | ||
- [x] Initial Release | ||
- [x] Test | ||
- [ ] **And more development processes (best part)** | ||
## contributing | ||
1. Fork it! | ||
2. Create your feature branch: `git checkout -b my-new-feature` | ||
3. Commit your changes: `git commit -m 'Add some feature'` | ||
4. Push to the branch: `git push origin my-new-feature` | ||
5. Submit a pull request :D |
4356
82
24