Skip to content

cezaraugusto/chrome-extension-manifest-json-schema

Repository files navigation

chrome-extension-manifest-json-schema workflow npm

JSON schemas for Chrome extension manifest files (V2 and V3) with support for Node.js

JSON schemas for Chrome extension manifest files. For info about JSON schemas, see json-schema.org.

What's included?

  • V3 - includes the current Chrome implementation with specific backward compatibility according to the Chrome team.
  • V2 - includes the legacy Manifest V2 Chrome implementation possibly expired or with an expiring date soon.

Source code on schemastore.

Usage

You can either point to V3 or V2 schemas or get it by the Node.js interface.

const {manifestV2Schema, manifestV3Schema} = require('chrome-extension-manifest-json-schema')

console.log(manifestV3Schema)

Outputs:

{
  "title": "JSON schema for Google Chrome extension manifest files",
  "$schema": "http://json-schema.org/draft-07/schema#",

  "type": "object",
  "additionalProperties": true,
  "required": [ "manifest_version", "name", "version" ],

  "properties": {
    "manifest_version": {
      "type": "number",
      "description": "One integer specifying the version of the manifest file format your package requires.",
      "enum": [ 2, 3 ]
    },
    // ...other stuff
  }
}

License

Public domain

About

Chrome extension manifest JSON schemas (V2 and V3) with support for Node.js

Resources

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published