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 🙏

© 2025 – Pkg Stats / Ryan Hefner

web-terminaljs

v0.6.1

Published

Web terminal, control actions and modules

Downloads

24

Readme

web-terminaljs Version 0.6.1

It is a system for web terminal, control your nodes using jquery terminal create modules for your code: - restart only code of each module - not all nodejs - control memory - create your custom modules - delete modules - Repository Web TerminalJS - "comand> module install {name}"

you can control into nodejs in process with a terminaljs. you cant create custom modules for best control or especific cotrol. Not need restart programa, you can reload module and memory ist ok.

autor notes

This version is the base code, it is totally improvable. The project has particulars: jquery.min inside the project. I keep working to make it more professional. I hope you like it.

I agree to add new features and improvements to the code. Sorry if my code is not correct.

Install

npm install web-terminaljs

explample basic

// using librarys express,http and socket.io	
const wt = require('web-terminaljs');

//your service WEB
const app     = express();
app.listen();

//your service socket io
const IOserver  = http.createServer(app);
const io = libIO(IOserver);


const options =
 webEnable : true,
 port : 80,
 express,
 app,
 io,
 url : '/mi/private/path/uri/',
 login: true,
 modules : {
 	     "wtm_loginCrypto" : true
 }
}

//initialice web Terminal
cont webTerminal = new wt(options);

//web server listening
IOserver.listen(options.port);

explample other path

//path /    
...
    const options = 
 port : 80,
 express,
 app,
 io,
 url : '/',
 login: true,
 modules : {
 	     "wtm_loginCrypto" : true
 }
}
...

##example standalone

...
    const options = 
 port : 8080,
 login: true,
 modules : {
 	     "wtm_loginCrypto" : false
 }
}
...

options

//options
webEneable :  Enable Express,http web.                     Default Enable
express    :  Library express or compatible
http       :  Library HTTP or compatible
io         :  Library Socket.io 

login      : [true|false]
proto      : [http|https]
publicip   : [localhost|127.0.0.1|yourdomain.com...]
port       : [80|443|8080...]
path       : path by your custom modules or addons wtm
url        : path your uri terminal
verbose    : Level inital console
modules    : json { name_custonmodule : true, name_othercuston : false,... }
users      : For Login true, list Json USERs permit using terminal 

Core comands

  • mem : alias memory
  • memory : info memory process using
  • save : Send event save modules loaded [trues and falses]
  • restart : Restart process nodejs
  • poweroff : Shutdown nodejs
  • verbose : Level indicated your verbose terminal [0,9]
  • help : List all comands modules loaded
  • echo : Echo module
  • install : < options >
    • module : Install modules in your nodejs, in path custom modules
    • update : Update list oficial modules
    • remove : Unistall custom modules
    • search : Filter of list modules
  • module : < options >
    • load : Load new module in path
    • unload : Unload module in path
    • reload : Unload and load module in path
    • show : List all modules in memory and commands - description
    • list : List all modules Load and Unload in path
    • info : Description general pkg.

save

Its a core function but not working alone. you need crear a event listen ee.on(save:config)

wt.on('save:config', function(json_list){
    ...
/*
json_list{
 module_name1 : true,
 module_name2 : false,
 ...
}
*/
your code here
...
});

module custom

you can create new modules, you will can use wtm_default template to create custom

  • you can install:

customNameModule.js in options.path default /modules folder /modules/customNameModule.js

  • structure for new comannd:

      module.exports = {
      command : {
      	'example' : {
      		description : 'description module',
      		usage : 'howto use command',
      		auto  : ['argument']
      	}
      },
      example : function()...
      autoload : false
      }
    	

    !Important: "example" - its a same name for command and function.

  • structure for new module without command:

     module.exports = {
     	command : {},
     	load : function()...
     	unload : function()...
     	autoload : true
     }

!Important: load and unload functions its mandatory with autoload = true

install module

How to install new modules width using repository

Example install module memo

install update
install module memo

Example search module fs

install update
install search
install info fs
install module fs