Gathering detailed insights and metrics for @ndiinginc/url
Gathering detailed insights and metrics for @ndiinginc/url
Gathering detailed insights and metrics for @ndiinginc/url
Gathering detailed insights and metrics for @ndiinginc/url
npm install @ndiinginc/url
Typescript
Module System
Node Version
NPM Version
71.3
Supply Chain
99.5
Quality
75.1
Maintenance
100
Vulnerability
100
License
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
npm install @ndiinginc/url
URLSearchParams2
URL2
1// Usage
// Normal use
var searchParams=new URLSearchParams2('q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8')
// console.log(searchParams)
// URLSearchParams2 {
// q: 'new+url',
// oq: 'new+URL',
// aqs: 'chrome.0.69i59j0i512l9.1448j0j4',
// sourceid: 'chrome',
// ie: 'UTF-8'
// }
// Parse from URL
var searchParams=new URLSearchParams2('https://www.google.com/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url')
// console.log(searchParams)
// URLSearchParams2 {
// q: 'new+url',
// oq: 'new+URL',
// aqs: 'chrome.0.69i59j0i512l9.1448j0j4',
// sourceid: 'chrome',
// ie: 'UTF-8'
// }
// result are the same
1// Usage // Parse URL var url = new URL2('https://www.google.com/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url') // console.log(url) // URL2 { // href: 'https://www.google.com/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url', // protocol: 'https:', // scheme: 'https', // authority: '//www.google.com', // host: 'www.google.com', // pathname: '/search', // search: '?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8', // query: 'q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8', // hash: '#new+url', // fragment: 'new+url', // hostname: 'www.google.com', // port: 443, // origin: 'https://www.google.com', // searchParams: URLSearchParams2 { // q: 'new+url', // oq: 'new+URL', // aqs: 'chrome.0.69i59j0i512l9.1448j0j4', // sourceid: 'chrome', // ie: 'UTF-8' // }, // path: '/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url' // } // Without origin, fallback to local var url = new URL2('/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url') // console.log(url) // URL2 { // href: 'http://localhost/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url', // protocol: 'http:', // scheme: 'http', // authority: '//localhost', // host: 'localhost', // pathname: '/search', // search: '?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8', // query: 'q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8', // hash: '#new+url', // fragment: 'new+url', // hostname: 'localhost', // port: 80, // origin: 'http://localhost', // searchParams: URLSearchParams2 { // q: 'new+url', // oq: 'new+URL', // aqs: 'chrome.0.69i59j0i512l9.1448j0j4', // sourceid: 'chrome', // ie: 'UTF-8' // }, // path: '/search?q=new+url&oq=new+URL&aqs=chrome.0.69i59j0i512l9.1448j0j4&sourceid=chrome&ie=UTF-8#new+url' // }
No vulnerabilities found.
No security vulnerabilities found.