Skip to content

createStore<T>(defaultData, options?): Promise<Low<T>>

在插件目录下创建并读取一个 JSON 数据存储(默认 data.json)

Type Parameters ​

T ​

T extends object = object

Parameters ​

defaultData ​

T

options? ​

__dirname? ​

string

compress? ​

boolean

filename? ​

string

importMeta? ​

ImportMeta

Returns ​

Promise<Low<T>>

Released under the MIT License with love.