MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / findLatestVersion

Function findLatestVersion

apps/site/scripts/release-post/index.mjs:98–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 );
97
98const findLatestVersion = () =>
99 request({ url: URLS.NODE_DIST_JSON, json: true })
100 .then(versions => versions.length && versions[0])
101 .then(({ version }) => version.substr(1));
102
103const fetchDocs = version => {
104 const blogPostPieces = [

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected