![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
browser-based-export
Advanced tools
browser-based-export
is a wrapper on top of Puppeteer's export to PDF feature.
It can handle authentication by injecting cookies or Web Storage items into Headless Chromium. It also generates better looking PDF than Puppeteer by resizing the browser page to the paper format before triggering the PDF export.
The library is also available as a server and an AWS Lambda function.
Every export happens in an isolated incognito Chromium context. It means that the cookies, Web Storage items or any sensitive information will not be shared across exports. Even if they are launched in parallel.
const {inBrowser} = require('browser-based-export');
// Start Headless Chromium and automatically close it when the passed callback resolves.
inBrowser({
action: ({exportPdf}) =>
exportPdf({
payload: {
url: 'https://example.com',
},
timeoutInSeconds: 10,
}).then(pdfBuffer => {
// Do something with it.
}),
});
Take a look at:
This package is using the debug utility.
Set the DEBUG
environment variable to browser-based-export:*
to see the debug messages.
If that's not enough, you can follow the Puppeteer debugging tips.
FAQs
Wrapper on top of Puppeteer's export to PDF feature
The npm package browser-based-export receives a total of 2 weekly downloads. As such, browser-based-export popularity was classified as not popular.
We found that browser-based-export demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.