Comparing version 1.0.107 to 1.0.108
@@ -1,13 +0,5 @@ | ||
var fs = require('fs'); | ||
module.exports = function(path) { | ||
try { | ||
fs.accessSync(path); | ||
return true; | ||
} | ||
catch (error) { | ||
} | ||
return false; | ||
var fs = require('fs'); | ||
return fs.existsSync(path); | ||
} |
{ | ||
"name": "yow", | ||
"version": "1.0.107", | ||
"version": "1.0.108", | ||
"description": "You Only Wish module", | ||
@@ -29,5 +29,4 @@ "main": "yow.js", | ||
"dependencies": { | ||
"extend": "^3.0.0", | ||
"sprintf-js": "^1.1.2" | ||
} | ||
} |
@@ -17,8 +17,11 @@ # Yow | ||
var sprintf = require('yow/sprintf'); | ||
var extend = require('yow/extend'); | ||
var vsprintf = require('yow/vsprintf'); | ||
var once = require('yow/once'); | ||
var merge = require('yow/merge'); | ||
```` | ||
- **sprintf(args)** - Just as you would expect. Uses the npm module 'sprintf-js'. | ||
- **extend(args)** - Again, just as you would expect. Uses the npm module 'extend'. | ||
- **once(fn, context)** - Call a function just once and return the same result. | ||
- **sprintf(args)** - Just as you would expect. Uses the npm module 'sprintf-js'. | ||
- **vsprintf(args)** - Just as you would expect. Uses the npm module 'sprintf-js'. | ||
- **once(fn, context)** - Call a function just once and return the same result. | ||
- **merge({}, objects...)** - Like Object.assign() but does a deep merge. | ||
@@ -87,14 +90,9 @@ | ||
### Logging | ||
### Console/Logging | ||
````javascript | ||
var logs = require('yow/logs'); | ||
require('yow/prefixConsole'); | ||
```` | ||
- **prefixConsole(fn)** - Adds a prefix to all **console** methods. | ||
- **logs.prefix(prefix)** - Prefix all logs with the specified prefix. This may be a function or a string expression. | ||
Default is the current date/time. | ||
- **logs.redirect(file)** - Redirects all logging to the specified file. If not specified, a log file with the current | ||
date/time will be created. | ||
### Timer | ||
@@ -101,0 +99,0 @@ |
1
30
16999
391
158
8
- Removedextend@^3.0.0
- Removedextend@3.0.2(transitive)