Skip to content

popomore/combo-url

Repository files navigation

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.

About

resolve combo url

Resources

Stars

Watchers

Forks

Packages

No packages published