Added filename helper

This commit is contained in:
Devine Lu Linvega 2019-07-30 16:52:05 +09:00
parent 550784be54
commit 7dcebb8865

View File

@ -517,6 +517,10 @@ function Library (ronin) {
return path
}
this.filename = (path = this.filepath()) => { // Returns the name of a file.
return require('path').parse(path).name
}
this.exit = (force = false) => { // Exits Ronin.
ronin.source.quit(force)
}