Socket
Socket
Sign inDemoInstall

lowdb

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lowdb - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

2

package.json
{
"name": "lowdb",
"version": "0.9.0",
"version": "0.10.0",
"description": "Flat JSON file database",

@@ -5,0 +5,0 @@ "keywords": [

@@ -72,8 +72,8 @@ # lowdb [![NPM version](https://badge.fury.io/js/lowdb.svg)](http://badge.fury.io/js/lowdb) [![Build Status](https://travis-ci.org/typicode/lowdb.svg?branch=master)](https://travis-ci.org/typicode/lowdb)

__db.mixin(source)__
__db.___
Use it to extend db with your own utility functions or third-party libraries.
Database lodash instance. Use it for example to add your own utility functions or third-party libraries.
```javascript
db.mixin({
db._.mixin({
second: function(array) {

@@ -182,3 +182,3 @@ return array[1]

db.mixin(require('underscore-db'))
db._.mixin(require('underscore-db'))

@@ -185,0 +185,0 @@ var songId = db('songs').insert({ title: 'low!' }).id

@@ -83,6 +83,6 @@ var lodash = require('lodash')

db.mixin = function (arg) {
_.mixin(arg)
}
// Expose lodash instance
db._ = _
// Expose database object
db.object = {}

@@ -89,0 +89,0 @@

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