Socket
Socket
Sign inDemoInstall

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 2.1.0 to 2.1.1

examples/ignore-rootName.js

2

package.json
{
"name": "folder-hash",
"version": "2.1.0",
"version": "2.1.1",
"description": "Create a hash checksum over a folder and its content - its children and their content",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -1,4 +0,2 @@

# folder-hash
Create a hash checksum over a folder or a file.
Create a hash checksum over a folder or a file.
The hashes are propagated upwards, the hash that is returned for a folder is generated over all the hashes of its children.

@@ -215,3 +213,4 @@ The hashes are generated with the _sha1_ algorithm and returned in _base64_ encoding by default.

matchBasename: true,
matchPath: false
matchPath: false,
ignoreRootName: false
},

@@ -222,3 +221,4 @@ folders: {

matchBasename: true,
matchPath: false
matchPath: false,
ignoreRootName: false
}

@@ -356,2 +356,15 @@ }

</tr>
<tr>
<td>ignoreRootName</td>
<td>
<span>bool</span>
</td>
<td>
&lt;optional&gt;<br>
</td>
<td>
false
</td>
<td>Set to true to calculate the hash without the basename of the root (first) element</td>
</tr>
</tbody>

@@ -358,0 +371,0 @@ </table>

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