From ef4119a1482e2a3f4b907d46e792fe845e7c1488 Mon Sep 17 00:00:00 2001 From: gbvanrenswoude Date: Sun, 15 Aug 2021 19:11:02 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20readme=20example=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c537f0e..bf46468 100644 --- a/README.md +++ b/README.md @@ -14,12 +14,15 @@ Because it just combines existing Constructs, this means the `ScannedDockerImage ## USAGE -Just add the `ScannedDockerImageAsset` to your imports, and use it exactly like you would a normal `DockerImageAsset`. It will do all the heavy lifting under the hood by itself. +Run `npm i cdk-ecr-asset-scanner`. + +Just add the `ScannedDockerImageAsset` to your imports, and use it exactly like you would a normal `DockerImageAsset`. It will do all the heavy lifting under the hood by itself. Make sure cdk peer dependencies are correct as usual, but npm will point those out (> 1.118.0 cdk versions) Example (ts): ```ts -import { ScannedDockerImageAsset } from "./index"; +import { ScannedDockerImageAsset } from 'cdk-ecr-asset-scanner'; +import * as path from 'path'; ... const env = {