Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@crawly/browser
Advanced tools
npm i @crawly/browser
import { Browser } from '@crawly/browser';
let browser = new Browser();
let header = browser.getHeaders();
Exemplo de retorno da função getHeaders
:
{
Pragma: 'no-cache',
Connection: 'keep-alive',
'Accept-Encoding': 'gzip, deflate, br',
'Content-Type': 'application/json; charset=UTF-8',
'Cache-Control': 'no-cache',
'Upgrade-Insecure-Requests': 1,
'X-Requested-With': 'XMLHttpRequest',
Accept:'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'pt-BR,pt;q=0.9,en-US;q=0.8,en;q=0.7',
Referer: 'https://www.google.com',
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0'
}
Para gerar novos headers utilize a função setHeaders
:
import { Browser } from '@crawly/browser';
let browser = new Browser();
browser.setHeaders();
setHeaders(): void;
getHeaders(): IHeader;
mergeHeaders(headers: IHeader, value: IHeader): IHeader;
getRandomAccept(): string;
getRandomAcceptLanguage(): string;
getRandomReferer(): string;
getRandomUserAgent(): string;
npm run build
npm run tslint
npm test
Coverage
npm run coverage
FAQs
lib to encapsulate browser data
The npm package @crawly/browser receives a total of 0 weekly downloads. As such, @crawly/browser popularity was classified as not popular.
We found that @crawly/browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.