Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

a-toolbox

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-toolbox - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc