import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.extensions.downloadFromChromeStore({ url: 'url' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Returns a ZIP archive containing the unpacked extension fetched from the Chrome Web Store.
import Kernel from '@onkernel/sdk';
const client = new Kernel({
apiKey: process.env['KERNEL_API_KEY'], // This is the default and can be omitted
});
const response = await client.extensions.downloadFromChromeStore({ url: 'url' });
console.log(response);
const content = await response.blob();
console.log(content);"<string>"Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Chrome Web Store URL for the extension.
Target operating system for the extension package. Defaults to linux.
win, mac, linux Extension ZIP archive
The response is of type file.