Added filename helper
This commit is contained in:
parent
550784be54
commit
7dcebb8865
@ -517,6 +517,10 @@ function Library (ronin) {
|
|||||||
return path
|
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.
|
this.exit = (force = false) => { // Exits Ronin.
|
||||||
ronin.source.quit(force)
|
ronin.source.quit(force)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user