MCPcopy Index your code
hub / github.com/cameri/nostream / hasLzmaNative

Function hasLzmaNative

test/unit/utils/compression.spec.ts:20–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18} from '../../../src/utils/compression'
19
20const hasLzmaNative = (): boolean => {
21 try {
22 require.resolve('lzma-native')
23
24 return true
25 } catch {
26 return false
27 }
28}
29
30const toBuffer = async (stream: NodeJS.ReadableStream): Promise<Buffer> => {
31 const chunks: Buffer[] = []

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected