Part of Obsidian guides
// myUserScript.js
class SomeClass {
functionOne () {
new Notice('functionOne', 5000)
}
functionTwo () {
new Notice('functionTwo', 5000)
}
}
module.exports = SomeClass
<%*
// Templater template
const foo = new tp.user.myUserScript
foo.functionTwo()
%>