MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getLineNumber

Function getLineNumber

apps/storybook/scripts/component-inventory.js:143–145  ·  view source on GitHub ↗
(content, index)

Source from the content-addressed store, hash-verified

141}
142
143function getLineNumber(content, index) {
144 return content.slice(0, index).split('\n').length;
145}
146
147function extractExportedComponents(content) {
148 const stripped = stripComments(content);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected