Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@escape.tech/escape-js

Package Overview
Dependencies
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escape.tech/escape-js

Escape CLI tool for running a route detection

  • 1.0.0-beta.9
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Escape's NodeJS CLI

A CLI tool for automatically building OpenAPI descriptions and assess route testing coverage directly from local testing environment !

Installation

npm install -g @escape.tech/cli

Configuration

The CLI needs to access the following information in order to work properly

  • The test framework used by the project
  • The HTTP library used by the project
  • The key of the project in the Escape app

These information can easily be provided by using the escape init command

escape init

You will see the following prompter

escape | Escape CLI is up-to-date, happy fuzzing !

    ___     ___     ___     ___     ___     ___
   /\  \   /\  \   /\  \   /\  \   /\  \   /\  \
  /::\  \ /::\  \ /::\  \ /::\  \ /::\  \ /::\  \
 /::\:\__/\:\:\__/:/\:\__/::\:\__/::\:\__/::\:\__\
 \:\:\/  \:\:\/__\:\ \/__\/\::/  \/\::/  \:\:\/  /
  \:\/  / \::/  / \:\__\   /:/  /   \/__/ \:\/  /
   \/__/   \/__/   \/__/   \/__/           \/__/

? What test runner do you use for this project : Mocha
? What http library do you use for this project : Express
? Please enter the escape key url for the project : http://api.escape.tech/someKey

This command writes the configuration parameters you entered in .escaperc.json file at the root of your project. This file will be read by the CLI for further usage.

Matrix of currently supported libraries and frameworks

HTTP lib / Test FrameworkJest v26.xx.xxMocha v8.xx.xxJasmine
ExpressJS v4.xx.xxcover supported, discover supportedcover supported, discover supportedNot supported yet
KoaJS v2.xx.xxcover supported, discover supportedcover supported, discover supportedNot supported yet
KoaJS v2.xx.xxcover supported, discover supportedcover supported, discover supportedNot supported yet

Usage

The CLI is used as a prefix for launching test commands :

⚠️ Launching commands using npm is not fully supported yet ! ⚠️

⚠️ Launching commands after a transformer (babel-node/ts-node) is not fully supported yet ! ⚠️

# Example with Grunt (Mocha test runner)
escape discover grunt validate
escape cover grunt validate
# Tests will be executed using Escape's patches

# Example with Jest
escape discover jest --forceExit --detectOpenHandles .

Contributing

Contribution guide

Keywords

FAQs

Package last updated on 19 May 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc