5.0.0 • Published 5 years ago

md5-file v5.0.0

Weekly downloads
1,197,870
License
MIT
Repository
github
Last release
5 years ago

MD5 file

Get the MD5-sum of a given file, with low memory usage, even on huge files.

Installation

npm install --save md5-file

Usage

As a module

const md5File = require('md5-file')

/* Async usage */
md5File('LICENSE.md').then((hash) => {
  console.log(`The MD5 sum of LICENSE.md is: ${hash}`)
})

/* Sync usage */
const hash = md5File.sync('LICENSE.md')
console.log(`The MD5 sum of LICENSE.md is: ${hash}`)

As a command line tool

$ md5-file LICENSE.md
ad1faf9381e43c471dc381c17a4ee4b6

API

md5File(path: string) => Promise<string>

Asynchronously get the MD5-sum of the file at path.

Returns a Promise that will be resolved with a string containing the MD5-sum.

md5File.sync(path: string) => string

Synchronously get the MD5-sum of the file at path.

License

MIT

42-expopwc-expoplopify@hauslo/pipeline-utilgatsby-source-filesystem-frontmatterminits-envdb-loadcontent-file-preview-renderernextfproject-name-hereeefserverardrivekpxplopify-apinoodl-lab-clibyai-notification-serviceswagger-parameter-extactor@agora-lab/ali-oss@une-protecmedia/itersdksample.usample.unify@usedandloved/opennames-to-neo4j@spherehq/cliabraia@cloudkite/nextdltlabs.unifyrugo-coreio.dltlabs.unify@apeiwan/pi-playgraphql-cmsgit-cms-remark@leni-msft/oavbl-plugin-img-opt-s3-renditionswebstrates-collabmtyk-workflowrn-pdf-reader-offlineget-seleniumazure-webpackage-deploynode-red-contrib-accellionreact-native-slider-kf@infinitebrahmanuniverse/nolb-md5sirecord_appnode-red-contrib-accellion-custom-generic@everything-registry/sub-chunk-2147etmxtasklemonsync-dir-s3sync-clisyncer-clisyncable-apisync-my-foldersymphony-joysyn-osssvimgsvimg_forkwepy-plugin-aliyun-ossvue-makerwebbtwebstrates-file-systemwemos-firmware-update-jsworkenv-clixkmob-commons3-cloudfront-deploysa-node-playback-servers3syncers3-npm-caches3-moveshenan-clisheerun-nextseui-cliserverx-tssails-react-ssrreboostread-fb-ziprealm-object-serverrocket-cdnrehype-local-image-to-cloudinaryrmdupsuper-projectstatic-deploy-toolspon-weexstandard-monoreposecretsmanager-versioningrth-host-helperremove-duplicate-filestest-test-43h4h29423swagger-parameters-extractortexturepackerifyvoog-webpack-pluginvmw-clivite-plugin-require-resolvev3webpack-clivd-clivclass-libvadimages-nextjs-image-optimizervant-iconsvapid-clivapid-cli-nextvideo-scan-watchvln-lib
5.0.0

5 years ago

4.0.0

7 years ago

3.2.3

7 years ago

3.2.2

7 years ago

3.2.1

7 years ago

3.2.0

7 years ago

3.1.1

9 years ago

3.1.0

9 years ago

3.0.1

9 years ago

2.0.7

9 years ago

3.0.0

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.10

10 years ago

1.1.9

10 years ago

1.1.8

10 years ago

1.1.7

10 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.1

11 years ago

1.0.0

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago