@omer-x/package-metadata

Extracts essential metadata from package.json


Keywords
package, package.json, metadata
License
MIT
Install
npm install @omer-x/package-metadata@0.1.0

Documentation

Package Metadata

npm version npm downloads codecov License: MIT GitHub last commit GitHub issues GitHub stars

Provides a simple and convenient way to access important information about your package, such as its name, version, and scope.

Installation

npm install @omer-x/package-metadata

Usage

import getPackageMetadata from "@omer-x/package-metadata";

const packageMetadata = getPackageMetadata();
console.log(packageMetadata);

API

getPackageMetadata(): PackageMetadata

Function to extract metadata from package.json.

Returns

{
  "scope": "@omer-x",
  "packageName": "@omer-x/package-metadata",
  "moduleName": "package-metadata",
  "serviceName": "Package Metadata",
  "version": "0.1.0"
}

License

This project is licensed under the MIT License - see the LICENSE file for details.