You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ShellJS unofficially has the capacity for plugins (the API is likely to change a
bit) since v0.7.1. Although we don't recommend developing for this yet, this
plugin is designed to test that API, and we will adapt it along with changes to
ShellJS up until official plugin support. To use this plugin, you must use
exactly version v0.7.1 (although, eventually this will support v1.0.0+).
To use this plugin in your project, include it like so:
varshell=require('shelljs');require('shelljs-plugin-open');// Ex. usage:shell.open('file.txt');// the plugin is now available!
Supported systems
Linux (all variants)
macOS
Windows
This is supported for Node v0.11+
Writing plugins
If you're interested in taking a look at the current state of the plugin API,
take a look at index.js. This has helpful comments explaining the
necessary boilerplate for writing a plugin. For an example usage of the plugin,
take a look at test/test.js.
About
An example shelljs-plugin to open a file with its default application