New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

local-lowdb

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-lowdb

Simple And Fast JSON database, copy from lowdb

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

介绍

这是一个基于本地 json 文件的持久化存储方案,可以用于轻量级本地存储场景,比如爬虫进度记录,可能就是一个下标,没必要引入关系型数据库做存储

Install (安装)

npm i local-lowdb --save

API

// init db
const file = path.join(cacheDir, './db.json');
let db = await JSONFilePreset<Data>(file, {
  liveFeed: 0,
});

//read
console.log(db.data.liveFeed);

//write
db.data.liveFeed = 99;
await db.write();


Keywords

throttler

FAQs

Package last updated on 05 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts