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

@aws-c2a/web-app

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-c2a/web-app

`@aws-c2a/web-app` is a package that generates a web app to help you visualize and interact with the change report generated by `@aws-c2a/engine`;

  • 0.7.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

AWS CDK Change Analyzer (C2A) - Web App

@aws-c2a/web-app is a package that generates a web app to help you visualize and interact with the change report generated by @aws-c2a/engine;

Usage

We recommend using the aws-c2a CLI to run the web app. However, if you wish to interact directly with the package itself check out the integration section below.

Integration

To use the web app package in a production environment:

  1. Install the @aws-c2a/web-app package

    yarn add @aws-c2a/web-app
    
  2. Import package and obtain the path to the template file

    const templatePath = require(resolve('@aws-c2a/web-app/fixtures/template.index.html'));
    const template = await fs.promises.readFile(templatePath, 'utf-8');
    
  3. Replace the placeholder values in the template file with stringified change report

    const webapp = template.replace('"!!!CDK_CHANGE_ANALYSIS_REPORT"', report);
    

To use the web app package in a developer environment:

  1. First install and build all packages.

    git clone https://github.com/cdklabs/awscdk-change-analyzer.git
    cd awscdk-change-analyzer
    yarn install
    yarn build
    cd packages/@aws-c2a/web-app
    
  2. Then create the necessary data file (change report) for testing.

    touch data.json
    
  3. Now you can start developing with @aws-c2a/web-app running locally.

    yarn dev
    

FAQs

Package last updated on 06 Dec 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