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

nv-sess-simple-cli

v1.4.10

Published

nv-sess-simple-cli ================== - simplified js-rewrited-version of nv-sess-easy(originally write in C) , less supported session-count, less performance ,but MORE supported data-type just for test - creat a websocket server project, based on uWebso

Downloads

16

Readme

nv-sess-simple-cli

  • simplified js-rewrited-version of nv-sess-easy(originally write in C) , less supported session-count, less performance ,but MORE supported data-type just for test
  • creat a websocket server project, based on uWebsocket
  • including browser-side code AND server-side code

install

  • npm install nv-sess-simple-cli -g

usage

tcp

    Usage: nv_sess_simple_cli_tcp [options] 
    Options:
        -h, --help        print some suggested tcp parameters

ipc (fast)

    Usage: nv_sess_simple_cli_creat_ipc_srv [options]
    Options:
        -f, --force_reinstall_deps        install dependancies without check node_modules ances, default false
        -s, --sessid                      srv name hint prefix,default "ipc"
        -w, --workdir                     workdir,default "./"
        -m, --max_client_cnt              max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
        -h, --help                        usage

nonssl (fast)

        Usage: nv_sess_simple_cli_creat_nonssl_srv [options]
        Options:
            -f, --force_reinstall_deps        install dependancies without check node_modules ances, default false
            -s, --sessid                      srv name hint prefix,default "nonssl"
            -w, --workdir                     workdir,default "./"
            -m, --max_client_cnt              max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
            -a, --ip                          listen ip addr, default None ""
            -p, --port                        listen port, default 38443
            -h, --help                        usage

ssl (slow)

    Usage: nv_sess_simple_cli_creat_ssl_srv [options] 
    Options:
        -f, --force_reinstall_deps        install dependancies without check node_modules ances, default false
        -s, --sessid                      srv name hint prefix,default "ssl"
        -w, --workdir                     workdir,default "./"
        -m, --max_client_cnt              max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
        -a, --ip                          listen ip addr, default None ""
        -p, --port                        listen port, default 38443
        -k, --key_file_name               ssl_certificate_key
        -c, --cert_file_name              ssl_certificate
        -P, --passphrase                  ssl passphrase, default None ""
        -h, --help                        usage

    nv-sess-simple-cli# 

using nginx (slow slow)

    Usage: nv_sess_simple_cli_creat_nginx_srv [options]
    Options:
        -f, --force_reinstall_deps        install dependancies without check node_modules ances, default false
        -u, --ngx_uname                   nginx username, default "www-data"
        -s, --sessid                      srv name hint prefix,default "ngx"
        -w, --workdir                     workdir,default "./"
        -m, --max_client_cnt              max permited client, DONT exceed 1000000, if one-process, DONT exceed 250000, default 500000
        -a, --ip                          listen ip addr, default None ""
        -p, --port                        listen port, default 38443
        -S, --secure                      enable ssl
        -k, --key_file_name               ssl_certificate_key
        -c, --cert_file_name              ssl_certificate
        -h, --help                        usage

example

creat 4 server

    mkdir nvsess
    cd nvsess

        mkdir ipc
        cd ipc
        nv_sess_simple_cli_creat_ipc_srv -s ipc
        cd ../

        mkdir nonssl
        cd nonssl
        nv_sess_simple_cli_creat_nonssl_srv -s nossl -a 192.168.1.145 -p 38443
        cd ../
        
        mkdir ipc
        cd ipc
        nv_sess_simple_cli_creat_ipc_srv -s ipc
        cd ../

        mkdir ssl
        cd ssl
        nv_sess_simple_cli_creat_ssl_srv -s ssl -a 192.168.1.145 -p 48443 -k ../../cert/ssl.key -c ../../cert/ssl.crt
        cd ../

        mkdir ngx
        cd ngx
        nv_sess_simple_cli_creat_nginx_srv -s ngx -a 192.168.1.145 -p 58443 -S -k ../../cert/ssl.key -c ../../cert/ssl.crt
        cd ../

one of them:

            #ls -l nonssl/
            total 180
            -rw-r--r-- 1 root root   121 May  9 13:03 buf-handle.js
            -rw-r--r-- 1 root root 71774 May  9 13:03 bwapi.js
            -rw-r--r-- 1 root root  1322 May  9 13:03 cfg.js
            -rw-r--r-- 1 root root 54986 May  9 13:03 eng.js
            -rw-r--r-- 1 root root   557 May  9 13:03 env-worker.js
            -rw-r--r-- 1 root root    95 May  9 13:03 front-access.json
            -rwxrwxrwx 1 root root   136 May  9 13:03 pm2_start.sh
            -rw-r--r-- 1 root root   141 May  9 13:03 publish-auth.js
            -rwxrwxrwx 1 root root   162 May  9 13:03 repl_start.sh
            -rw-r--r-- 1 root root   467 May  9 13:03 req-handle.js
            -rw-r--r-- 1 root root  2530 May  9 13:03 srv.js
            -rwxrwxrwx 1 root root   133 May  9 13:03 start.sh
            -rw-r--r-- 1 root root   343 May  9 13:03 tm-worker.js
            -rw-r--r-- 1 root root   146 May  9 13:03 upgrade-auth.js
            -rw-r--r-- 1 root root   420 May  9 13:03 val-handle.js

LICENSE

  • ISC