Skip to main content

Getting Started: Test security

Done by: Application Developer
Time needed: 15 minutes
Frequency: done once for automation
What you get: high accuracy security results based from watching what your app did, with results as they happen.

Integrate the agent into startup#

  1. Install the agent
    npm install @contrast/agent --no-optional
  2. Update the scripts to instrument the application:
    package.json
      "scripts": {    "contrast": "node -r @contrast/agent <app-main>.js",    "start": ...,    "test": ...}
  3. To test, start your application with:
    npm run contrast
    To use the application as normal, use the regular call. Contrast will have no performance impact when it is not engaged.

Reference Documentation#

For reference documentation, please consult the installation guide: