vscode-read-manifest
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

vscode-read-manifest

npm npm CircleCI David

Read the manifest (package.json) of any installed Visual Studio Code extension

Installation

npm install vscode-read-manifest -S

Usage

readManifest(packageID?: string) / readManifestSync(packageID?: string)

You can omit the package ID to retrieve the manifest of the package in use

Example:

const { readManifest, readManifestSync } = require('vscode-read-manifest');
 
// Unique package identifier
const packageID = 'idleberg.applescript';
 
// Asynchronous
(async () => {
    const manifest = await readManifest(packageID);
    console.log(manifest);
})();
 
// Synchronous
const manifest = readManifestSync(packageID);
console.log(manifest);

Related

License

This work is licensed under The MIT License

Donate

You are welcome to support this project using Flattr or Bitcoin 17CXJuPsmhuTzFV2k4RKYwpEHVjskJktRd

Package Sidebar

Install

npm i vscode-read-manifest

Weekly Downloads

3

Version

0.5.1

License

MIT

Unpacked Size

9.63 kB

Total Files

5

Last publish

Collaborators

  • idleberg