combo-url-parser

A util to parser comboed url

npm install combo-url-parser
12 downloads in the last day
31 downloads in the last week
66 downloads in the last month

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.2

  • 添加 content-type Header

0.1.1

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