1.0.1 • Published 2 years ago

@netless/extension-flat v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

extension-flat

Download and unzip crx file

CLI

Usage: extension-flat hash --name=NAME [option ...]

  Download and unzip crx file

    --help         display this usage info
    --name         folder name
    --remove       delete crx file after unzip complate
    --crxDir       crx folder
    --output       output path

API

/**
 * @param {object} config
 * @param {string} config.extensionHash - extension id (e.g. fmkadmapgofadopljbjfkapdkoienihi)
 * @param {string} config.outputFolder - output folder
 * @param {boolean} [config.deleteCRX] - delete crx file after unzip complate
 * @param {string} [config.crxFolder] - crx folder
 * @param {string} config.folderName - folder name
 */