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

xmonitor

v1.0.3

Published

Monitor of workspace for your scripts with editor during runtime script

Downloads

3

Readme

XMonitor Logo

Auditor of your node.js scripts can read variables, reviewing objects, edit values and run functions. All functions present in easy web panel are available from any browsers and devices, all you need - is connect module on your server and open url address anywhere.

Just install

$ npm install xmonitor

or

$ npm install https://github.com/Piratnewtime/xmonitor/tarball/master

Step two

You need create only one server for take access to your scripts.

const webmonitor = require('xmonitor/master_server')(8080);

webmonitor.init_web('0.0.0.0', 4567);

Where 8080 is a socket's port for connect between user and server.

All arguments used as default.

But ⚡important, you must have a free 9696 port! Module use this port for local connect to server!

Step three

Add module to your work scripts

const monitor = require('xmonitor');

and credentials of users for access

monitor.ac({'admin': 'rwx', 'moder': 'rw'});

As you see for access need write login (use random key) and access level (r - read, w - modify, x - execution functions).

Flag r is always applied.

Next and most important - create points for control.

Example:

function testfn(a, b = 1){
	return a+b;
}

let a = 1;
var b = `Test
textarea`;
const c = [3, false, testfn, ['lol', 'ok'], 'string', {check: true, check2: 'true'}, [123, {abc: 'ok'}]];
var d = {
	fn: testfn,
	e: '4',
};
var f = {
	g: 599999999999999,
	j: {k: 6},
	l: [7],
};

monitor.add('😀 a', a, val => (a = val)); // number
monitor.add('b', b, val => (b = val)); // string
monitor.add('c', c, (val, i) => { c[i] = val; return c; }); // array
monitor.add('d', d); // object with string
monitor.add('f', f); // multiobjects
monitor.add('function', function(){ return 'Hello, bro!'; }); // function

Little bit about arguments for monitor.add

1-st is name for item as you like.

2-nd is your variable.

3-rd is custom function for update variable (option). Only if variable is not an object or function.

Finish!

Just start server and all your scripts from any folders!

And review it on address http://host:4567 with your key that was wrote before!