0.1.0 • Published 2 years ago

chrome-extesion-manifest-json-schema v0.1.0

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

chrome-extesion-manifest-json-schema workflow npm

Chrome extension manifest JSON schemas (V2 and V3)

JSON schemas for Chrome extension manifest files. For more information 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-extesion-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