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

gulp-file-hash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-hash

通过在根目录保存一个记录文件hash的json文件,在每次上传之前对文件的hash进行比较,过滤出hash值发生改变的文件

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gulp-file-hash

gulp-file-hash is a gulp plugin to use hash value to filter files.

NPM

Build Status NPM version Downloads Support us

通过在根目录保存一个记录文件hash的json文件,在每次上传之前对文件的hash进行比较,过滤出hash值发生改变的文件,使上传发布的文件数达到最小。

Install

With npm do:

npm install gulp-file-hash --save-dev

Example

var fileHash = require('gulp-file-hash');
var rename = require('gulp-rename');

gulp.src('dist/*')
    .pipe(fileHash('upload.json'))
    .pipe(rename({suffix: "." + (+new Date())}))
    .pipe(/* upload command */)

API

fileFilter('filename.json') 根目录下记录文件hash的json文件,不存在则自动创建。

License

MIT License

Keywords

FAQs

Package last updated on 24 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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