Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
@koopjs/cli
Advanced tools
A cross-platform CLI tool to build Koop projects
Use npm
npm install -g @koopjs/cli
Use yarn
yarn global add @koopjs/cli
Once installed the koop
command is available.
koop <command>
Commands:
koop new <type> <name> create a new koop project
koop add <type> <name> add a new plugin to the current app
koop test run tests in the current project
koop serve run a koop server for the current project
Options:
--quiet supress all console messages except errors
[boolean] [default: false]
The new
command creates a new Koop project from the template at the current location.
koop new <type> <name>
Positionals:
type project type [string] [choices: "app", "provider"]
name project name [string]
Provider Options:
--add-server add a server file to the new koop provider project
[boolean] [default: false]
Options:
--config specify the project configuration in JSON [string]
--skip-install skip dependence installation [boolean] [default: false]
--skip-git do not initialize Git [boolean] [default: false]
You can create different types of Koop projects from templates:
For more details on the project templates, please take a look at the Koop specification and samples.
The add
command adds a Koop plugin to the current Koop app.
koop add <type> <name>
Positionals:
type plugin type [string] [choices: "output", "provider", "cache", "auth"]
name plugin name [string]
Provider Options:
--route-prefix add a prefix to all of a registered routes [string]
Options:
--config specify the plugin configuration in JSON [string]
--add-to-root add the given configuration to the app root configuration
[boolean] [default: false]
--skip-install skip plugin installation [boolean] [default: false]
The serve
command starts a test server for the current provider project, or starts the current Koop app.
koop serve
Options:
--port, -p port number of the server [number]
The test
command run tests in the current koop project.
koop test
This tool can be also used as a library.
const cli = require('@koopjs/cli')
// create a koop app project at /Documents
cli.new('/Documents', 'app', 'my-app', {
config: {
port: 8080
}
})
Create a Koop project at the given directory.
cwd
: current work directorytype
: project typename
: project nameReturn a promise.
Add a plugin to the given Koop app
cwd
: Koop app directorytype
: project typename
: Koop plugin nameReturn a promise.
0.1.0 - 2019-03-14
This is the initial development.
new
, add
, test
, and serve
commandsapp
and provider
plugin project templatesFAQs
CLI tool to build Koop projects
The npm package @koopjs/cli receives a total of 199 weekly downloads. As such, @koopjs/cli popularity was classified as not popular.
We found that @koopjs/cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.