Permalink
Browse files

simple-jsonrpc-client -> simple-jsonrpc

  • Loading branch information...
1 parent f1fce43 commit c27a2de8f0a6892e30b4f276ae8e04aaa2bacb3b Alexander Tarmolov committed Jan 1, 2012
Showing with 13 additions and 12 deletions.
  1. +6 −5 README.md
  2. +2 −2 jsonrpc-client.js → jsonrpc.js
  3. +5 −5 package.json
View
@@ -1,22 +1,23 @@
-node-jsonrpc-client
+Simple JSON-RPC
================
-Simple JSON-RPC client.
+It is really simple JSON-RPC :)
+Now, only client but server coming soon...
Installation
------------
Simply use npm to install it
- npm install simple-jsonrpc-client
+ npm install simple-jsonrpc
or download the code from the repo and stick it in your project folder.
Simple usage :)
------------
- var JSONRPCClient = require('node-jsonrpc-client');
- var client = JSONRPCClient.create("https://my-json-rpc-server/path-to-something/");
+ var jsonrpc = require('simple-jsonrpc');
+ var client = jsonrpc.client("https://my-json-rpc-server/path-to-something/");
client.call('add', [1, 2], function (result) {
console.log(result);
});
@@ -1,5 +1,5 @@
/**
- * Simple JSON-RPC Client
+ * Simple JSON-RPC
*/
var JSONRPCClient, URL_REGEXP;
@@ -83,7 +83,7 @@ module.exports = {
* @param {String} url Server url
* @return {JSONRPCClient} client
*/
- create: function (url) {
+ client: function (url) {
var urlParts = url.match(URL_REGEXP),
scheme = urlParts[1] || 'http',
host = urlParts[2],
View
@@ -1,12 +1,12 @@
{
- "name" : "simple-jsonrpc-client",
- "version" : "0.0.4",
- "description" : "A simple JSON-RPC client.",
+ "name" : "simple-jsonrpc",
+ "version" : "0.0.1",
+ "description" : "A simple JSON-RPC.",
"author" : "Alexander Tarmolov <alexander@tarmolov.ru>",
- "main" : "./jsonrpc-client.js",
+ "main" : "./jsonrpc.js",
"repository" : {
"type" : "git",
- "url" : "http://github.com/tarmolov/node-simple-jsonrpc-client"
+ "url" : "http://github.com/tarmolov/simple-jsonrpc"
},
"licenses" : [
{

0 comments on commit c27a2de

Please sign in to comment.