Events
Dubnium uses the built-in Events module to send messages when something happens!
Last updated
Dubnium uses the built-in Events module to send messages when something happens!
create
Tag & content
Fires when a Record is created.
delete
Tag
Fires when a Record is deleted.
edit
Tag, old & new content
Fires when a Record's value changes.
retagged
Old & new tag
Fires when a Record's tag changes.
wipe
Directory path
Fires when the database is wiped.
close
Directory path
Fires when the database is closed.
deleteOld
Options
Fires when deleteOld is called. (Will also fire delete for any Records deleted)
dir
Directroy path
Fires when the directory is created.
clone
Tag, target
Fires when a Record is cloned.
symlink
Tag & path to symlink
Fires when a Symlink is created.
db.on('create', (tag, content) => {
console.log(`${tag} was created!`)
})Last updated