MCPcopy Index your code
hub / github.com/cloudgraphdev/cli / getText

Function getText

release/scripts/homebrew.js:20–36  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

18const NODE_VERSION = PJSON.oclif.update.node.version
19const SHORT_VERSION = PJSON.version
20async function getText(url) {
21 return new Promise((resolve, reject) => {
22 https
23 .get(url, res => {
24 let buffer = []
25
26 res.on('data', buf => {
27 buffer.push(buf)
28 })
29
30 res.on('close', () => {
31 resolve(Buffer.concat(buffer).toString('utf-8'))
32 })
33 })
34 .on('error', reject)
35 })
36}
37
38async function getDownloadInfoForNodeVersion(version) {
39 // https://nodejs.org/download/release/v12.21.0/SHASUMS256.txt

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected