# rpc-node

> Client rpc for nodejs

Latest version **0.0.1** (published 2012-12-10) · 0 weekly downloads

## Install

```sh
npm install rpc-node
pnpm add rpc-node
yarn add rpc-node
bun add rpc-node
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-12-10 |
| First published | 2012-12-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+4 in 1 direct dependencies) |
| Install scripts | no |
| Author | C Borkert |
| Maintainers | dpweb |
| Keywords | util, nodejs, rpc |

## Links

- npm: https://www.npmjs.com/package/rpc-node
- Repository: https://github.com/dpweb/rpc-node
- npm.io page: https://npm.io/package/rpc-node

## Dependencies (1)

- [express](https://npm.io/package/express.md) 3.0.x

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2012-12-10

## README

###rpc-node    
Simple rpc for node/express    
    
Like this..    
    
###app.js
````js
	var express = require('express'), app = express();
	var server = require('http').createServer(app)
 	server.listen(85);

 	require('./rpc-node.js')(app, {
 		'/rpc/gettime': function(params){
 			return {e: null, r:new Date()}
 		}
 	})

 	app.get('/', function(r,s){
 		s.sendfile('index.html')
 	})
````

###index.html
````
<script src='/rpc'></script>
<div id='timeis'/>

<script>
	rpc('/rpc/gettime', function(e,r){
		console.log(r)
		document.getElementById('timeis').innerHTML = r;
	}, null)
</script>
````

---
_Source: https://npm.io/package/rpc-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
