Socket
Socket
Sign inDemoInstall

lowdb

Package Overview
Dependencies
6
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.3 to 0.12.4

dist/lowdb.js

13

package.json
{
"name": "lowdb",
"version": "0.12.3",
"version": "0.12.4",
"description": "JSON database for Node and the browser powered by lodash",

@@ -24,3 +24,6 @@ "keywords": [

"precommit": "npm test",
"build": "babel src --out-dir ."
"build": "npm run babel && npm run umd && npm run min",
"babel": "babel src --out-dir . --ignore dist.js",
"umd": "webpack src/dist.js dist/lowdb.js --output-library low",
"min": "webpack -p src/dist.js dist/lowdb.min.js --output-library low"
},

@@ -47,5 +50,6 @@ "repository": {

"babel-eslint": "^4.1.6",
"babel-loader": "^6.2.2",
"babel-preset-es2015": "^6.1.18",
"babel-preset-stage-3": "^6.3.13",
"husky": "^0.10.2",
"husky": "^0.11.0",
"sinon": "^1.17.2",

@@ -56,3 +60,4 @@ "standard": "^4.0.1",

"tempfile": "^1.1.1",
"underscore-db": "^0.9.0"
"underscore-db": "^0.9.0",
"webpack": "^1.12.13"
},

@@ -59,0 +64,0 @@ "engines": {

@@ -33,8 +33,7 @@ # 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)

## Support
## ES2015
Examples use ES2015 syntax, it's supported by Node 5+. Node 0.12 is supported too but you need to use the older syntax.
Examples use ES2015 syntax for convenience, but you can use ES5 syntax too. For example:
```js
// For Node 0.12
var db = low('db.json', { storage: storage })

@@ -45,4 +44,6 @@ ```

## Install
## Installation
Using npm:
```bash

@@ -52,2 +53,12 @@ npm install lowdb --save

A standalone UMD build is also available on [npmcdn](https://npmcdn.com/):
```html
<script src="http://npmcdn.com/lowdb@^0.12.4/dist/lowdb.min.js"></script>
<script>
var db = low() // in-memory
var db = low('db', { storage: low.localStorage }) // localStorage
</script>
```
## Features

@@ -54,0 +65,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc