chrome-extension-manifest-json-schema
v0.2.1
Published
JSON schemas for Chrome extension manifest files (V2 and V3) with support for Node.js
Downloads
372
Maintainers
Readme
chrome-extension-manifest-json-schema
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