Skip to content

Commit

Permalink
fix: πŸ› readme example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gbvanrenswoude committed Aug 15, 2021
1 parent c0cf00f commit ef4119a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit ef4119a

Please sign in to comment.