0.2.0 • Published 10 years ago

combo-url v0.2.0

Weekly downloads
9
License
MIT
Repository
github
Last release
10 years ago

combo-url

NPM version Build Status Build Status NPM downloads

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.