Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
MatchaBot is a code generator. You can use matchabot to create an entire project, or to generate code inside an existing project in a consistent way.
./.machatbot
directorymatcha.json
file inside the ./.machatbot
directoryAdd matchabot to your project
Execute the following command at the root of your project.
yarn add matchabot --dev
Initialise matchabot
Execute the following command at the root of your project.
matchabot init
👉 This command create a local directory ./.matchabot
inside your project
./.matchabot
└── commands
├── add-command
├── add-licence
The command directory contains a list of subdirectory. Each subdirectory contains a matcha.json file that defines the command and a list of asociated templates.
Example ./.matchabot/add-licence/matcha.json
:
{
"name": "add-licence",
"description": "add a licence file to your project",
"version": "1.0.0",
"args": [
{
"name": "CopyRightsHolder",
"alias": "c",
"type": "string",
"default": "{{process.env.LOGNAME}}"
},
{
"name": "ProgramDescription",
"alias": "p",
"type": "string"
},
{
"name": "LicenceType",
"type": "list",
"choices": [
{ "name": "MIT License", "value": "mit" },
{ "name": "BSD License", "value": "bsd" },
{ "name": "Apache License, Version 2.0", "value": "apache2" },
{ "name": "GNU General Public License version 3", "value": "gnu3" }
],
"default": "MIT"
}
],
"actions": [
{
"type": "template",
"name": "Generate Licence",
"source": "{{toLowerCase LicenceType}}.md.hbs",
"target": "LICENCE.md"
}
]
}
List availables commands
matchabot list
👉 This command gives the list of defined commands
__ __ _ _ ____ _
| \/ | __ _| |_ ___| |__ __ _ | __ ) ___ | |_
| |\/| |/ _` | __/ __| '_ \ / _` | | _ \ / _ \| __|
| | | | (_| | || (__| | | | (_| | | |_) | (_) | |_
|_| |_|\__,_|\__\___|_| |_|\__,_| |____/ \___/ \__|
Version: 0.2.0 🍵
┌─────────┬──────────────────────────┬──────────────────────────────────────────────────────────────┬─────────┬────────────────────────────────────────────────┐
│ (index) │ name │ description │ version │ location │
├─────────┼──────────────────────────┼──────────────────────────────────────────────────────────────┼─────────┼────────────────────────────────────────────────┤
│ 0 │ 'add-command' │ 'add a new command to the .matchabot directory' │ '1.0.0' │ './.matchabot/commands/add-command' │
│ 1 │ 'add-licence' │ 'add a licence file to your project' │ '1.0.0' │ './.matchabot/commands/add-licence' │
│ 2 │ 'create-react-app' │ 'create a typescript react app' │ '1.0.0' │ './.matchabot/commands/create-react-app' │
│ 3 │ 'create-react-component' │ 'generate a Styled React Component, and an associated story' │ '1.0.0' │ './.matchabot/commands/create-react-component' │
└─────────┴──────────────────────────┴──────────────────────────────────────────────────────────────┴─────────┴────────────────────────────────────────────────┘
Execute a command
matchabot add-licence
FAQs
![Robot](https://www.matchabot.site/static/adea4702d2b8d591adf406a3cd842e36/logo-nav-light.svg)
The npm package matchabot receives a total of 1 weekly downloads. As such, matchabot popularity was classified as not popular.
We found that matchabot 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.