crx3lite

package module
v0.0.0-...-9a0120c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

README

go-crx3lite

A stripped down respin of mmadfox/go-crx3 with support for reading existing crx3 files and processing them in memory instead of being based around reading/writing files on disk.

License

go-crx3lite is released under the Apache 2.0 license. See LICENSE.txt

Credits

go-crx3lite is derived from go-crx3 by MediaBuyerBot which was released under the Apache 2.0 license.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedFileFormat = errors.New("crx3: unsupported file format")
	ErrExtensionNotSpecified = errors.New("crx3: extension id not specified")
)

Functions

func DownloadFromWebStore

func DownloadFromWebStore(extensionID string) (rawPkg []byte, err error)

DownloadFromWebStore downloads a chrome extension from the web store. ExtensionID can be an identifier or an url.

func ID

func ID(crx []byte) (id string, err error)

ID returns the extension id.

func IsCRX

func IsCRX(buf []byte) bool

func SetWebStoreURL

func SetWebStoreURL(u string)

SetWebStoreURL sets the web store url to download extensions. web store URL is expected to contain {id} which will be replaced with the ExtensionID

func Unpack

func Unpack(crx []byte) (zip []byte, err error)

Unpack unpacks chrome extension into some directory.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL