Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldbjs

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldbjs - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

17

index.js

@@ -5,2 +5,11 @@ const fs = require('fs');

// criar uma pasta para armazenar os dados
ldb.createDB = (path, name, callback)=>{
fs.mkdir(`${path}/${name}`, { recursive: true }, (err)=>{
if(err) throw err;
if(callback) callback();
});
}
// criar arquivo

@@ -35,3 +44,11 @@ ldb.createDBFile = (path, file, callback)=>{

// clonar os dados de um arquivos
ldb.cloneDBFile = (path, file, toPath, toFile, callback)=>{
fs.copyFile(`${path}/${file}.ldb`, `${toPath}/${toFile}.ldb`, (err)=>{
if(err) throw err;
if(callback) callback();
});
}
// sobrescrever dados

@@ -38,0 +55,0 @@ ldb.overwriteData = (path, file, content, callback)=>{

2

package.json
{
"name": "ldbjs",
"version": "0.0.4",
"version": "0.0.5",
"description": "Create and manage local db files and data",

@@ -5,0 +5,0 @@ "main": "./index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc