combo-url

resolve combo url

Downloads
349
Stars
3
Committers
1

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.