Comparing version 0.9.0 to 0.10.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10200