vscode-extension-manifest
v0.0.3
Published
VSCode extension manifest type definitions, validators, and utilities
Downloads
112
Maintainers
Readme
vscode-extension-manifest
VSCode extension manifest type definitions.
Install
npm install vscode-extension-manifest -D
yarn add vscode-extension-manifest -D
pnpm add vscode-extension-manifest -D
Usage
import { readExtensionManifest } from 'vscode-extension-manifest'
console.log(await readExtensionManifest())
//=> VSCode extension manifest with types definition
API
readExtensionManifest
Returns a Promise
for VSCode extension manifest with type definition.
readExtensionManifestSync
Returns the VSCode extension manifest with type definition.
validateExtensionManifest
Returns true
if the extension manifest is valid, false
otherwise.
By checking the following properties:
publisher
Parameters
for readExtensionManifest
and readExtensionManifestSync
filename
- Type:
string
- Default:
package.json
The filename of the extension manifest.
cwd
- Type:
string | URL
- Default:
process.cwd()
The current working directory of the extension manifest.