Last active
April 25, 2020 07:17
-
-
Save adamculpepper/88f3d973672705c4d09ef81767932340 to your computer and use it in GitHub Desktop.
Revisions
-
adamculpepper revised this gist
Apr 25, 2020 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ const puppeteer = require('puppeteer'); const fs = require('fs'); var fileContent = fs.readFileSync('file.txt', 'utf8'); console.log(fileContent); -
adamculpepper revised this gist
Apr 25, 2020 . 2 changed files with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,8 @@ const fs = require('fs'); const util = require('util'); // data const rawdata = fs.readFileSync('plates.json'); const textDecoder = new util.TextDecoder('utf-8'); const stringData = textDecoder.decode(rawdata); const objects = JSON.parse(stringData); console.log(objects); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ const puppeteer = require('puppeteer'); const fs = require('fs'); var contentHtml = fs.readFileSync('file.txt', 'utf8'); await page.setContent(contentHtml); console.log(contentHtml); -
adamculpepper renamed this gist
Apr 25, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
adamculpepper created this gist
Apr 25, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ const puppeteer = require('puppeteer'); const fs = require('fs'); const util = require('util'); // data const rawdata = fs.readFileSync('plates.txt'); const textDecoder = new util.TextDecoder('utf-8'); const stringData = textDecoder.decode(rawdata); const objects = JSON.parse(stringData);