bump up version number + minor amendment to readme
This commit is contained in:
parent
1945c9dda0
commit
ff0777e220
@ -27,7 +27,7 @@ console.log(time); // will log 98718
|
|||||||
and can be as messy as you like:
|
and can be as messy as you like:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var str = '1 d 3h 25 m 1 8s';
|
var str = '1 d 3HOurS 25 min 1 8s';
|
||||||
var time = str.parseTime();
|
var time = str.parseTime();
|
||||||
|
|
||||||
console.log(time); // will log 98718
|
console.log(time); // will log 98718
|
||||||
@ -165,7 +165,7 @@ All you need to do to get timestring working in the browser is download / clone
|
|||||||
```
|
```
|
||||||
### Node.js
|
### Node.js
|
||||||
|
|
||||||
Timestring is also node compatible. To install for a project, navigate to the projects root folder and in your terminal and type the following:
|
Timestring is also node compatible. To install for a project, navigate to the projects root folder and in your terminal and type the following:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install timestring
|
npm install timestring
|
||||||
@ -179,4 +179,4 @@ In your node application you need to require the timestirng module:
|
|||||||
var Timestring = require('timestring');
|
var Timestring = require('timestring');
|
||||||
```
|
```
|
||||||
|
|
||||||
Once you have done this, you will beable to use timestring in node, the same way you do in the browser!
|
Once you have done this, you will beable to use timestring in node, the same way you do in the browser!
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"author" : "Mike Barrett <mike182uk@gmail.com",
|
"author" : "Mike Barrett <mike182uk@gmail.com",
|
||||||
"repository" : {"type": "git", "url": "git://github.com/mike182uk/timestring.git"},
|
"repository" : {"type": "git", "url": "git://github.com/mike182uk/timestring.git"},
|
||||||
"main" : "timestring.js",
|
"main" : "timestring.js",
|
||||||
"version" : "1.0.0"
|
"version" : "1.0.1"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user