combo-url-parser
A util to parser comboed url
Last updated 10 years ago by maxbbn .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install combo-url-parser 
SYNC missed versions from official npm registry.

build status util to parse comboed url;

install

npm install combo-url-parser

useage

comboParser = require('combo-url-parser');
comboParser(url);

exambles

'/foo.js' > ['/foo.js]

'/??foo.js,bar.js' > ['/foo.js','/bar.js']

'/hello??foo.js,bar.js' > ['/hello/foo.js','/hello/bar.js']

'/hello??foo.js,d/bar.js' > ['/hello/foo.js','/hello/d/bar.js']

ChangeLog

0.1.3

  • 中间件,去掉配置,现在不需要配置 port
  • 优化逻辑,如果一个文件不存在,就返回 404, 方便问题定件
  • 使用第一个请求的 mime-type

0.1.2

  • 添加 content-type Header

0.1.1

  • 修复单个 combo 无法访问的问题
  • 如果 URL 中不符合parser规范, 返回 null

Current Tags

  • 0.3.0                                ...           latest (10 years ago)

14 Versions

  • 0.3.0                                ...           10 years ago
  • 0.2.6                                ...           10 years ago
  • 0.2.5                                ...           10 years ago
  • 0.2.4                                ...           10 years ago
  • 0.2.3                                ...           10 years ago
  • 0.2.2                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.3                                ...           11 years ago
  • 0.1.2                                ...           11 years ago
  • 0.1.1                                ...           11 years ago
  • 0.1.0                                ...           11 years ago
  • 0.0.2                                ...           12 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE