ovax3 / node-restc-url

basic RestC url parsing plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RestC - URL

Install

npm install restc-url

Usage

var client = restc(
  {
    url: 'http://localhost:1337/hello'
  },
  require('restc-url').parser
);

will be equivalent to

var client = restc({
  hostname: 'localhost',
  port: 1337,
  path: '/hello'
});

About

basic RestC url parsing plugin


Languages

Language:JavaScript 100.0%