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

folder-hash

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

folder-hash - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

bin/folder-hash

1

index.js

@@ -299,2 +299,3 @@ const crypto = require('crypto'),

module.exports = {
defaults: defaultOptions,
hashElement: prep(require("graceful-fs"), Promise),

@@ -301,0 +302,0 @@ // exposed for testing

5

package.json
{
"name": "folder-hash",
"version": "3.2.0",
"version": "3.3.0",
"description": "Create a hash checksum over a folder and its content - its children and their content",
"main": "index.js",
"bin": {
"folder-hash": "bin/folder-hash"
},
"scripts": {

@@ -7,0 +10,0 @@ "start": "node sample.js",

@@ -310,3 +310,26 @@ Create a hash checksum over a folder or a file.

## Command line usage
After installing it globally via
```
$ npm install -g folder-hash
```
You can use it like this:
```
# local folder
$ folder-hash -c config.json .
# local folder
$ folder-hash
# global folder
$ folder-hash /user/bin
```
It also allows to pass an optional JSON configuration file with the `-c` or `--config` flag, which should contain the same configuration as when using the JavaScript API.
You can also use a local version of folder-hash like this:
```
$ npx folder-hash --help
Use folder-hash on cli like this:
folder-hash [--config <json-file>] <file-or-folder>
```
## Examples

@@ -313,0 +336,0 @@ ### Other examples using promises

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