MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / formatHeader

Function formatHeader

packages/cli/generators/copyright/header.js:136–139  ·  view source on GitHub ↗

* Format the header for a file * @param {string} file - JS/TS file * @param {string} pkg - Package json object * @param {object} options - Options

(file, pkg, options)

Source from the content-addressed store, hash-verified

134 * @param {object} options - Options
135 */
136async function formatHeader(file, pkg, options) {
137 const header = await buildHeader(file, pkg, options);
138 return header.split('\n').map(line => `//${line}`);
139}
140
141/**
142 * Ensure the file is updated with the correct header

Callers 1

ensureHeaderFunction · 0.85

Calls 1

buildHeaderFunction · 0.85

Tested by

no test coverage detected