Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
8853eecbb9 | |||
1bfca4456c | |||
b337e4c779 | |||
53d56d2d8a | |||
e3781cfd4d | |||
eca90bdf64 | |||
b35b3f6c0b | |||
d3509b8834 |
@ -20,13 +20,6 @@ puppeteer wrapper for easy tasks
|
||||
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://push.rocks)
|
||||
|
||||
For further information read the linked docs at the top of this readme.
|
||||
|
||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
|
759
package-lock.json
generated
759
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartbrowser",
|
||||
"version": "1.0.7",
|
||||
"version": "1.0.11",
|
||||
"description": "simplified puppeteer",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
@ -19,6 +19,7 @@
|
||||
},
|
||||
"homepage": "https://gitlab.com/pushrocks/smartbrowser#README",
|
||||
"dependencies": {
|
||||
"@pushrocks/smartpdf": "^1.0.6",
|
||||
"puppeteer": "^1.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
20
ts/index.ts
20
ts/index.ts
@ -1,3 +1,21 @@
|
||||
import * as plugins from './smartbrowser.plugins';
|
||||
|
||||
export class SmartBrowser {}
|
||||
export class SmartBrowser {
|
||||
puppeteer: plugins.puppeteer.Browser;
|
||||
smartpdf: plugins.smartpdf.SmartPdf;
|
||||
pdfFromPage(urlArg: string) {
|
||||
this.smartpdf.getFullWebsiteAsSinglePdf(urlArg: );
|
||||
}
|
||||
|
||||
public async start() {
|
||||
this.smartpdf = new plugins.smartpdf.SmartPdf();
|
||||
this.smartpdf.init();
|
||||
}
|
||||
|
||||
/**
|
||||
* stops the smartbrowser instance
|
||||
*/
|
||||
stop() {
|
||||
this.smartpdf.close();
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,9 @@
|
||||
import 'typings-global';
|
||||
export import browserSync = require('browser-sync');
|
||||
export import smartq = require('smartq');
|
||||
// pushrocks scope
|
||||
import * as smartpdf from '@pushrocks/smartpdf';
|
||||
|
||||
export { smartpdf };
|
||||
|
||||
// third party
|
||||
import * as puppeteer from 'puppeteer';
|
||||
|
||||
export { puppeteer };
|
||||
|
Reference in New Issue
Block a user