@marceloxp/getpackageinfo
v1.0.1
Published
Get basic info from package.json
Downloads
3
Readme
getpackageinfo
Get basic info from package.json
Installation
yarn add getpackageinfo --dev
Usage
nodejs
const getpackageinfo = require('getpackageinfo');
const data = getpackageinfo.data();
console.log(data);
gulp
const getpackageinfo = require('getpackageinfo');
gulp.task
(
'test',
() =>
{
const data = getpackageinfo.data(); // Package name, version, next (version)
const name = getpackageinfo.name(); // Package name
const version = getpackageinfo.version(); // Package version
const next = getpackageinfo.next(); // Package next (version)
}
);