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

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.13.0-beta-5 to 0.13.0

8

examples/README.md

@@ -10,3 +10,3 @@ # Examples

db.defauls({ posts: [] })
db.defaults({ posts: [] })
.value()

@@ -32,3 +32,3 @@

db.defauls({ posts: [] })
db.defaults({ posts: [] })
.value()

@@ -62,3 +62,3 @@

// Init
db.defauls({ posts: [] })
db.defaults({ posts: [] })
.value()

@@ -127,3 +127,3 @@

db.defauls({ posts: [] })
db.defaults({ posts: [] })
.value()

@@ -130,0 +130,0 @@

{
"name": "lowdb",
"version": "0.13.0-beta-5",
"version": "0.13.0",
"description": "JSON database for Node and the browser powered by lodash API",

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

@@ -32,3 +32,3 @@ # 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)

And you can query it using lodash API
And you can query it using [lodash API](https://lodash.com/docs)

@@ -45,3 +45,9 @@ ```js

[__Migrating from 0.12 to 0.13? See this guide.__]()
* [Usage examples](https://github.com/typicode/lowdb/tree/master/examples)
* [CLI](https://github.com/typicode/lowdb/tree/master/examples#cli)
* [Browser](https://github.com/typicode/lowdb/tree/master/examples#browser)
* [Server](https://github.com/typicode/lowdb/tree/master/examples#server)
* [In-memory](https://github.com/typicode/lowdb/tree/master/examples#in-memory)
* [JSFiddle live example](https://jsfiddle.net/typicode/4kd7xxbu/)
* [__Migrating from 0.12 to 0.13? See this guide.__](https://github.com/typicode/lowdb/releases/tag/v0.13.0-beta.4)

@@ -64,3 +70,3 @@ ## Why lowdb?

```sh
npm install lowdb@next lodash@4 --save
npm install lowdb lodash@4 --save
```

@@ -205,2 +211,3 @@

Sort the top five posts.

@@ -232,7 +239,6 @@

Make a deep clone of posts.
Get the title of first post using a path.
```js
db.get('posts')
.cloneDeep()
db.get('posts[0].title')
.value()

@@ -258,2 +264,11 @@ ```

Make a deep clone of posts.
```js
db.get('posts')
.cloneDeep()
.value()
```
### How to use id based resources

@@ -260,0 +275,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