UNPKG
create-manifest
Version:
latest (2.0.2)
2.0.2
2.0.1
2.0.0
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.1
1.2.0
1.1.11
1.1.10
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
Create a new Manifest backend
manifest.build
mnfst/manifest
create-manifest
/
dist
/
utils
/
GetLatestPackageVersion.js
6 lines
(5 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
export
const
getLatestPackageVersion
=
async
(
packageName
) => {
const
response =
await
fetch
(
`https://registry.npmjs.org/
${packageName}
`
);
const
data =
await
response.
json
();
return
data[
'dist-tags'
].
latest
; };