Skip to content

extension-js/create

Repository files navigation

Empowering Version Downloads

extension-create

The standalone extension creation engine from Extension.js. It provides an intuitive API for programmatically creating browser extensions with support for multiple frameworks and templates.

Installation

Install the package using your preferred package manager:

npm install extension-create
# or
pnpm add extension-create
# or
yarn add extension-create

Quick Start

Create a new extension with a single function call:

import {extensionCreate} from 'extension-create'

// Create a basic extension
await extensionCreate('my-extension', {
  template: 'init'
})

// Create a React extension and install its dependencies
await extensionCreate('my-react-extension', {
  template: 'react',
  install: true
})

API Reference

extensionCreate(projectName, options)

Creates a new extension project with the specified configuration.

Parameters

  • projectName (string, required) - The name of your extension project
  • options (object) - Configuration options
    • template (string, optional) - Template name or URL. Defaults to 'init'
    • install (boolean, optional) - Whether to install dependencies. Defaults to true
    • cliVersion (string, optional) - CLI version for package.json

Templates

Templates are sourced from the public Examples repository. See the catalog at https://github.com/extension-js/examples and reference templates by name, e.g. content, content-react, content-vue, etc.

License

MIT (c) Cezar Augusto.

About

The standalone extension creation engine for Extension.js

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Contributors 2

  •  
  •