chrome-extension-manifest-schema

JSON Schema for validating Chrome extension manifest.json

npm install chrome-extension-manifest-schema
2 downloads in the last week
4 downloads in the last month

chrome-extension-manifest-schema

JSON Schema for validating Chrome extension manifest.json

This module provides a JSON Schema (v4) that describes Chrome extension manifest.json files. To validate a JSON file against the schema, you will need to use a JSON Schema validator with v4 support.

Example using the TV4 validator via the grunt-tv4 plugin to validate a "manifest.json" file:

# Gruntfile.coffee

module.exports = (grunt) ->
  grunt.initConfig
    tv4:
      manifest:
        src: "manifest.json"
        options:
          root: require('chrome-extension-manifest-schema')

  grunt.loadNpmTasks "grunt-tv4"
  grunt.registerTask 'default', 'tv4'
npm loves you