Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ninjs-cmd

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ninjs-cmd

command line utils and apis

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.)

Keywords

FAQs

Package last updated on 29 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc