Shared library for Franklin Importer Tooling
npm install franklin-importer-sharedFranklin Importer Shared Library
===
Domain specific util functions shared accross Franklin Importer tools
```
npm install https://gitpkg.now.sh/catalan-adobe/franklin-importer-service/shared
Sample script that takes a screenshot of the bottom of a page:
`js
// take-screenshot.js
import * as importerLib from 'franklin-importer-shared';
// init headless browser
const [browser, page] = await importerLib.Puppeteer.initBrowser();
// load test page
await page.goto('https://www.hlx.live');
// scroll down
await importerLib.Puppeteer.scrollDown(page);
// wait 1s.
await importerLib.Time.sleep(1000);
// take a screenshot
await page.screenshot({
fullPage: false,
path: 'screenshot.png'
});
// close browser
await browser.close();
`
* Puppeteer (_initBrowserAgent_, _scrollDown_, _scrollUp_)sleep
* Time (__, _randomSleep`_)