oargv3.4.9 • Public • Published
Turns an object into a bash command.
# Using npmnpm install --save oargv# Using yarnyarn add oargv
// Dependenciesvar OArgv = ;console;// => zip "-r" "target.zip" "somedir"console;// => bat "-d" "" "--tt" "--size" "600x800"console;// => foo "--escaping" "She said: \"Hello World\"!"console;// => [ '--noCommand', 'foo', '-b' ]console;// => [ 'foo', '--custom=Separator' ]console;// => [ '--author', 'email@example.com', '--author', 'firstname.lastname@example.org' ]console;// => "--author" "email@example.com" "--author" "firstname.lastname@example.org"console;// => "--email@example.com" "--firstname.lastname@example.org"
❓ Get Help
There are few ways to get help:
Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.
For bug reports and feature requests, open issues. 🐛
For direct and quick help, you can use Codementor. 🚀
OArgv(options, prgm, stringify)
Stringifies the options, building a command.
options: The options that should be stringified. If it contains the
_field, then this should be an
Arrayof strings, that representing values that will be added at the end of the command. The
__field is the separator (default:
prgm: The program that executes the command (default:
true, the result array will be stringified (default:
- String|Array The stringified arguments (if
true) or the array of arguments.
😋 How to contribute
Have an idea? Found a bug? See how to contribute.
💖 Support my projects
I open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously, this takes time. You can integrate and use these projects in your applications for free! You can even change the source code and redistribute (even resell it).
However, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:
Starring and sharing the projects you like 🚀
Bitcoin—You can send me bitcoins at this address (or scanning the code below):
💫 Where is this library used?
If you are using this library in one of your projects, add it in this list. ✨
babel-it—Babelify your code before
batjs—This is the NodeJS bridge for BAT -- A minimalist tool for building native desktop applications using WEB technologies.
bloggify-tools—Interactive command line tool to help you win at Bloggify.
cdnjs-importer—Easy way to import a library into CDNJS.
cobol—COBOL bridge for NodeJS which allows you to run COBOL code from NodeJS.
electroner—Start ElectronJS apps from Node.js.
engine-tools(by jillix)—Engine Tools library and CLI app.
fortran—Fortran bridge for Node.js which allows you to run Fortran code from Node.js.
git-package-json—Get the package.json contents from git repositories.
git-stats-importer—Imports your commits from a repository into git-stats history.
git-status—A git-status wrapper.
gpm—npm + git = gpm - Install NPM packages and dependencies from git repositories.
initial-commit-date—Get the initial commit date of a git repository.
share-term—Share the terminal with your friends.
spawn-npm—Run npm commands by creating child processes.