MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / basename

Method basename

tests/__mocks__/obsidian.ts:222–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 get basename(): string {
223 const name = this.name;
224 const lastDot = name.lastIndexOf('.');
225 return lastDot > 0 ? name.substring(0, lastDot) : name;
226 }
227
228 get extension(): string {
229 const name = this.name;

Callers 3

getAvailableLocalesFunction · 0.80
openFileByPathFunction · 0.80

Calls

no outgoing calls

Tested by 1

openFileByPathFunction · 0.64