@omer-x/package-metadata
v1.0.2
Published
Extracts essential metadata from package.json
Downloads
965
Readme
Package Metadata
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.