MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / toCommentSeparator

Function toCommentSeparator

src/code-gen/comments.ts:6–13  ·  view source on GitHub ↗
(comment: string)

Source from the content-addressed store, hash-verified

4};
5
6export const toCommentSeparator = (comment: string) => {
7 const halfSpaceBefore = Math.ceil((64 - comment.length) / 2);
8 return [
9 `/*${"/".repeat(62)}`,
10 `${" ".repeat(halfSpaceBefore)}${comment}`,
11 `${"/".repeat(62)}*/`,
12 ];
13};
14
15export const toNatspec = (comments: string[]) => ([
16 "/**",

Callers 1

addSectionMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected