Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nthread-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nthread-js - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "nthread-js",
"version": "0.0.2",
"version": "0.0.3",
"description": "Create real thread in Node Js from a lambda, file or external app",

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

@@ -60,8 +60,8 @@ # Nthread JS

| port | String | Get port
| address | String | Get local uri
| localAddress | String | Get local uro
| connect(string: uri, any: param1, ...) : Promise | Function: Promise | Make a connection to an external thread/app
| create(function: callback, any: param1, ...) : Promise | Function: Promise | Create a new thread from a callback
| load(string: filePath, any: param1, ...) : Promise | Function: Promise | Create a new thread from a file
| connection(function: callback) : Promise | Function: Promise | Wait a new external connection
| address | String | Get public uri
| localAddress | String | Get local uri
| connect(string: uri, any: param1, ...) : Promise | Function: Promise | Create a new connection to an external app
| create(function: callback, any: param1, ...) : Promise | Function: Promise | Create a new thread from the callback
| load(string: filePath, any: param1, ...) : Promise | Function: Promise | Create a new thread from the file
| connection(function: callback) : Promise | Function: Promise | Event called for each new external connection
| exit(number: code = 0) | Function | Close all thread and all connection

@@ -76,8 +76,8 @@

| params | String | Recover your initial parameters set from child thread
| send(any: data) | Function | Send data to the main thread
| response(function: callback) : Promise | Function: Promise | Wait response from the main thread
| ready(function: callback) : Promise | Function: Promise | It's an event called after child has finished to initialised
| stdout(function: callback) : Promise | Function: Promise | It's an event called if the thread write in process (ex: console.log)
| stderr(function: callback) : Promise | Function: Promise | It's an event called if the thread have an error in process (ex: console.error)
| exit(function: callback) : Promise | Function: Promise | It's an event called if the thread process has exit
| send(any: data) | Function | Send data to the child thread
| response(function: callback) : Promise | Function: Promise | Event called for each response from child thread
| ready(function: callback) : Promise | Function: Promise | Event called when the child has finished to initialised
| stdout(function: callback) : Promise | Function: Promise | Event called when the child thread write in process (ex: console.log)
| stderr(function: callback) : Promise | Function: Promise | Event called when the child thread have an error in process (ex: console.error)
| exit(function: callback) : Promise | Function: Promise | Event called when the child thread process has exit
| disconnect() | Function | Close child connection

@@ -84,0 +84,0 @@

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