@omer-x/package-metadata

1.0.2 • Public • Published

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.

Package Sidebar

Install

npm i @omer-x/package-metadata

Weekly Downloads

57

Version

1.0.2

License

MIT

Unpacked Size

11.6 kB

Total Files

7

Last publish

Collaborators

  • omer-x