UNPKG
@lando/mongo
Version:
edge (1.4.0)
latest (1.4.0)
1.4.0
1.3.0
1.2.3
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
0.9.0
0.8.0
0.7.0
0.6.0
0.5.0
A Lando plugin that provides a tight integration with MongoDB.
github.com/lando/mongo
lando/mongo
@lando/mongo
/
node_modules
/
semver
/
functions
/
clean.js
9 lines
(7 loc)
•
205 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
'use strict'
const
parse =
require
(
'./parse'
)
const
clean
= (
version, options
) => {
const
s =
parse
(version.
trim
().
replace
(
/^[=v]+/
,
''
), options)
return
s ? s.
version
:
null
}
module
.
exports
= clean