Repository
Current version released
2 years ago
Dependencies
deno.land/x
Versions
url_changer
URL CHANGER
<a href="/aaa">To aaa</a>
Do you want to change root?
import { urlChange } from "https://deno.land/x/url_changer/mod.ts"
const result = urlChange(`<a href="/aaa">To aaa</a>`, (url: string) => {
return "/new_root" + url
})
console.log(result)
// ->
// <html><head></head><body><a href="/new_root/aaa">To aaa</a></body></html>