defunctzombie / node-url

node.js core url module as a module
MIT License
375 stars 96 forks source link

Add Typescript types #41

Closed yordis closed 5 years ago

prmichaelsen commented 5 years ago

My recommendation would be to not use this library and instead install npm install --save-dev @types/node and use the built-in node url.

shepmaster commented 5 years ago

As obliquely alluded to above, you can use this library with the types from the @types/node package:

  "dependencies": {
    "url": "^0.11.0"
  },
  "devDependencies": {
    "@types/node": "^11.9.5"
  }
prmichaelsen commented 5 years ago

@shepmaster as far as I can tell, this project has not been updated for 3 years. You are likely better off using the built in node functions.

shepmaster commented 5 years ago

using the built in node functions.

@prmichaelsen How is it possible to use the Node functions in a web browser context? I use this package to have URL parsing and formatting tools in the browser.

prmichaelsen commented 5 years ago

In that case, carry on

yordis commented 5 years ago

I agree with @prmichaelsen people should use built-in Node url package.