@shortpoint/css-rules-extractor
v1.0.5
Published
This plugin intended to extract css text from css rules
Downloads
4
Readme
CSS RULES EXTRACTOR
This plugin intended to extract css text from css rules
Usage
First of all you need to create in instance of CSSRulesExtractor
You have to pass an object as parameter
This object consists of two options
1- url?: string;
2- page?: puppeteer.Page;
Note: if you did not pass any of the above mentioned an error will be thrown
after constructing a class instance you just run extract
method with the following params:
1- file?: string; // file path where to store the final result, it must be something like google.css
2- console?: boolean; // if true the css will be printed in console
3- server?: string; // if server url is presented a post request raised to the file in server-side