0.3.1 • Published 6 years ago

download-checksum v0.3.1

Weekly downloads
14
License
ISC
Repository
github
Last release
6 years ago

Build Status Coverage Status

download-checksum

Checksums plugin for download

Allow to check the downloads by using any of the accepted checksums of the Node.js crypto module and PGP signatures. It allow to check several algorythms for a single file, too.

Usage

var Download = require('download')
var checksum = require('download-checksum')

var downloads =
[
  {
    url: 'http://example.com/foo.zip',
    sha256: '<hex string>'
  },
  {
    url: 'http://example.com/cat.jpg',
    md5: '<hex string>'
  },
  {
    url: 'http://example.com/Windows_10.tar.gz',
    pgp:
    {
      keys: '<armed PGP string>',
      signature: '<armed PGP string>'
    }
  },
  {
    url: 'http://example.com/Area_51.zip',
    pgp:
    {
      keysFile: 'path/to/publicKey.pub',
      signatureFile: 'path/to/signature.asc'
    }
  }
]

Download()
  .get(downloads[0].url)
  .get(downloads[1].url)
  .get(downloads[2].url)
  .get(downloads[3].url)
  .dest('dest')
  .use(checksum(downloads))
  .run()
0.3.1

6 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.0

8 years ago