0.1.0 • Published 4 years ago
easeschematicparse v0.1.0
easeSchematicParse
A package for parsing "schematic versioning" versions, easily. hey! what are u doin' there?
About
The name sounds a bit weird right?
This package, allows you to parse schematic versions, including rebuilding them!
It's also written in TypeScript. For the first time!
Install
npm i easeschematicparse
or
npm install easeschematicparse
Usage
NOTE: You can't use typescript from it.
const { parse, reBuild } = require('easeSchematicParse');
// Parse
const ver = parse('1.0.0');
console.log(ver);
/*
{
major: "1",
minor: "0",
patch: "0"
}
*/
// Rebuild
let newVer = reBuild(ver);
console.log(newVer);
/*
1.0.0
/*
0.1.0
4 years ago