Comparing version 1.7.0 to 1.7.1
{ | ||
"name": "a-toolbox", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "javascript lightweight basic tools for node.js and browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -272,3 +272,3 @@ # a-toolbox | ||
#### fs.exists(path) | ||
- _path_ \<string\> file path | ||
- _path_ \<string\> path | ||
- _return:_ Promise.\<boolean\> true if file or directory exists | ||
@@ -286,2 +286,26 @@ | ||
#### fs.isFile(path) | ||
- _path_ \<string\> file path | ||
- _return:_ Promise.\<boolean\> true if it exists and is a file | ||
_Example_ | ||
````js | ||
tools.fs.isFile('/tmp/file') | ||
// > true | ||
```` | ||
#### fs.isDirectory(path) | ||
- _path_ \<string\> dir path | ||
- _return:_ Promise.\<boolean\> true if it exists and is a dir | ||
_Example_ | ||
````js | ||
tools.fs.isDirectory('/tmp') | ||
// > true | ||
```` | ||
#### fs.touch(path, [mode=0o666]) | ||
@@ -317,3 +341,2 @@ - _path_ \<string\> file path | ||
--- | ||
@@ -885,2 +908,6 @@ | ||
v. 1.7.1 | ||
- add ``fs.isFile`` and ``fs.isDirectory`` | ||
v. 1.6.2 | ||
@@ -887,0 +914,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
330733
968
40
4416