Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

md5-lite

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md5-lite

MD5 hashing with part of a file

latest
Source
npmnpm
Version
1.1.3
Version published
Maintainers
1
Created
Source

md5-lite

파일을 청크(Chunk) 사이즈 처리를 해서 성능 향상을 목적으로 만들어진 모듈입니다. 파일 크기가 200000byte(0.2MB) 이상일 경우 초기 100000byte (0.1MB)와 마지막 100000byte을 이용하여 md5 hash 처리 합니다. 그보다 크기가 작을 경우 전체 데이터의 전체를 md5 hash 처리 합니다.

This module is designed to improve performance by processing files in chunk size. If the file size is more than 200000 bytes (0.2MB), the md5 hash is processed using the initial 100000 bytes (0.1MB) and the last 100000 bytes. If the size was smaller than that, md5 hashed the entire data.

Installation

npm install md5-lite --save
yarn add md5-lite
bower install md5-lite --save

Usage

Javascript

const {md5Lite} = require('md5-lite');
console.log(md5Lite('./filepath'));
0486c21a4d40d0f3b0bdad3925db439e

TypeScript

import {md5Lite} from 'md5-lite';
console.log(md5Lite('./filepath'))
0486c21a4d40d0f3b0bdad3925db439e

License

License

  • MIT license
  • Copyright 2020 © lahuman.

Keywords

md5

FAQs

Package last updated on 20 Jan 2021

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