Giter Site home page Giter Site logo

Provide ESM build about js-spark-md5 HOT 5 OPEN

NicBright avatar NicBright commented on May 30, 2024
Provide ESM build

from js-spark-md5.

Comments (5)

diegovilar avatar diegovilar commented on May 30, 2024 1

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.

yutent avatar yutent commented on May 30, 2024

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.

mpellerin42 avatar mpellerin42 commented on May 30, 2024

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.

yutent avatar yutent commented on May 30, 2024

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.

crypto.web.js

from js-spark-md5.

mpellerin42 avatar mpellerin42 commented on May 30, 2024

the repo is here, and just add an English Readme.

crypto.web.js

thanks !

from js-spark-md5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.