chrome-extension-manifest-json-schema

0.2.0 • Public • Published

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

Package Sidebar

Install

npm i chrome-extension-manifest-json-schema

Weekly Downloads

243

Version

0.2.0

License

MIT

Unpacked Size

36.6 kB

Total Files

5

Last publish

Collaborators

  • cezaraugusto