MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / readSnippet

Function readSnippet

packages/ember/index.js:5–7  ·  view source on GitHub ↗
(fileName)

Source from the content-addressed store, hash-verified

3const crypto = require('crypto');
4
5function readSnippet(fileName) {
6 return fs.readFileSync(`${__dirname}/vendor/${fileName}`, 'utf8');
7}
8
9function hashSha256base64(string) {
10 return crypto.createHash('sha256').update(string).digest('base64');

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected