MCPcopy Index your code
hub / github.com/darkreader/darkreader / getVersion

Function getVersion

tasks/bundle-api.js:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14import {createTask} from './task.js';
15
16async function getVersion() {
17 const file = await fs.promises.readFile(new URL('../package.json', import.meta.url), 'utf8');
18 const p = JSON.parse(file);
19 return p.version;
20}
21
22/** @type {string[]} */
23let watchFiles = [];

Callers 1

bundleAPIModuleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected