Skip to content
Sections
>> Trisquel >> 软件包 >> etiona >> web >> node-url-parse
etiona  ] [  etiona-security  ] [  etiona-updates  ] [  nabia  ] [  nabia-security  ] [  nabia-updates  ] [  aramo  ]
[ 源代码: node-url-parse  ]

软件包: node-url-parse (1.2.0-1)

Parse URL in node using the URL module and in the browser using the DOM

The url-parse method exposes two different API interfaces. The url interface that you know from Node.js and the new URL interface that is available in the latest browsers.

Since 0.1 we've moved away from using the DOM's <a> element for URL parsing and moving to a full Regular Expression solution. The main reason for this change is to make the URL parser available in different JavaScript environments as you don't always have access to the DOM like Worker environments. This module still have a really small foot print as this module's main intention is to be bundled with client-side code. The only problem however with a RegExp based solution is that it required a lot of lookups causing major problems in FireFox. So the last and the current solution was a pure string parsing solution which chops up the URL in smaller pieces.

Node.js is an event-based server-side JavaScript engine.

其他与 node-url-parse 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: node-querystringify (>= 0.0.3)
    Querystringify - Small, simple but powerful query string parser
  • dep: node-requires-port (>= 0.0.1)
    checks if a protocol requires a certain port number to be added to an URL
  • dep: nodejs
    evented I/O for V8 javascript

下载 node-url-parse

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 13.0 kB55 kB [文件列表]