Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@kayako/kit
Advanced tools
The KIT Cli
is the command line tool to create, manage and publish custom apps with Kayako.
This project makes use of adonis ace and requires atleast Node.js version 8.0 or greater since this project makes use of async/await
.
Follow below defined steps to setup this project.
npm install
to install all required dependencies.node index.js
to make sure all existing commands runs fine.All commands lives inside src/Commands
directory and automatically get's registered with ace
.
Also there is an example command saved inside example/Command.js
file as a reference.
All ace
commands are ES6 classes with couple of mandatory static properties and handle
method.
'use strict'
const { Command } = require('@adonisjs/ace')
class MyCommand extends Command {
static get signature () {
return 'command:name'
}
static get description () {
return 'Command description'
}
async handle (args, options) {
}
}
module.exports = MyCommand
Signature defines the command name and it's requirements. All required/optional arguments and flags are defined within the signature.
For example:
static get signature () {
return 'new { projectPath }'
}
static get signature () {
return 'new { projectPath? }'
}
static get signature () {
return 'new { projectPath : Path to directory where to create the project }'
}
Flags starts with --
.
static get signature () {
return `
new
{ projectPath }
{ --skip-install : Do not install dependencies }
`
}
The command description shown within help output.
The handle method is called when the command is executed. It will receive all the arguments and flags as parameters.
await handle (args, options) {
console.log(args.projectName)
console.log(options.skipInstall)
}
FAQs
Kayako command line tool for creating custom apps
The npm package @kayako/kit receives a total of 0 weekly downloads. As such, @kayako/kit popularity was classified as not popular.
We found that @kayako/kit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.