Comments (5)
Just to point out that there is fork of js-spark-md5 that just changes what needs to be changed to make it ESM:
The diff is actually minimal: master...scx567888:js-spark-md5-es:master
You don't even have to change your imports if you alias the package in your package.json:
"dependencies": {
"spark-md5": "npm:[email protected]"
},
"devDependencies": {
"@types/spark-md5": "3.0.4"
}
I use PNPM, but I figure aliasing is the same in NPM and Yarn, or at least similiar.
from js-spark-md5.
Hello, you can take a look at this package. It is a copy for spark-md5.js
which Provide ESM.
import SparkMD5, { md5, md5Sum } from 'https://unpkg.com/[email protected]/dist/md5.js'
from js-spark-md5.
I have the same request as @NicBright.
I just checked @yutent suggestion, but the package’s README is in chinese, and the corresponding github repo was deleted (seems like the author wasn't happy with Github enforcing 2FA…). So this is not an option for me.
While I was searching for an ESM solution, I found md5-es package, but it doesn't provide incremental usage as sparkMD5 does (which is the feature we're using on our code). So I still fill like an official sparkMD5 ESM version would be nice.
from js-spark-md5.
I have the same request as @NicBright. I just checked @yutent suggestion, but the package’s README is in chinese, and the corresponding github repo was deleted (seems like the author wasn't happy with Github enforcing 2FA…). So this is not an option for me. While I was searching for an ESM solution, I found md5-es package, but it doesn't provide incremental usage as sparkMD5 does (which is the feature we're using on our code). So I still fill like an official sparkMD5 ESM version would be nice.
the repo is here, and just add an English Readme
.
from js-spark-md5.
the repo is here, and just add an
English Readme
.
thanks !
from js-spark-md5.
Related Issues (20)
- Streams HOT 3
- Different md5 for the same file HOT 6
- License issue HOT 4
- Speed comparison to js-md5 HOT 2
- Demo link problem
- Provide functionality for calculating MD5 hashes of files HOT 3
- Array buffer allocation failed
- Seems like it doesn't work in Edge for cyrillic symbols HOT 2
- spark.end(); The results after two executions are different HOT 2
- No tag or release for 3.0.1 HOT 2
- MD5 Computed In IE11 Not Steady HOT 1
- IE10 compute file md5 failed
- Is there a sample implementation for react native expo? HOT 1
- in IE is error HOT 1
- md5 error ( d41d8cd98f00b204e9800998ecf8427e for all big files than 600M) HOT 1
- Fix deprecated unescape
- Uncaught TypeError: Cannot read properties of undefined (reading 'ArrayBuffer')
- URIError: malformed URI sequence HOT 1
- 超大体积文件多线程计算 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-spark-md5.