Cross.Platform
made by https://0x3d.site
GitHub - shelljs/shelljs: :shell: Portable Unix shell commands for Node.js:shell: Portable Unix shell commands for Node.js. Contribute to shelljs/shelljs development by creating an account on GitHub.
Visit Site
GitHub - shelljs/shelljs: :shell: Portable Unix shell commands for Node.js
ShellJS - Unix shell commands for Node.js
ShellJS is a portable (Windows/Linux/macOS) implementation of Unix shell commands on top of the Node.js API. You can use it to eliminate your shell script's dependency on Unix while still keeping its familiar and powerful commands. You can also install it globally so you can run it from outside Node projects - say goodbye to those gnarly Bash scripts!
ShellJS is proudly tested on every node release since v8
!
The project is unit-tested and battle-tested in projects like:
- Firebug - Firefox's infamous debugger
- JSHint & ESLint - popular JavaScript linters
- Zepto - jQuery-compatible JavaScript library for modern browsers
- Yeoman - Web application stack and development tool
- Deployd.com - Open source PaaS for quick API backend generation
- And many more.
If you have feedback, suggestions, or need help, feel free to post in our issue tracker.
Think ShellJS is cool? Check out some related projects in our Wiki page!
Upgrading from an older version? Check out our breaking changes page to see what changes to watch out for while upgrading.
Command line use
If you just want cross platform UNIX commands, checkout our new project
shelljs/shx, a utility to expose shelljs
to
the command line.
For example:
$ shx mkdir -p foo
$ shx touch foo/bar.txt
$ shx rm -rf foo
Plugin API
ShellJS now supports third-party plugins! You can learn more about using plugins and writing your own ShellJS commands in the wiki.
A quick note about the docs
For documentation on all the latest features, check out our README. To read docs that are consistent with the latest release, check out the npm page.
Installing
Via npm:
$ npm install [-g] shelljs
Examples
var shell = require('shelljs');
if (!shell.which('git')) {
shell.echo('Sorry, this script requires git');
shell.exit(1);
}
// Copy files to release dir
shell.rm('-rf', 'out/Release');
shell.cp('-R', 'stuff/', 'out/Release');
// Replace macros in each .js file
shell.cd('lib');
shell.ls('*.js').forEach(function (file) {
shell.sed('-i', 'BUILD_VERSION', 'v0.1.2', file);
shell.sed('-i', /^.*REMOVE_THIS_LINE.*$/, '', file);
shell.sed('-i', /.*REPLACE_LINE_WITH_MACRO.*\n/, shell.cat('macro.js'), file);
});
shell.cd('..');
// Run external tool synchronously
if (shell.exec('git commit -am "Auto-commit"').code !== 0) {
shell.echo('Error: Git commit failed');
shell.exit(1);
}
Exclude options
If you need to pass a parameter that looks like an option, you can do so like:
shell.grep('--', '-v', 'path/to/file'); // Search for "-v", no grep options
shell.cp('-R', '-dir', 'outdir'); // If already using an option, you're done
Global vs. Local
We no longer recommend using a global-import for ShellJS (i.e.
require('shelljs/global')
). While still supported for convenience, this
pollutes the global namespace, and should therefore only be used with caution.
Instead, we recommend a local import (standard for npm packages):
var shell = require('shelljs');
shell.echo('hello world');
Alternatively, we also support importing as a module with:
import shell from 'shelljs';
shell.echo('hello world');
Command reference
All commands run synchronously, unless otherwise stated.
All commands accept standard bash globbing characters (*
, ?
, etc.),
compatible with the node glob
module.
For less-commonly used commands and features, please check out our wiki page.
cat([options,] file [, file ...])
cat([options,] file_array)
Available options:
-n
: number all output lines
Examples:
var str = cat('file*.txt');
var str = cat('file1', 'file2');
var str = cat(['file1', 'file2']); // same as above
Returns a ShellString containing the given file, or a concatenated string containing the files if more than one file is given (a new line character is introduced between each file).
cd([dir])
Changes to directory dir
for the duration of the script. Changes to home
directory if no argument is supplied. Returns a
ShellString to indicate success or failure.
chmod([options,] octal_mode || octal_string, file)
chmod([options,] symbolic_mode, file)
Available options:
-v
: output a diagnostic for every file processed-c
: like verbose, but report only when a change is made-R
: change files and directories recursively
Examples:
chmod(755, '/Users/brandon');
chmod('755', '/Users/brandon'); // same as above
chmod('u+x', '/Users/brandon');
chmod('-R', 'a-w', '/Users/brandon');
Alters the permissions of a file or directory by either specifying the absolute permissions in octal form or expressing the changes in symbols. This command tries to mimic the POSIX behavior as much as possible. Notable exceptions:
- In symbolic modes,
a-r
and-r
are identical. No consideration is given to theumask
. - There is no "quiet" option, since default behavior is to run silent.
- Windows OS uses a very different permission model than POSIX.
chmod()
does its best on Windows, but there are limits to how file permissions can be set. Note that WSL (Windows subsystem for Linux) does follow POSIX, so cross-platform compatibility should not be a concern there.
Returns a ShellString indicating success or failure.
cp([options,] source [, source ...], dest)
cp([options,] source_array, dest)
Available options:
-f
: force (default behavior)-n
: no-clobber-u
: only copy ifsource
is newer thandest
-r
,-R
: recursive-L
: follow symlinks-P
: don't follow symlinks-p
: preserve file mode, ownership, and timestamps
Examples:
cp('file1', 'dir1');
cp('-R', 'path/to/dir/', '~/newCopy/');
cp('-Rf', '/tmp/*', '/usr/local/*', '/home/tmp');
cp('-Rf', ['/tmp/*', '/usr/local/*'], '/home/tmp'); // same as above
Copies files. Returns a ShellString indicating success or failure.
pushd([options,] [dir | '-N' | '+N'])
Available options:
-n
: Suppresses the normal change of directory when adding directories to the stack, so that only the stack is manipulated.-q
: Suppresses output to the console.
Arguments:
dir
: Sets the current working directory to the top of the stack, then executes the equivalent ofcd dir
.+N
: Brings the Nth directory (counting from the left of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.-N
: Brings the Nth directory (counting from the right of the list printed by dirs, starting with zero) to the top of the list by rotating the stack.
Examples:
// process.cwd() === '/usr'
pushd('/etc'); // Returns /etc /usr
pushd('+1'); // Returns /usr /etc
Save the current directory on the top of the directory stack and then cd
to dir
. With no arguments, pushd
exchanges the top two directories. Returns an array of paths in the stack.
popd([options,] ['-N' | '+N'])
Available options:
-n
: Suppress the normal directory change when removing directories from the stack, so that only the stack is manipulated.-q
: Suppresses output to the console.
Arguments:
+N
: Removes the Nth directory (counting from the left of the list printed by dirs), starting with zero.-N
: Removes the Nth directory (counting from the right of the list printed by dirs), starting with zero.
Examples:
echo(process.cwd()); // '/usr'
pushd('/etc'); // '/etc /usr'
echo(process.cwd()); // '/etc'
popd(); // '/usr'
echo(process.cwd()); // '/usr'
When no arguments are given, popd
removes the top directory from the stack and performs a cd
to the new top directory. The elements are numbered from 0, starting at the first directory listed with dirs (i.e., popd
is equivalent to popd +0
). Returns an array of paths in the stack.
dirs([options | '+N' | '-N'])
Available options:
-c
: Clears the directory stack by deleting all of the elements.-q
: Suppresses output to the console.
Arguments:
+N
: Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.-N
: Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
Display the list of currently remembered directories. Returns an array of paths in the stack, or a single path if +N
or -N
was specified.
See also: pushd
, popd
echo([options,] string [, string ...])
Available options:
-e
: interpret backslash escapes (default)-n
: remove trailing newline from output
Examples:
echo('hello world');
var str = echo('hello world');
echo('-n', 'no newline at end');
Prints string
to stdout, and returns a ShellString.
exec(command [, options] [, callback])
Available options:
async
: Asynchronous execution. If a callback is provided, it will be set totrue
, regardless of the passed value (default:false
).fatal
: Exit upon error (default:false
).silent
: Do not echo program output to console (default:false
).encoding
: Character encoding to use. Affects the values returned to stdout and stderr, and what is written to stdout and stderr when not in silent mode (default:'utf8'
).- and any option available to Node.js's
child_process.exec()
Examples:
var version = exec('node --version', {silent:true}).stdout;
var child = exec('some_long_running_process', {async:true});
child.stdout.on('data', function(data) {
/* ... do something with data ... */
});
exec('some_long_running_process', function(code, stdout, stderr) {
console.log('Exit code:', code);
console.log('Program output:', stdout);
console.log('Program stderr:', stderr);
});
Executes the given command
synchronously, unless otherwise specified.
When in synchronous mode, this returns a ShellString.
Otherwise, this returns the child process object, and the callback
receives the arguments (code, stdout, stderr)
.
Not seeing the behavior you want? exec()
runs everything through sh
by default (or cmd.exe
on Windows), which differs from bash
. If you
need bash-specific behavior, try out the {shell: 'path/to/bash'}
option.
Security note: as shell.exec()
executes an arbitrary string in the
system shell, it is critical to properly sanitize user input to avoid
command injection. For more context, consult the Security
Guidelines.
find(path [, path ...])
find(path_array)
Examples:
find('src', 'lib');
find(['src', 'lib']); // same as above
find('.').filter(function(file) { return file.match(/\.js$/); });
Returns a ShellString (with array-like properties) of all files (however deep) in the given paths.
The main difference from ls('-R', path)
is that the resulting file names
include the base directories (e.g., lib/resources/file1
instead of just file1
).
grep([options,] regex_filter, file [, file ...])
grep([options,] regex_filter, file_array)
Available options:
-v
: Invertregex_filter
(only print non-matching lines).-l
: Print only filenames of matching files.-i
: Ignore case.-n
: Print line numbers.
Examples:
grep('-v', 'GLOBAL_VARIABLE', '*.js');
grep('GLOBAL_VARIABLE', '*.js');
Reads input string from given files and returns a
ShellString containing all lines of the @ file that match
the given regex_filter
.
head([{'-n': <num>},] file [, file ...])
head([{'-n': <num>},] file_array)
Available options:
-n <num>
: Show the first<num>
lines of the files
Examples:
var str = head({'-n': 1}, 'file*.txt');
var str = head('file1', 'file2');
var str = head(['file1', 'file2']); // same as above
Read the start of a file
. Returns a ShellString.
ln([options,] source, dest)
Available options:
-s
: symlink-f
: force
Examples:
ln('file', 'newlink');
ln('-sf', 'file', 'existing');
Links source
to dest
. Use -f
to force the link, should dest
already
exist. Returns a ShellString indicating success or
failure.
ls([options,] [path, ...])
ls([options,] path_array)
Available options:
-R
: recursive-A
: all files (include files beginning with.
, except for.
and..
)-L
: follow symlinks-d
: list directories themselves, not their contents-l
: provides more details for each file. Specifically, each file is represented by a structured object with separate fields for file metadata (seefs.Stats
). The return value also overrides.toString()
to resemblels -l
's output format for human readability, but programmatic usage should depend on the stable object format rather than the.toString()
representation.
Examples:
ls('projs/*.js');
ls('projs/**/*.js'); // Find all js files recursively in projs
ls('-R', '/users/me', '/tmp');
ls('-R', ['/users/me', '/tmp']); // same as above
ls('-l', 'file.txt'); // { name: 'file.txt', mode: 33188, nlink: 1, ...}
Returns a ShellString (with array-like properties) of all
the files in the given path
, or files in the current directory if no
path
is provided.
mkdir([options,] dir [, dir ...])
mkdir([options,] dir_array)
Available options:
-p
: full path (and create intermediate directories, if necessary)
Examples:
mkdir('-p', '/tmp/a/b/c/d', '/tmp/e/f/g');
mkdir('-p', ['/tmp/a/b/c/d', '/tmp/e/f/g']); // same as above
Creates directories. Returns a ShellString indicating success or failure.
mv([options ,] source [, source ...], dest')
mv([options ,] source_array, dest')
Available options:
-f
: force (default behavior)-n
: no-clobber
Examples:
mv('-n', 'file', 'dir/');
mv('file1', 'file2', 'dir/');
mv(['file1', 'file2'], 'dir/'); // same as above
Moves source
file(s) to dest
. Returns a ShellString
indicating success or failure.
pwd()
Returns the current directory as a ShellString.
rm([options,] file [, file ...])
rm([options,] file_array)
Available options:
-f
: force-r, -R
: recursive
Examples:
rm('-rf', '/tmp/*');
rm('some_file.txt', 'another_file.txt');
rm(['some_file.txt', 'another_file.txt']); // same as above
Removes files. Returns a ShellString indicating success or failure.
sed([options,] search_regex, replacement, file [, file ...])
sed([options,] search_regex, replacement, file_array)
Available options:
-i
: Replace contents offile
in-place. Note that no backups will be created!
Examples:
sed('-i', 'PROGRAM_VERSION', 'v0.1.3', 'source.js');
Reads an input string from file
s, line by line, and performs a JavaScript replace()
on
each of the lines from the input string using the given search_regex
and replacement
string or
function. Returns the new ShellString after replacement.
Note:
Like unix sed
, ShellJS sed
supports capture groups. Capture groups are specified
using the $n
syntax:
sed(/(\w+)\s(\w+)/, '$2, $1', 'file.txt');
Also, like unix sed
, ShellJS sed
runs replacements on each line from the input file
(split by '\n') separately, so search_regex
es that span more than one line (or include '\n')
will not match anything and nothing will be replaced.
set(options)
Available options:
+/-e
: exit upon error (config.fatal
)+/-v
: verbose: show all commands (config.verbose
)+/-f
: disable filename expansion (globbing)
Examples:
set('-e'); // exit upon first error
set('+e'); // this undoes a "set('-e')"
Sets global configuration variables.
sort([options,] file [, file ...])
sort([options,] file_array)
Available options:
-r
: Reverse the results-n
: Compare according to numerical value
Examples:
sort('foo.txt', 'bar.txt');
sort('-r', 'foo.txt');
Return the contents of the file
s, sorted line-by-line as a
ShellString. Sorting multiple files mixes their content
(just as unix sort
does).
tail([{'-n': <num>},] file [, file ...])
tail([{'-n': <num>},] file_array)
Available options:
-n <num>
: Show the last<num>
lines offile
s
Examples:
var str = tail({'-n': 1}, 'file*.txt');
var str = tail('file1', 'file2');
var str = tail(['file1', 'file2']); // same as above
Read the end of a file
. Returns a ShellString.
tempdir()
Examples:
var tmp = tempdir(); // "/tmp" for most *nix platforms
Searches and returns string containing a writeable, platform-dependent temporary directory. Follows Python's tempfile algorithm.
test(expression)
Available expression primaries:
'-b', 'path'
: true if path is a block device'-c', 'path'
: true if path is a character device'-d', 'path'
: true if path is a directory'-e', 'path'
: true if path exists'-f', 'path'
: true if path is a regular file'-L', 'path'
: true if path is a symbolic link'-p', 'path'
: true if path is a pipe (FIFO)'-S', 'path'
: true if path is a socket
Examples:
if (test('-d', path)) { /* do something with dir */ };
if (!test('-f', path)) continue; // skip if it's not a regular file
Evaluates expression
using the available primaries and returns
corresponding boolean value.
ShellString.prototype.to(file)
Examples:
cat('input.txt').to('output.txt');
Analogous to the redirection operator >
in Unix, but works with
ShellStrings
(such as those returned by cat
, grep
, etc.). Like Unix
redirections, to()
will overwrite any existing file! Returns the same
ShellString this operated on, to support chaining.
ShellString.prototype.toEnd(file)
Examples:
cat('input.txt').toEnd('output.txt');
Analogous to the redirect-and-append operator >>
in Unix, but works with
ShellStrings
(such as those returned by cat
, grep
, etc.). Returns the
same ShellString this operated on, to support chaining.
touch([options,] file [, file ...])
touch([options,] file_array)
Available options:
-a
: Change only the access time-c
: Do not create any files-m
: Change only the modification time{'-d': someDate}
,{date: someDate}
: Use aDate
instance (ex.someDate
) instead of current time{'-r': file}
,{reference: file}
: Usefile
's times instead of current time
Examples:
touch('source.js');
touch('-c', 'path/to/file.js');
touch({ '-r': 'referenceFile.txt' }, 'path/to/file.js');
touch({ '-d': new Date('December 17, 1995 03:24:00'), '-m': true }, 'path/to/file.js');
touch({ date: new Date('December 17, 1995 03:24:00') }, 'path/to/file.js');
Update the access and modification times of each file to the current time.
A file argument that does not exist is created empty, unless -c
is supplied.
This is a partial implementation of
touch(1)
. Returns a
ShellString indicating success or failure.
uniq([options,] [input, [output]])
Available options:
-i
: Ignore case while comparing-c
: Prefix lines by the number of occurrences-d
: Only print duplicate lines, one for each group of identical lines
Examples:
uniq('foo.txt');
uniq('-i', 'foo.txt');
uniq('-cd', 'foo.txt', 'bar.txt');
Filter adjacent matching lines from input
. Returns a
ShellString.
which(command)
Examples:
var nodeExec = which('node');
Searches for command
in the system's PATH
. On Windows, this uses the
PATHEXT
variable to append the extension if it's not already executable.
Returns a ShellString containing the absolute path to
command
.
exit(code)
Exits the current process with the given exit code
.
error()
Tests if error occurred in the last command. Returns a truthy value if an error returned, or a falsy value otherwise.
Note: do not rely on the
return value to be an error message. If you need the last error message, use
the .stderr
attribute from the last command's return value instead.
errorCode()
Returns the error code from the last command.
ShellString(str)
Examples:
var foo = new ShellString('hello world');
This is a dedicated type returned by most ShellJS methods, which wraps a
string (or array) value. This has all the string (or array) methods, but
also exposes extra methods: .to()
,
.toEnd()
, and all the pipe-able methods
(ex. .cat()
, .grep()
, etc.). This can be easily converted into a string
by calling .toString()
.
This type also exposes the corresponding command's stdout, stderr, and
return status code via the .stdout
(string), .stderr
(string), and
.code
(number) properties respectively.
env['VAR_NAME']
Object containing environment variables (both getter and setter). Shortcut
to process.env
.
Pipes
Examples:
grep('foo', 'file1.txt', 'file2.txt').sed(/o/g, 'a').to('output.txt');
echo('files with o\'s in the name:\n' + ls().grep('o'));
cat('test.js').exec('node'); // pipe to exec() call
Commands can send their output to another command in a pipe-like fashion.
sed
, grep
, cat
, exec
, to
, and toEnd
can appear on the right-hand
side of a pipe. Pipes can be chained.
Configuration
config.silent
Example:
var sh = require('shelljs');
var silentState = sh.config.silent; // save old silent state
sh.config.silent = true;
/* ... */
sh.config.silent = silentState; // restore old silent state
Suppresses all command output if true
, except for echo()
calls.
Default is false
.
config.fatal
Example:
require('shelljs/global');
config.fatal = true; // or set('-e');
cp('this_file_does_not_exist', '/dev/null'); // throws Error here
/* more commands... */
If true
, the script will throw a Javascript error when any shell.js
command encounters an error. Default is false
. This is analogous to
Bash's set -e
.
config.verbose
Example:
config.verbose = true; // or set('-v');
cd('dir/');
rm('-rf', 'foo.txt', 'bar.txt');
exec('echo hello');
Will print each command as follows:
cd dir/
rm -rf foo.txt bar.txt
exec echo hello
config.globOptions (deprecated)
Deprecated: we recommend that you do not edit config.globOptions
.
Support for this configuration option may be changed or removed in a future
ShellJS release.
Example:
config.globOptions = {nodir: true};
config.globOptions
changes how ShellJS expands glob (wildcard)
expressions. See
node-glob
for available options. Be aware that modifying config.globOptions
may
break ShellJS functionality.
config.reset()
Example:
var shell = require('shelljs');
// Make changes to shell.config, and do stuff...
/* ... */
shell.config.reset(); // reset to original state
// Do more stuff, but with original settings
/* ... */
Reset shell.config
to the defaults:
{
fatal: false,
globOptions: {},
maxdepth: 255,
noglob: false,
silent: false,
verbose: false,
}
Team
Nate Fischer | Brandon Freitag |
Articlesto learn more about the cross-platform concepts.
- 1Introduction to Cross-Platform Development: What You Need to Know
- 2Top Cross-Platform Development Frameworks: A Comparative Analysis
- 3React Native vs. Flutter: Which Framework is Right for You?
- 4Cross-Platform Development with Node.js: A Complete Guide
- 5Cross-Platform App Development with Kotlin Multiplatform: A Complete Guide
- 6Using Electron for Cross-Platform Desktop Applications: A Complete Guide
- 7Cross-Platform Mobile Apps vs. Native Apps: Pros and Cons
- 8Cross-Platform App Development for IoT: A New Frontier
- 9Using Progressive Web Apps (PWAs) for Cross-Platform Development
- 10Monetizing Cross-Platform Apps: Strategies for Success
Resourceswhich are currently available to browse on.
mail [email protected] to add your project or resources here 🔥.
- 1Accelerated Container Application Development
https://www.docker.com/
Docker is a platform designed to help developers build, share, and run container applications. We handle the tedious setup, so you can focus on the code.
- 2Get running processes
https://github.com/sindresorhus/ps-list
Get running processes. Contribute to sindresorhus/ps-list development by creating an account on GitHub.
- 3Get the path to the user home directory
https://github.com/sindresorhus/user-home
Get the path to the user home directory. Contribute to sindresorhus/user-home development by creating an account on GitHub.
- 4Recursive version of fs.readdir with streaming api.
https://github.com/paulmillr/readdirp
Recursive version of fs.readdir with streaming api. - paulmillr/readdirp
- 5Tips, tricks, and resources for working with Node.js, and the start of an ongoing conversation on how we can improve the Node.js experience on Microsoft platforms.
https://github.com/Microsoft/nodejs-guidelines
Tips, tricks, and resources for working with Node.js, and the start of an ongoing conversation on how we can improve the Node.js experience on Microsoft platforms. - microsoft/nodejs-guidelines
- 6fs with incremental backoff on EMFILE
https://github.com/isaacs/node-graceful-fs
fs with incremental backoff on EMFILE. Contribute to isaacs/node-graceful-fs development by creating an account on GitHub.
- 7:rocket: Upgrade npm on Windows
https://github.com/felixrieseberg/npm-windows-upgrade
:rocket: Upgrade npm on Windows. Contribute to felixrieseberg/npm-windows-upgrade development by creating an account on GitHub.
- 8Features • GitHub Actions
https://github.com/features/actions
Easily build, package, release, update, and deploy your project in any language—on GitHub or any external system—without having to run code yourself.
- 9Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
https://github.com/tporadowski/redis
Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Se...
- 10:rage2: make the keys on an object path.sep agnostic.
https://github.com/bcoe/any-path
:rage2: make the keys on an object path.sep agnostic. - bcoe/any-path
- 11Cross-platform `/dev/null`
https://github.com/sindresorhus/dev-null-cli
Cross-platform `/dev/null`. Contribute to sindresorhus/dev-null-cli development by creating an account on GitHub.
- 12Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()`
https://github.com/sindresorhus/random-bytes-readable-stream
Creates a readable stream producing cryptographically strong pseudo-random data using `crypto.randomBytes()` - sindresorhus/random-bytes-readable-stream
- 13Check if the process is running with elevated privileges
https://github.com/sindresorhus/is-elevated
Check if the process is running with elevated privileges - sindresorhus/is-elevated
- 14Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data
https://github.com/sindresorhus/noop-stream
Create a readable Node.js stream that produces no data (or optionally blank data) or a writable stream that discards data - sindresorhus/noop-stream
- 15Returns true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests)
https://github.com/jonschlinkert/is-windows
Returns true if the platform is Windows (and Cygwin or MSYS/MinGW for unit tests) - jonschlinkert/is-windows
- 16Access the system clipboard (copy/paste)
https://github.com/sindresorhus/clipboard-cli
Access the system clipboard (copy/paste). Contribute to sindresorhus/clipboard-cli development by creating an account on GitHub.
- 17Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
https://github.com/sindresorhus/is-wsl
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows) - sindresorhus/is-wsl
- 18Like which(1) unix command. Find the first instance of an executable in the PATH.
https://github.com/npm/node-which
Like which(1) unix command. Find the first instance of an executable in the PATH. - npm/node-which
- 19Colored symbols for various log levels
https://github.com/sindresorhus/log-symbols
Colored symbols for various log levels. Contribute to sindresorhus/log-symbols development by creating an account on GitHub.
- 20Read and Write to the Windows registry in-process from Node.js. Easily set application file associations and other goodies.
https://github.com/CatalystCode/windows-registry-node
Read and Write to the Windows registry in-process from Node.js. Easily set application file associations and other goodies. - CatalystCode/windows-registry-node
- 21Open stuff like URLs, files, executables. Cross-platform.
https://github.com/sindresorhus/open
Open stuff like URLs, files, executables. Cross-platform. - sindresorhus/open
- 22Fabulously kill processes. Cross-platform.
https://github.com/sindresorhus/fkill
Fabulously kill processes. Cross-platform. Contribute to sindresorhus/fkill development by creating an account on GitHub.
- 23:package: Install C++ Build Tools for Windows using npm
https://github.com/felixrieseberg/windows-build-tools
:package: Install C++ Build Tools for Windows using npm - felixrieseberg/windows-build-tools
- 24Install WSL
https://docs.microsoft.com/en-us/windows/wsl/install-win10
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
- 25Unicode stdout on Windows command prompt · Issue #7940 · nodejs/node-v0.x-archive
https://github.com/nodejs/node-v0.x-archive/issues/7940
With Node.js 0.10.28 running the following: node -e "process.stdout.write('✔');" Outputs ✔ on OS X, but only shows the following on Windows 8.1 command prompt: It would be very useful if Unicode ch...
- 26Copy files
https://github.com/sindresorhus/cpy
Copy files. Contribute to sindresorhus/cpy development by creating an account on GitHub.
- 27Look up environment settings specific to different operating systems.
https://github.com/npm/osenv
Look up environment settings specific to different operating systems. - npm/osenv
- 28Unicode symbols with fallbacks for older terminals
https://github.com/sindresorhus/figures
Unicode symbols with fallbacks for older terminals - sindresorhus/figures
- 29Node.js — Download Node.js®
https://nodejs.org/en/download/
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- 30Get the username of the current user
https://github.com/sindresorhus/username
Get the username of the current user. Contribute to sindresorhus/username development by creating an account on GitHub.
- 31Check if a process is running
https://github.com/sindresorhus/process-exists
Check if a process is running. Contribute to sindresorhus/process-exists development by creating an account on GitHub.
- 32when you want to fire an event no matter how a process exits.
https://github.com/tapjs/signal-exit
when you want to fire an event no matter how a process exits. - tapjs/signal-exit
- 33Make a directory and its parents if needed - Think `mkdir -p`
https://github.com/sindresorhus/make-dir
Make a directory and its parents if needed - Think `mkdir -p` - sindresorhus/make-dir
- 34Get the name of the current operating system. Example: macOS Sierra
https://github.com/sindresorhus/os-name
Get the name of the current operating system. Example: macOS Sierra - sindresorhus/os-name
- 35node module that provides access to the Windows Registry through the REG commandline tool
https://github.com/fresc81/node-winreg
node module that provides access to the Windows Registry through the REG commandline tool - fresc81/node-winreg
- 36Automated installation of the Microsoft IE App Compat virtual machines
https://github.com/amichaelparker/ievms
Automated installation of the Microsoft IE App Compat virtual machines - amichaelparker/ievms
- 37Human-friendly process signals
https://github.com/ehmicky/human-signals
Human-friendly process signals. Contribute to ehmicky/human-signals development by creating an account on GitHub.
- 38Gulp.js command execution for humans
https://github.com/ehmicky/gulp-execa
Gulp.js command execution for humans. Contribute to ehmicky/gulp-execa development by creating an account on GitHub.
- 39Get the global cache directory
https://github.com/ehmicky/global-cache-dir
Get the global cache directory. Contribute to ehmicky/global-cache-dir development by creating an account on GitHub.
- 40📗 How to write cross-platform Node.js code
https://github.com/ehmicky/cross-platform-node-guide
📗 How to write cross-platform Node.js code. Contribute to ehmicky/cross-platform-node-guide development by creating an account on GitHub.
- 41A `rm -rf` util for nodejs
https://github.com/isaacs/rimraf
A `rm -rf` util for nodejs. Contribute to isaacs/rimraf development by creating an account on GitHub.
- 42Delete files and directories
https://github.com/sindresorhus/del
Delete files and directories. Contribute to sindresorhus/del development by creating an account on GitHub.
- 43🔀 Cross platform setting of environment scripts
https://github.com/kentcdodds/cross-env
🔀 Cross platform setting of environment scripts. Contribute to kentcdodds/cross-env development by creating an account on GitHub.
- 44Node version management
https://github.com/tj/n
Node version management. Contribute to tj/n development by creating an account on GitHub.
- 45Access the system clipboard (copy/paste)
https://github.com/sindresorhus/clipboardy
Access the system clipboard (copy/paste). Contribute to sindresorhus/clipboardy development by creating an account on GitHub.
- 46All the characters that work on most terminals
https://github.com/ehmicky/cross-platform-terminal-characters
All the characters that work on most terminals. Contribute to ehmicky/cross-platform-terminal-characters development by creating an account on GitHub.
- 47Minimal and efficient cross-platform file watching library
https://github.com/paulmillr/chokidar
Minimal and efficient cross-platform file watching library - paulmillr/chokidar
- 48A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
https://github.com/mikaelbr/node-notifier
A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback) - mikaelbr/node-notifier
- 49Process execution for humans
https://github.com/sindresorhus/execa
Process execution for humans. Contribute to sindresorhus/execa development by creating an account on GitHub.
- 50A node.js version management utility for Windows. Ironically written in Go.
https://github.com/coreybutler/nvm-windows
A node.js version management utility for Windows. Ironically written in Go. - coreybutler/nvm-windows
- 51A Node.js module that returns the OS/Distribution name of the environment you are working on
https://github.com/retrohacker/getos
A Node.js module that returns the OS/Distribution name of the environment you are working on - retrohacker/getos
- 52🗃 Simple access to, and manipulation of, the Windows Registry. With promises. Without rage.
https://github.com/MikeKovarik/rage-edit
🗃 Simple access to, and manipulation of, the Windows Registry. With promises. Without rage. - MikeKovarik/rage-edit
- 53Windows support for Node.JS scripts (daemons, eventlog, UAC, etc).
https://github.com/coreybutler/node-windows
Windows support for Node.JS scripts (daemons, eventlog, UAC, etc). - coreybutler/node-windows
- 54:shell: Portable Unix shell commands for Node.js
https://github.com/shelljs/shelljs
:shell: Portable Unix shell commands for Node.js. Contribute to shelljs/shelljs development by creating an account on GitHub.
- 55Node.js: extra methods for the fs object like copy(), remove(), mkdirs()
https://github.com/jprichardson/node-fs-extra
Node.js: extra methods for the fs object like copy(), remove(), mkdirs() - jprichardson/node-fs-extra
- 56🖥️ A list of awesome packages and frameworks for implementing javascript applications on the desktop
https://github.com/styfle/awesome-desktop-js
🖥️ A list of awesome packages and frameworks for implementing javascript applications on the desktop - styfle/awesome-desktop-js
- 57A cross platform solution to node's spawn and spawnSync
https://github.com/IndigoUnited/node-cross-spawn
A cross platform solution to node's spawn and spawnSync - moxystudio/node-cross-spawn
- 58Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument.
https://github.com/isaacs/spawn-wrap#contracts-and-caveats
Wrap all spawned Node.js child processes by adding environs and arguments ahead of the main JavaScript file argument. - istanbuljs/spawn-wrap
- 59System Information Library for Node.JS
https://github.com/sebhildebrandt/systeminformation
System Information Library for Node.JS. Contribute to sebhildebrandt/systeminformation development by creating an account on GitHub.
- 60child_process.spawn ignores PATHEXT on Windows · Issue #2318 · nodejs/node-v0.x-archive
https://github.com/nodejs/node-v0.x-archive/issues/2318
For example require('child.process').spawn('mycmd') won't find C:\util\mycmd.bat when PATH contains C:\util and PATHEXT contains .BAT. Ye olde code (https://github.com/joyent/node/blob/v0.4/src/nod...
- 61Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
https://github.com/creationix/nvm
Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions - nvm-sh/nvm
FAQ'sto know more about the topic.
mail [email protected] to add your project or resources here 🔥.
- 1What should I do if my app crashes on one platform but not on others?
- 2How can I fix performance issues in my cross-platform app?
- 3What can I do if my app's UI looks different on various platforms?
- 4How do I handle API differences in cross-platform development?
- 5What steps should I take if my cross-platform app has inconsistent data storage?
- 6How can I troubleshoot build errors when developing cross-platform apps?
- 7What should I do if my app does not respond on a specific platform?
- 8How do I address user permissions issues in cross-platform apps?
- 9What steps should I take if my app's functionality is limited on certain platforms?
- 10How do I troubleshoot cross-platform compatibility issues?
- 11What can I do if my app's build time is excessively long?
- 12How do I handle feature parity in cross-platform development?
- 13What steps should I take if my app has localization issues?
- 14How can I manage user sessions in a cross-platform app?
- 15What should I do if my cross-platform app has network connectivity issues?
- 16How do I implement testing strategies for cross-platform apps?
- 17What can I do if users report unexpected behavior in my app?
- 18How do I implement push notifications in cross-platform apps?
- 19How do I troubleshoot performance issues in cross-platform apps?
- 20What should I do if my app crashes on a specific platform?
- 21How do I fix broken UI elements in my cross-platform app?
- 22How do I handle permissions in cross-platform apps?
- 23What steps should I take to ensure proper debugging across platforms?
- 24How can I manage API responses effectively in a cross-platform app?
- 25What should I do if my app's features are not syncing correctly across devices?
- 26How do I optimize images for cross-platform applications?
- 27How do I handle inconsistent user experience across platforms?
- 28What can I do if the app's loading speed varies across platforms?
- 29How do I troubleshoot network-related issues in my cross-platform app?
- 30What should I do if my app behaves differently in different environments?
- 31How do I debug API integration issues in my cross-platform app?
- 32What can I do if my app doesn't support certain device features?
- 33How do I fix localization issues in cross-platform apps?
- 34What should I do if users are experiencing connectivity issues in my app?
- 35How do I resolve issues with third-party libraries in my cross-platform app?
- 36What steps should I take to improve cross-platform app security?
- 37How can I optimize the app's performance across different devices?
- 38How do I manage updates in my cross-platform application effectively?
- 39What should I do if I encounter compatibility issues with older devices?
- 40How can I handle user feedback effectively in my cross-platform app?
- 41What steps should I take to ensure proper app testing across platforms?
- 42How can I resolve build errors in cross-platform development?
- 43What should I do if my app is crashing on specific devices?
- 44How do I handle localization in my cross-platform app?
- 45What steps should I take to improve my app's user experience (UX)?
- 46How can I manage different screen sizes and orientations effectively?
- 47What should I do if my app's performance is slow?
- 48How do I effectively manage app dependencies?
- 49What steps can I take to enhance accessibility in my cross-platform app?
- 50How can I troubleshoot issues with push notifications?
- 51What steps should I follow to ensure data synchronization across platforms?
- 52How do I fix layout issues on different devices?
- 53What should I do if my app is consuming too much battery?
- 54How can I effectively test my cross-platform app?
- 55What steps can I take to manage user authentication effectively?
- 56How can I troubleshoot issues with third-party libraries?
- 57How can I fix issues with app permissions on mobile devices?
- 58What steps should I take if my app crashes on startup?
- 59How can I resolve conflicts during version control?
- 60What steps can I take to handle memory leaks in my application?
- 61How do I troubleshoot API response issues?
- 62What should I do if my app's UI elements are not rendering correctly?
- 63How can I improve the responsiveness of my application?
- 64What steps should I take to handle user feedback effectively?
- 65How can I troubleshoot a slow application?
- 66What should I do if my app's localization is not working?
- 67How do I handle user authentication issues?
- 68What steps can I take to resolve database connection errors?
- 69How do I fix broken links in my application?
- 70What steps should I take if my app's push notifications aren't working?
- 71How can I troubleshoot issues with responsive design?
- 72What should I do if my app's animations are lagging?
- 73How do I handle CORS errors in my application?
- 74How can I resolve issues with file uploads in my application?
- 75What steps should I take if my app is experiencing crashes?
- 76How do I troubleshoot API response issues?
- 77What should I do if my app is not displaying correctly in certain browsers?
- 78How can I fix issues with custom fonts in my web application?
- 79What steps should I take if my application is showing outdated content?
- 80How do I troubleshoot issues with state management in my application?
- 81What should I check if my application is loading slowly?
- 82How can I troubleshoot issues with third-party API integrations?
- 83What should I do if my application is not responding?
- 84How do I resolve problems with user authentication in my application?
- 85What steps should I take if my application has broken links?
- 86How can I resolve issues with payment processing in my application?
- 87What should I check if my application is displaying incorrect data?
- 88How can I troubleshoot issues with mobile responsiveness?
- 89What steps should I take if my application is crashing frequently?
- 90How can I fix issues with outdated content in my application?
- 91How can I resolve issues with cross-browser compatibility?
- 92What should I do if my application is loading slowly?
- 93How can I fix issues with user notifications in my application?
- 94What steps should I take if my application crashes on specific devices?
- 95How can I troubleshoot issues with form validation?
- 96What should I check if my application is not connecting to the database?
- 97How can I fix issues with third-party libraries in my application?
- 98What steps should I take to ensure application security?
- 99How can I troubleshoot issues with user authentication?
- 100What steps should I take to resolve API integration issues?
- 101How can I fix issues with responsive design?
- 102How can I troubleshoot build errors in my project?
- 103What steps can I take to resolve database connection issues?
- 104How do I fix issues with third-party integrations?
- 105What steps should I take to resolve frontend performance issues?
- 106How can I troubleshoot cross-browser compatibility issues?
- 107What steps should I take to resolve API rate limiting issues?
- 108How can I troubleshoot mobile app performance issues?
- 109What steps can I take to resolve issues with code dependencies?
- 110How can I troubleshoot data serialization issues?
- 111What steps should I take to resolve issues with user authentication?
- 112How can I troubleshoot issues with file uploads?
- 113What steps should I take to troubleshoot issues with SSL certificates?
- 114How can I resolve issues with API versioning?
- 115What steps can I take to troubleshoot web socket connections?
- 116How can I resolve issues with mobile app testing?
- 117What steps can I take to resolve issues with build failures?
- 118How can I troubleshoot API call failures?
- 119What steps can I take to fix errors in my application’s deployment?
- 120How can I resolve issues with caching in my application?
- 121What steps can I take to troubleshoot SSL certificate problems?
- 122How can I resolve issues with API versioning?
- 123What steps can I take to troubleshoot web socket connections?
- 124How can I resolve issues with mobile app testing?
- 125How can I troubleshoot errors in my web application?
- 126What steps should I take to optimize my application’s performance?
- 127How can I fix common issues with responsive web design?
- 128What are the steps to secure my web application?
- 129How can I resolve issues with version control?
- 130What are the best practices for API development?
- 131How can I manage dependencies in my Node.js application?
- 132What steps should I follow for effective project management in software development?
- 133How do I handle user feedback effectively?
- 134How can I streamline the deployment process for my application?
- 135What are the steps to effectively onboard new team members?
- 136How can I ensure code quality in my projects?
- 137What steps should I take to improve my team's collaboration?
- 138How can I track my application's performance?
- 139What are the best practices for maintaining a clean codebase?
- 140How can I enhance user experience in my application?
- 141How do I effectively manage remote teams?
- 142What strategies can I use for effective time management?
- 143How do I effectively onboard new team members?
- 144How can I resolve build errors in my cross-platform app?
- 145What should I do if my app crashes on startup?
- 146How do I fix network connectivity issues in my app?
- 147How can I troubleshoot performance issues in my cross-platform app?
- 148How can I handle user input validation errors?
- 149How can I fix issues with third-party API integrations?
- 150What steps should I take if my mobile app is not responding?
- 151How can I manage version control conflicts in Git?
- 152What should I do if my app's UI is not displaying correctly?
- 153How can I troubleshoot database connection issues?
- 154How can I troubleshoot slow performance in my web app?
- 155What should I do if my app doesn't load in a browser?
- 156How do I handle authentication errors in my application?
- 157What should I do if my API requests are failing?
- 158How can I recover from a failed software deployment?
- 159What steps should I take if my app is experiencing memory leaks?
- 160How can I fix cross-browser compatibility issues in my web app?
- 161What should I do if my app crashes unexpectedly?
- 162How can I manage API versioning in my application?
- 163How can I resolve dependency conflicts in my project?
- 164What should I do if my app's API rate limit is exceeded?
- 165How can I improve my app's performance on mobile devices?
- 166What should I do if my web app is slow?
- 167How can I ensure my web app is accessible to all users?
- 168What should I do if my app is experiencing security vulnerabilities?
- 169How can I manage user sessions securely?
- 170What should I do if my app is not scaling well?
- 171How can I fix broken links in my web app?
- 172What steps should I take to optimize my web app for search engines?
- 173How can I handle CORS issues in my web app?
- 174What should I do if my web app has memory leaks?
- 175How can I improve the security of my web app?
- 176What should I do if my API is returning errors?
- 177How can I implement user authentication in my web app?
- 178What should I do if my web app is slow?
- 179How can I manage state in my web app effectively?
- 180What should I do if my web app's deployment fails?
- 181How can I implement logging in my web app?
- 182How can I test my web app for performance issues?
- 183How do I fix a broken deployment in my web app?
- 184What steps should I take to optimize my web app's loading speed?
- 185How do I troubleshoot API connection issues in my web app?
- 186What should I do if my web app's performance degrades over time?
- 187How do I manage user authentication and authorization in my web app?
- 188What steps should I take to recover a lost database connection?
- 189How can I debug JavaScript errors in my web application?
- 190What should I do if my web app keeps crashing?
- 191How do I resolve version conflicts in dependencies?
- 192How can I improve error handling in my web application?
- 193How do I handle CORS issues in my web app?
Queriesor most google FAQ's about Cross-Platform.
mail [email protected] to add more queries here 🔍.
- 1
cross platform app development 2024
- 2
flutter cross platform app development
- 3
multi platform development
- 4
cross platform mobile app development full course
- 5
cross platform mobile app development شرح
- 6
cross platform or native mobile development
- 7
visual studio cross platform app development
- 8
cross platform game development
- 9
cross platform development
- 10
cross-platform mobile development
- 11
cross platform desktop application development
- 12
cross platform vs native development
- 13
cross platform mobile app development roadmap
- 14
cross platform web development
- 15
cross platform app development tutorial
- 16
cross platform mobile development
- 17
xamarin cross platform app development tutorial
- 18
cross platform desktop application development c#
- 19
cross platform mobile app development
- 20
front end and cross platform mobile development
- 21
best cross platform mobile app development framework
- 22
python cross platform app development
- 23
what is cross platform app development
- 24
best cross platform app development frameworks 2023
- 25
best cross platform app development frameworks 2024
- 26
what is cross platform development
- 27
java cross platform app development
- 28
cross platform mobile app development in tamil
- 29
native vs cross platform mobile app development
- 30
cross platform app development roadmap
- 31
mobile cross platform development
- 32
cross platform app development full course
- 33
best programming language for cross platform app development
- 34
cross platform app development react native
- 35
cross platform app development
- 36
c++ cross platform development
- 37
cross platform software development
- 38
cross platform application development
- 39
lyra cross-platform ui development
- 40
android os cross platform app development
- 41
cross platform desktop app development
- 42
best cross platform development framework
- 43
ionic cross platform development
- 44
cross platform vs hybrid app development
- 45
cross platform mobile app development course
- 46
cross platform mobile app development tutorial
- 47
cross platform app development course
- 48
cross platform development for ios and android
- 49
cross platform mobile app development 2024
- 50
cross platform mobile game development
- 51
cross platform development frameworks
- 52
native or cross platform mobile development
- 53
what is cross platform app development in tamil
- 54
kotlin cross platform development
More Sitesto check out once you're finished browsing here.
https://www.0x3d.site/
0x3d is designed for aggregating information.
https://nodejs.0x3d.site/
NodeJS Online Directory
https://cross-platform.0x3d.site/
Cross Platform Online Directory
https://open-source.0x3d.site/
Open Source Online Directory
https://analytics.0x3d.site/
Analytics Online Directory
https://javascript.0x3d.site/
JavaScript Online Directory
https://golang.0x3d.site/
GoLang Online Directory
https://python.0x3d.site/
Python Online Directory
https://swift.0x3d.site/
Swift Online Directory
https://rust.0x3d.site/
Rust Online Directory
https://scala.0x3d.site/
Scala Online Directory
https://ruby.0x3d.site/
Ruby Online Directory
https://clojure.0x3d.site/
Clojure Online Directory
https://elixir.0x3d.site/
Elixir Online Directory
https://elm.0x3d.site/
Elm Online Directory
https://lua.0x3d.site/
Lua Online Directory
https://c-programming.0x3d.site/
C Programming Online Directory
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
https://r-programming.0x3d.site/
R Programming Online Directory
https://perl.0x3d.site/
Perl Online Directory
https://java.0x3d.site/
Java Online Directory
https://kotlin.0x3d.site/
Kotlin Online Directory
https://php.0x3d.site/
PHP Online Directory
https://react.0x3d.site/
React JS Online Directory
https://angular.0x3d.site/
Angular JS Online Directory