🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

craftapi-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

craftapi-cli

A mock server based on Open API Spec from CraftAPI

1.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

CraftAPI CLI

This is basically a wrapper for OpenAPI Mocker, that adds a URL schema loader for using CraftAPI.

Installation and usage

Using npm

npm i -g craftapi-cli

craftapi -s https://app.craftapi.dev/mock/[WORKSPACE-TOKEN]/[PROJECT-TOKEN]/openapi

More info

See the open-api-mocker docs to read more about the capabilities of this CLI.

Common options

OptionRequiredExampleDescription
-s [url]true-s https://...The CraftAPI schema URL.
-p [port]false-p 3000The port the server will listen to. The default is 5001.
-wfalse-wReload the schema every 10 seconds.
-i [seconds]false-i 30Set the interval at which to reload the schema.

Write --help to prompt every available setting.

craftapi --help

Contributing

Issues and PRs are welcome.

Keywords

api

FAQs

Package last updated on 31 May 2023

Did you know?

Socket

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.

Install

Related posts