
Security News
Feross on the 10 Minutes or Less Podcast: Nobody Reads the Code
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.
A micro-library for browser automation.
Thie example searches Google and returns the list of urls returned on the first page.
const bowow = require('.')
bowow($ => {
// Navigate to google
$('https://www.google.com')
// Type in "example"
$('input[name=q]')
.val('example')
.blur()
// Click on the Search button
$(`input[type='button'][value='Google Search']`).click()
// collect all links in search results
return $('#res #search h3 > a').map((index, e) => $(e).attr('href'))
}).then(console.log) // outputs an array of urls
bowow($ => {...}, opts = { headless: false, device: null, mobileEmulation: null }) : PromiseAccepts a function that will receive a jQueryProxy. Supporting some configuration through the opts parameter.
$(fn : Function)This is the core of the library. It performs the passed function in the browser context and returns the value the function returns.
$(selector, timeout = 30) : jQueryProxyThis is a helper that makes working with jQuery a trivial undertaking. When provided with a jQuery selector, $ acts like jQuery would, except it throws an exception if the selector fails to match any elements within the specifies timeout (in seconds). If you want to disable that check, pass in -1 as the timeout value.
Sends keystrokes to the targetted elements. Can be used to upload a file, like so: $('input[type=file]).type('/tmp/image.png').
Takes a screenshot and saves it to a temporary file, returing the full path to the file.
Waits synchronously for the number of milliseconds given.
Returns an array of all files in the download directory. If wait is true it'll wait until a new file appears in the directory.
FAQs
A micro browser automation tool
We found that bowow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.