
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Commular is the easiest way to create your CLI tools using plugins.
Creating your own command line tool is amazing and gives you the opportunity of explore a new world out of the web.
Sometimes you will encounter some issues on creating those command line tools because the lack of reusability of code that could be reused in each and every one of your tools.
If you are an open source's fan you will also want to share your code with other people so they can also reuse it and take advantage of your work.
Because of all that Commular was designed and developed to be a pluggable framework of easy development without having to invent anything new because it extends existing, and very opinionated, CLI frameworks.
npm install commular --save
git clone https://github.com/commular/commular-cli-template.git <<CLI_NAME>>
npm link
in the root of your project to work locally.npm install --save <<COMMULAR_PLUGIN_PACKAGE_NAME>>
to install plugins.Commular has been developed on top of:
You can use commmander or vorpal with Commular.
git clone https://github.com/commular/commular.git <<CLI_NAME>>
npm link
in the root of your project to work locally.npm install --save <<COMMULAR_PLUGIN_PACKAGE_NAME>>
to install plugins.It can't be easier... just use npm to install commander or vorpal and Commular will check what module you installed.
npm install --save commander
npm install --save vorpal
Use npm to install all the plugins you need Commular will manage them for you.
We work as other pluggable tools (Grunt, Gulp...)
You can find all the plugins reviewed by our team in Commular organization
You can also could find third party plugins in Github, Bitbucket and NPM, to find them you only have to search for:
commular-
You can develop your own plugins you only need to follow some simple steps.
Commular as Grunt, Gulp or jQuery enforce you to use our prefix, commular, to name your plugins but we also understand that sometimes it's not possible so we also though on it and you can define what prefixes want Commular to manage.
By default Commular manages those plugins that are prefixed by commular and also those that are prefixed with the same name of your CLI.
Imagine that you have to create your own CLI, named biz and...
That's what you need to do to use them all in your app is:
"commular-plugin-prefixes": []
"commular-plugin-prefixes": "rd"
"commular-plugin-prefixes": [ "rd", "twitter" ]
To get more information we recommend you:
git clone https://github.com/commular/commular-plugin-template.git [YOUR_PLUGIN_NAME]
scripts/index.js
and see that there is only the following code:exports.command = function (program) {
/**
* "program" returns an instance of "commander" or "vorpal".
* Develop your command/s in this function as usual.
* More information about how to do that in the website of the CLI framework
* you decided to use.
**/
};
The template also gives you all the ecosystem to test your plugins easily but we don't have to recall you that it's just a template so it's up to you if you want to change the modules used in there.
If you want us to review your commular plugin we will ask you for testing. We will not accept any plugin without the required testing.
That's not a problem at all because we are using NPM to manage dependencies.
Assumptions:
npm install --save ./plugins/commular-parse-xml
npm link
to work with your 'cli' tool as if it was installed globally.To run the tests:
npm install
npm test
git checkout -b my-new-feature
git commit -am 'Add some feature'
npm test
git push origin my-new-feature
The MIT License (MIT)
Copyright (c) 2016 Tomás Corral
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
A modular command line.
The npm package commular receives a total of 4 weekly downloads. As such, commular popularity was classified as not popular.
We found that commular demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.