poplasyn.blogg.se

Lighthouse chrome extension crx file
Lighthouse chrome extension crx file















This is called automatically if a key is not specified, and key.pem does not exist. Generate a 2048-bit RSA private key within the directory. By default, will rely on node internal setting (~200KB). Use the -b option to specify the maximum buffer allowed to generate extension. If this option is not used and no key.pem file exists, one will be generated automatically. If this is not used, key.pem is used from within the directory. Use the -p option to specify an external private key.

lighthouse chrome extension crx file

Use the -zip-output option to write the unsigned extension to a file. Use the -o option to write the signed extension to a file instead of stdout. Can be either "2" or "3", defaults to "3". Use the -crx-version option to specify which CRX format version to output. If no directory is specified, the current working directory is used. new crx().generateAppId('/path/to/ext') // epgkjnfaepceeghkjflpimappmlalchn CLI API crx pack Generates application id (extension id) from given path. crx.load('/path/to/extension').then(crx => ) Ĭonst xmlBuffer = crx.generateUpdateXML() įs.writeFileSync('/foo/bar/update.xml', xmlBuffer) Prepares the temporary workspace for the Chrome Extension located at path - which is expected to directly contain manifest.json. This module exports the ChromeExtension constructor directly, which can take an optional attribute object, which is used to extend the instance. }) ChromeExtension = require("crx") crx = new ChromeExtension(attrs) const fs = require('fs') Ĭodebase: ' privateKey: fs.readFileSync('./key.pem')Ĭrx.load( path.resolve(_dirname, './myExtension') )Ĭonst updateXML = crx.generateUpdateXML()įs.writeFileSync('./update.xml', updateXML) įs.writeFileSync('./myExtension.crx', crxBuffer)

LIGHTHOUSE CHROME EXTENSION CRX FILE INSTALL

Install $ npm install crx Module APIĪsynchronous functions returns a native ECMAScript Promise. Massive hat tip to the node-rsa project for the pure JavaScript encryption!Ĭompatibility: this extension is compatible with node>=10. It is written purely in JavaScript and does not require OpenSSL!

lighthouse chrome extension crx file lighthouse chrome extension crx file

Crx is a utility to package Google Chrome extensions via a Node API and the command line.















Lighthouse chrome extension crx file