UNPKG
lowkie
Version:
latest (1.4.0)
1.4.0
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.0
1.0.2
1.0.0
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.1
0.2.0
0.1.2
0.1.1
0.1.0
0.0.2
0.0.1
My Custom lowkie / Express Applcation
github.com/typesettin/lowkie
lowkie
/
test
/
util
/
removeTestDB.js
8 lines
(7 loc)
•
166 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
const
fs =
require
(
'fs-extra'
);
module
.
exports
=
(
dbpath, removeAll
) =>
{
if
(removeAll) { fs.
removeSync
(dbpath +
'.0'
); } fs.
removeSync
(dbpath); };