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

ninjs-cmd

v0.0.2

Published

command line utils and apis

Downloads

7

Readme

ninjs-cmd

common platform commands runner

cmd

cmd wrapper - wraps commonly used commands using snapp/cproc to run commands async version: 0.0.1

NodeJS web: https://nodejs.org/api/child_process.html#child_process_asynchronous_process_creation

Starter cmd line starter web: http://www.makeuseof.com/tag/a-beginners-guide-to-the-windows-command-line/

15 everyday commands web: http://www.makeuseof.com/tag/15-cmd-commands-every-windows-user-know/

Microsoft command list web: https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true

cat (Unix) wiki: https://en.wikipedia.org/wiki/Cat_(Unix)

TIPS for cmd.exe console window web: http://www.makeuseof.com/tag/10-windows-command-line-tips-tricks-you-should-definitely-check-out/

Quick paths - copy/paste or drag dir or file from/to the command line

History - F7

Multiple commands ** commands DO NOT RUN simultaneously -> they run in series from left -> right

  • cmd1 && cmd2 (series success -> if cmd1 success -> run cmd2)
  • cmd1 || cmd2 (series error -> if cmd1 error -> run cmd2)
  • cmd1 & cmd2 (series all -> run cmd1 -> run cmd2)

Example. DIR xyzzy && Echo Found it! || Echo It's not there.

This will run the command DIR xyzzy If xyzzy exists, then "Found it!" will be displayed If xyzzy doesn’t exist, then "It’s not there." will be displayed.

Fullscreen - Alt+Enter

term: switches optional extensions to a command

term: syntax styles -> BSD and UNIX web: http://www.binarytides.com/linux-ps-command/

add switches to configure BSD style - The options in bsd style syntax ARE NOT PRECEDED WITH A DASH. (ie, ps aux) UNIX/LINUX style - The options in linux style syntax ARE PRECEDED WITH A DASH as usual. (ie. ps -ef) ** It is okay to mix both the syntax styles on linux systems. For example "ps ax -f". "ps aux" is not the same as "ps -aux". For example "-u" is used to show process of that user. But "u" means show detailed information.

perf: takes about 100ms to run a cmd (depends on cmd, system, etc.)