Socket
Socket
Sign inDemoInstall

sha1-file

Package Overview
Dependencies
0
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

LICENSE

12

package.json

@@ -10,3 +10,3 @@ {

],
"version": "1.0.0",
"version": "1.0.1",
"description": "return an sha1sum of a given file",

@@ -21,4 +21,3 @@ "keywords": [

"name": "Rory Bradford",
"email": "roryrjb@gmail.com",
"url": "www.roryrjb.com"
"email": "roryrjb@gmail.com"
},

@@ -35,7 +34,8 @@ "repository": {

"scripts": {
"test": "standard && node test"
"test": "./node_modules/.bin/standard && ./node_modules/.bin/ahcom"
},
"devDependencies": {
"standard": "^3.8.0"
"ahcom": "0.0.10",
"standard": "^11.0.1"
}
}
}

@@ -11,8 +11,2 @@ # sha1-file [![Build Status](https://travis-ci.org/roryrjb/sha1-file.svg?branch=master)](https://travis-ci.org/roryrjb/sha1-file) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

__Test:__
```
$ npm test
```
### API

@@ -23,3 +17,3 @@

```javascript
var sha1File = require('sha1-file')
const sha1File = require('sha1-file')

@@ -33,9 +27,8 @@ // sync (no callback)

sha1File('./path/to/a_file', function (error, sum) {
if (error) return console.log(error)
if (error) {
console.log(error)
}
console.log(sum) // 'c8a2e2125f94492082bc484044edb4dc837f83b'
})
```
### License
MIT
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc