Relative paths with fast-uri

node v14.20.1
version: master
endpointsharetweet
const uri = require('fast-uri') let parsed = uri.parse('../one/two.three?q1=a1&q2=a2#body') console.log(parsed) console.log(uri.serialize(parsed)) // Output // { // scheme : "uri", // userinfo : "user:pass", // host : "example.com", // port : 123, // path : "/one/two.three", // query : "q1=a1&q2=a2", // fragment : "body" // }
Loading…

no comments

    sign in to comment