Socket
Socket
Sign inDemoInstall

jubaclient

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jubaclient - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

6

index.js

@@ -6,2 +6,3 @@ #!/usr/bin/env node

const debug = util.debuglog('jubaclient');
const minimist = require('minimist');
const rpc = require('jubatus/lib/msgpack-rpc');

@@ -15,4 +16,5 @@ const app = require('./app');

let count = 0;
const [ service, method, port = '9190', host = 'localhost', name = '', timeout = '0' ] = process.argv.slice(2);
const client = rpc.createClient(Number(port), host, Number(timeout));
const argv = minimist(process.argv.slice(2), { p: 9190, h: 'localhost', n: '', t: 0 });
const { '_': [ service, method ], p: port, h: host, n: name, t: timeout } = argv;
const client = rpc.createClient(port, host, timeout);

@@ -19,0 +21,0 @@ const rl = readline.createInterface({ input: process.stdin })

{
"name": "jubaclient",
"version": "0.0.2",
"version": "0.1.0",
"description": "Jubatus CLI client (unofficial)",

@@ -30,3 +30,4 @@ "main": "index.js",

"dependencies": {
"jubatus": "^0.6.4"
"jubatus": "^0.6.4",
"minimist": "^1.2.0"
},

@@ -33,0 +34,0 @@ "devDependencies": {

@@ -32,4 +32,14 @@ # jubaclient

<code>jubaclient _service_ _method_ [_port_] [_host_] [_name_] [_timeoutSeconds_]</code>
<code>jubaclient _service_ _method_ [**-p** _port_] [**-h** _host_] [**-n** _name_] [**-t** _timeoutSeconds_]</code>
- <code>_service_</code>: sevice name (`classifier`, `nearest_neighbor`, etc.)
- <code>_method_</code>: service method (`get_status`, `train`, `get_k_center`, etc.)
- <code>**-p** _port_</code> : port number (default `9190`)
- <code>**-h** _host_</code> : hostname (default `localhost`)
- <code>**-n** _name_</code> : name of target cluster (default `''`)
- <code>**-t** _timeoutSeconds_</code> : timeout (default `0`)
## Examples ##
- save(id)

@@ -47,3 +57,3 @@ ```bash

```
- classifier#train()
- classifier#train(data)
```bash

@@ -58,3 +68,3 @@ jubaclient classifier train <<EOF | jq '.'

```
- classifier#classify()
- classifier#classify(data)
```bash

@@ -61,0 +71,0 @@ jubaclient classifier classify <<EOF | jq '.'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc