extra-semver
v0.2.2
Published
```sh npm install --save extra-semver # or yarn add extra-semver ```
Downloads
1,433
Readme
extra-semver
Install
npm install --save extra-semver
# or
yarn add extra-semver
API
simplify
function simplify(version: string): string
simplify('1.0.0') // '1'
simplify('1.1.0') // '1'
simplify('0.1.0') // '0.1'
createMigration
function createMigration(
semverCondition: string
, resultVersion: string
, fn: () => Awaitable<void>
): (currentVersion: string) => Promise<string>
createMigration('^1.0.0', '2.0.0', () => {
// ...
})