atom-read-manifest

Read the manifest (package.json) of any installed Atom package

Usage no npm install needed!

<script type="module">
  import atomReadManifest from 'https://cdn.skypack.dev/atom-read-manifest';
</script>

README

atom-read-manifest

npm npm CircleCI David

Read the manifest (package.json) of any installed Atom package

Installation

npm install atom-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('atom-read-manifest');

// Unique package identifier
const packageID = 'teletype';

// 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