MCPcopy Create free account
hub / github.com/scriptscat/scriptcat / isScriptletUnwrap

Function isScriptletUnwrap

src/app/service/content/utils.ts:280–282  ·  view source on GitHub ↗
(metadata: SCMetadata)

Source from the content-addressed store, hash-verified

278}
279
280export function isScriptletUnwrap(metadata: SCMetadata): boolean {
281 return metadataBlankOrTrue(metadata, "unwrap");
282}
283
284export function isInjectIntoContent(metadata: SCMetadata): boolean {
285 return metadata["inject-into"]?.[0] === "content";

Callers 3

compileInjectionCodeFunction · 0.90
utils.test.tsFile · 0.90

Calls 1

metadataBlankOrTrueFunction · 0.85

Tested by

no test coverage detected