Skip to content

Commit

Permalink
Merge pull request #21 from nitrocode/added-missing-fs-module
Browse files Browse the repository at this point in the history
Added missing fs module to sample js code
  • Loading branch information
Druotic committed Jan 8, 2019
2 parents c3b9264 + 0eadf42 commit 8988c4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ is a good package for supporting this.
### Parse string that contains stdout logs from terraform plan

```javascript
const fs = require('fs');
const parser = require('terraform-plan-parser');

const stdout = fs.readFileSync('terraform-plan.stdout', {encoding: 'utf8'});
const result = parser.parseStdout(stdout);
```
Expand Down

0 comments on commit 8988c4f

Please sign in to comment.