MCPcopy Create free account
hub / github.com/css-modules/css-modules-require-hook / readfile

Function readfile

test/tokens/index.js:36–42  ·  view source on GitHub ↗

* @param {...string} file * @return {string|null}

(file)

Source from the content-addressed store, hash-verified

34 * @return {string|null}
35 */
36function readfile(file) {
37 try {
38 return readFileSync(resolve.apply(null, arguments), 'utf8');
39 } catch(e) {
40 return null;
41 }
42}
43
44suite('tokens', () => {
45 setup(() => hook({}));

Callers 1

describeTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…