javascriptでmd5するの結構めんどいのでAPI作った
使い方
const md5 = text => fetch('https://md5sum.deno.dev/' + text).then(r=>r.text())
console.log(await md5('abc'))
ソースコード
import { Md5 } from "https://deno.land/std@0.119.0/hash/md5.ts"
const headers = { 'Access-Control-Allow-Origin': '*' }
Deno.serve((req: Request) => new Response(new Md5().update(req.url.slice(24)).toString(), { headers }));