0.4.1 • Published 2 years ago

chrome-extension-manifest-factory v0.4.1

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

Chrome Extension Manifest Factory

A tool for writing manifest.json of Chrome Extension with type completion

Installation

npm i chrome-extension-manifest-factory
# or
yarn add chrome-extension-manifest-factory

Examples

define your extension's manifest.json in .ts file,

// manifest.json.ts
import {Manifest} from "chrome-extension-manifest-factory"

const json: Manifest.Json = {
  // required fields
  manifest_version: 3, // currently only v3 series are supported.
  name: "Your Chrome Extension Name",
  version: "1.0.0"
  
  // optional fields...
}

export default json

either in .js file,

/**
 * @type {import("chrome-extension-manifest-factory").Manifest.Json}
 */
const json = {
    // required fields
    manifest_version: 3,
    name: "Your Chrome Extension Name",
    version: "1.0.0",
    
    // optional fields...
}

export default json

then, execute next command

npm run manifest-factory ./manifest.json.js manifest.json
# or
yarn run manifest-factory ./manifest.json.ts manifest.json
0.4.1

2 years ago

0.4.0

2 years ago

0.3.3

2 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago