Provides a simple and convenient way to access important information about your package, such as its name, version, and scope.
npm install @omer-x/package-metadata
import getPackageMetadata from "@omer-x/package-metadata";
const packageMetadata = getPackageMetadata();
console.log(packageMetadata);
Function to extract metadata from package.json
.
{
"scope": "@omer-x",
"packageName": "@omer-x/package-metadata",
"moduleName": "package-metadata",
"serviceName": "Package Metadata",
"version": "0.1.0"
}
This project is licensed under the MIT License - see the LICENSE file for details.