npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

task-manager

v1.7.0

Published

task-manager for cluster or single application

Downloads

24

Readme

task-manager

NPM version Linux Status Dependency Status Coveralls

Task-manager for cluster or single application, through TCP, TLS, UDP, Unix domain socket.

Use nc, openssl, Telnet or whatever you want as client

Installation

Install through NPM

npm install task-manager

or

git clone git://github.com/hex7c0/task-manager.git

API

for TCP socket

var task = require('task-manager');

task(30000); // tcp port

open client for send commands

$ nc 127.0.0.1 30000

for TLS socket

var task = require('task-manager');

task(30000, {
  tls: {
    key: ''
  }
}); // tls port and cert key

open client for send commands

$ openssl s_client -connect 127.0.0.1:30000

for UDP socket

var task = require('task-manager');

task(30000, {
  udp: true
}); // udp port

open client for send commands

$ nc -u 127.0.0.1 30000

for unix domain socket

var task = require('task-manager');

task('s.sock'); // unix domain socket string

open client for send commands

$ nc -U s.sock

commands

show all commands

help

disconnect all children

disconnect

disconnect selected child, with his pid

disconnect 8564

fork a new child

fork

kill all children

kill

kill selected child, with his pid

kill 8564

get father memory

memory

show all pids

ps

get father title

title

set father title

title Ciao

get father uptime

uptime

process exit

exit

close TCP/socket listener

close

task(listen [, options])

listen

  • listen- Number | String Number for TCP, TLS, UDP port, String (path) for Unix Domain socket (default "required")

[options]

  • auth - String Accept commands only if auth is correct (default "disabled")
  • output- Boolean Flag for print info to console (main process) (default "disabled")
  • custom- String | RegExp Custom validation for client command (after built-in command) (default "disabled")
  • callback- Function Execute this function, if custom command is accepted (socket and command as arguments) (default "disabled")
  • json- Boolean Flag for print info in JSON (default "disabled")
  • tls- Object TLS options (default "disabled")
  • udp- Boolean Flag for use UDP socket (default "disabled")

Examples

Take a look at my examples

License GPLv3