4.0.1 • Published 5 months ago
painless-version v4.0.1
painless-version
Intuitive version management abstraction
Install
npm i --save painless-version
Getting Started
import { test } from 'painless-version';
const version = '5.3.5';
test(`1.2.3 < ${version}`);
// => true
Functions
test(expression: String)
Evaluate comparison string of form LHS CMP RHS
where LHS
and RHS
are
version strings and CMP
is one of <
, <=
, >
, >=
, =
.
Under the hood this uses compare-versions.
updateDeprecationHeaders(headers: {}, { deprecationDate: Date, sunsetDate: Date })
Modifies the headers object in place assuming this is a response headers object.
Updates headers deprecation and sunset
Existing headers are only overwritten if the date present is further in the future.
4.0.1
5 months ago
4.0.0
5 months ago
3.0.0
2 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.2.8
4 years ago
1.2.9
4 years ago
1.2.7
5 years ago
1.2.6
5 years ago
1.2.5
5 years ago
1.2.4
5 years ago
1.2.3
5 years ago
1.2.2
5 years ago
1.2.0
5 years ago
1.2.1
5 years ago
1.1.6
5 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago