combo-url

0.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i combo-url

Weekly Downloads

79

Version

0.2.0

License

MIT

Last publish

Collaborators

  • popomore