5.0.0 • Published 2 years ago

md5-file v5.0.0

Weekly downloads
1,197,870
License
MIT
Repository
github
Last release
2 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

plopify@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@weexbox/builder@weexbox/service@wethegit/sweet-potato-masher@cloudkite/next@valota/my-content-client@vapid/clidltlabs.unifyblockchain-sdk-cli@omnia/tooling-vue@scefira/dfw-nodejsgrunt-md5file-mappinggrunt-md5symlinkgrunt-metastorereact-native-ota-cli@bfchain/bcf-downloader@blacklight-cms/img-opt-s3-renditions.plugin@cantremember/mongodb-down-load@bolt/build-icons@bonobolabs/gatsbyreact-primeredux-pack-livelytripslabsrosavrmduprishiqing-deployrn-pdf-reader-offlinerhgamestation-manager2rehype-local-image-to-cloudinaryreg-clireg-cli-apanizoremove-duplicate-filesrrrrr@cross2d/nextqshell-clirapidgatorqute-cli-corereact-aws-s3-deployqcloud-cos-webpack-pluginsirecord_appspon-weexsocket-directory-syncsquidostatic-nextserverx-tssecretsmanager-versioningsheerun-nextseui-clisftp-clientskypager-helpers-deploymentskypager-features-file-managersp-pwasuper-project@alkihis/photo-cleaner@amory/graphql-filesystem@andrewshell/opmlsrc@apeiwan/pi-mobile@apeiwan/pi-play@axah/next-workbox-webpack-plugin@arist0tl3/mongodb-download@alicloud/funmysql-migration-promisen3tr-nextppj-apipotionsellerpegakit-build-toolsphaser-asset-pack-hashingphoto-cleanupphoto-ingresspi-playpickselprevjspostcss-assets-urlspostcss-cosproto-syd-hackathon-mobilepushstatesails-react-ssr@chaoswise/scaffold@cleveradssolutions/cas.cordova.families@cleveradssolutions/cas.cordova.optimal
5.0.0

2 years ago

4.0.0

4 years ago

3.2.3

4 years ago

3.2.2

4 years ago

3.2.1

4 years ago

3.2.0

4 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

2.0.7

5 years ago

3.0.0

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago