combo-url
v0.2.0
Published
resolve combo url
Downloads
331
Readme
combo-url
resolve combo url such as ??a.js.b.js
Install
$ npm install combo-url -g
Usage
var combo = require('combo-url');
combo.isCombo('http://localhost?a.js'); // false
combo.parse('http://localhost?a.js'); // null
combo.isCombo('http://localhost??a.js.b.js'); // true
combo.parse('http://localhost??a.js.b.js');
// return
// {
// host: 'localhost',
// ... properties parsed by require('url')
// combo: ['/a.js', '/b.js']
// }
LISENCE
Copyright (c) 2014 popomore. Licensed under the MIT license.