🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

ick

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ick - npm Package Compare versions

Comparing version

to
0.3.1

16

index.js

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

const stdin = enchannel.createStdinSubject(identity, c.config);
// const iopub = enchannel.createIOPubSubject(identity, kernel);
// const control = enchannel.createControlSubject(identity, kernel);
function createMessage(session, msg_type) {
const session = uuid.v4();
function createMessage(msg_type) {
const username = process.env.LOGNAME || process.env.USER ||

@@ -53,4 +53,2 @@ process.env.LNAME || process.env.USERNAME;

const sessionID = uuid.v4();
function isChildMessage(msg) {

@@ -62,3 +60,3 @@ return this.header.msg_id === msg.parent_header.msg_id;

const rl = readline.createInterface(process.stdin, process.stdout, (line, callback) => {
const completeRequest = createMessage(sessionID, 'complete_request');
const completeRequest = createMessage('complete_request');
completeRequest.content = {

@@ -94,3 +92,3 @@ code: line,

rl.on('line', (line) => {
const executeRequest = createMessage(sessionID, 'execute_request');
const executeRequest = createMessage('execute_request');
executeRequest.content = {

@@ -205,3 +203,3 @@ code: line,

rl.question(chalk.green(msg.prompt), response => {
const inputReply = createMessage(sessionID, 'input_reply');
const inputReply = createMessage('input_reply');
inputReply.content = {

@@ -227,3 +225,3 @@ value: response,

const kernelInfoRequest = createMessage(sessionID, 'kernel_info_request');
const kernelInfoRequest = createMessage('kernel_info_request');
const kernelReply = shell.filter(msg => msg.parent_header.msg_id === kernelInfoRequest.header.msg_id)

@@ -230,0 +228,0 @@ .map(msg => msg.content);

{
"name": "ick",
"version": "0.3.0",
"version": "0.3.1",
"description": "Interactive Console Experiment",

@@ -5,0 +5,0 @@ "main": "index.js",

# Interactive Console Experiments
![ick inline](https://cloud.githubusercontent.com/assets/836375/12740688/2ddc457e-c93b-11e5-811a-cf965490daac.png)
`ick` is an interactive console for Jupyter written in node.js.
This was put together to explore how to use `enchannel-zmq-backend` in an
interactive terminal.
## Installation
Make sure you have [zmq headers for your platform, build tools, yada yada](https://github.com/nteract/enchannel-zmq-backend#zeromq-dependency).
Make sure you have [zmq headers for your platform, following the instructions from enchannel-zmq-backend.](https://github.com/nteract/enchannel-zmq-backend#zeromq-dependency).

@@ -16,4 +15,2 @@ ```

:warning: This is full of bugs. Check out the issues to find out how to help!
## Running

@@ -20,0 +17,0 @@