google-chrome-extension Obtaining manifest from extension code


Example

chrome.runtime.getManifest() returns the extension's manifest in a form of a parsed object.

This method works both on content scripts and all extension pages, it requires no permissions,

Example, obtaining the extension's version string:

var version = chrome.runtime.getManifest().version;