UNPKG
@imjxsx/localdb
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.1
1.0.0
A lightweight MongoDB-style BSON database for Node.js
github.com/imjxsx/localdb
imjxsx/localdb
@imjxsx/localdb
/
dist
/
core
/
localdb.js
3 lines
(2 loc)
•
261 B
JavaScript
View Raw
1
2
3
import
r
from
"node:path"
;
import
{
DB
as
o}
from
"./db.js"
;
class
p
{basepath;
constructor
(
t
){
this
.
basepath
=r.
isAbsolute
(t)?
t
:r.
resolve
(t)}
db
(
t
){
const
s=r.
resolve
(
this
.
basepath
,t.
toLowerCase
());
return
new
o
(s)}}
export
{p
as
LocalDB
};
//# sourceMappingURL=localdb.js.map