Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/combo-url
resolve combo url
https://github.com/popomore/combo-url
Last synced: 3 months ago
JSON representation
resolve combo url
- Host: GitHub
- URL: https://github.com/popomore/combo-url
- Owner: popomore
- Created: 2014-08-15T04:32:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-08-15T05:18:02.000Z (over 10 years ago)
- Last Synced: 2024-10-05T01:01:35.333Z (3 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
# combo-url
[![NPM version](https://img.shields.io/npm/v/combo-url.svg?style=flat)](https://npmjs.org/package/combo-url)
[![Build Status](https://img.shields.io/travis/popomore/combo-url.svg?style=flat)](https://travis-ci.org/popomore/combo-url)
[![Build Status](https://img.shields.io/coveralls/popomore/combo-url?style=flat)](https://coveralls.io/r/popomore/combo-url)
[![NPM downloads](http://img.shields.io/npm/dm/combo-url.svg?style=flat)](https://npmjs.org/package/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'); // nullcombo.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.