{
  "name": "sqlite3",
  "description": "Asynchronous, non-blocking SQLite3 bindings",
  "version": "3.1.3",
  "homepage": "http://github.com/mapbox/node-sqlite3",
  "author": {
    "name": "MapBox",
    "url": "https://mapbox.com/"
  },
  "binary": {
    "module_name": "node_sqlite3",
    "module_path": "./lib/binding/{node_abi}-{platform}-{arch}",
    "host": "https://mapbox-node-binary.s3.amazonaws.com",
    "remote_path": "./{name}/v{version}/{toolset}/",
    "package_name": "{node_abi}-{platform}-{arch}.tar.gz"
  },
  "contributors": [
    {
      "name": "Konstantin Käfer",
      "email": "mail@kkaefer.com"
    },
    {
      "name": "Dane Springmeyer",
      "email": "dane@mapbox.com"
    },
    {
      "name": "Will White",
      "email": "will@mapbox.com"
    },
    {
      "name": "Orlando Vazquez",
      "email": "ovazquez@gmail.com"
    },
    {
      "name": "Artem Kustikov",
      "email": "kustikoff@gmail.com"
    },
    {
      "name": "Eric Fredricksen",
      "email": "efredricksen@gmail.com"
    },
    {
      "name": "John Wright",
      "email": "mrjjwright@gmail.com"
    },
    {
      "name": "Ryan Dahl",
      "email": "ry@tinyclouds.org"
    },
    {
      "name": "Tom MacWright",
      "email": "tom@mapbox.com"
    },
    {
      "name": "Carter Thaxton",
      "email": "carter.thaxton@gmail.com"
    },
    {
      "name": "Audrius Kažukauskas",
      "email": "audrius@neutrino.lt"
    },
    {
      "name": "Johannes Schauer",
      "email": "josch@pyneo.org"
    },
    {
      "name": "Nathan Rajlich",
      "email": "nathan@tootallnate.net"
    },
    {
      "name": "AJ ONeal",
      "email": "coolaj86@gmail.com"
    },
    {
      "name": "Mithgol"
    },
    {
      "name": "Ben Noordhuis",
      "email": "ben@strongloop.com"
    }
  ],
  "repository": {
    "type": "git",
    "url": "git://github.com/mapbox/node-sqlite3.git"
  },
  "dependencies": {
    "nan": "~2.2.0",
    "node-pre-gyp": "~0.6.25"
  },
  "devDependencies": {
    "mocha": "~2.3.3",
    "aws-sdk": "~2.1.26"
  },
  "scripts": {
    "prepublish": "npm ls",
    "install": "node-pre-gyp install --fallback-to-build",
    "pretest": "node test/support/createdb.js",
    "test": "mocha -R spec --timeout 480000"
  },
  "license": "BSD-3-Clause",
  "keywords": [
    "sql",
    "sqlite",
    "sqlite3",
    "database"
  ],
  "main": "./lib/sqlite3",
  "readme": "Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings for [Node.js](http://nodejs.org/).\n\n[![NPM](https://nodei.co/npm/sqlite3.png?downloads=true&downloadRank=true)](https://nodei.co/npm/sqlite3/)\n\n[![Build Status](https://travis-ci.org/mapbox/node-sqlite3.svg?branch=master)](https://travis-ci.org/mapbox/node-sqlite3)\n[![Build status](https://ci.appveyor.com/api/projects/status/gvm7ul0hpmdawqom)](https://ci.appveyor.com/project/Mapbox/node-sqlite3)\n[![Coverage Status](https://coveralls.io/repos/mapbox/node-sqlite3/badge.svg?branch=master&service=github)](https://coveralls.io/github/mapbox/node-sqlite3?branch=master)\n[![Dependencies](https://david-dm.org/mapbox/node-sqlite3.svg)](https://david-dm.org/mapbox/node-sqlite3)\n\n\n## Supported platforms\n\nThe `sqlite3` module works with Node.js v0.10.x, v0.12.x, v4.x, and v5.x.\n\nBinaries for most Node versions and platforms are provided by default via [node-pre-gyp](https://github.com/mapbox/node-pre-gyp).\n\nThe `sqlite3` module also works with [node-webkit](https://github.com/rogerwang/node-webkit) if node-webkit contains a supported version of Node.js engine. [(See below.)](#building-for-node-webkit)\n\nSQLite's [SQLCipher extension](https://github.com/sqlcipher/sqlcipher) is also supported. [(See below.)](#building-for-sqlcipher)\n\n# Usage\n\n**Note:** the module must be [installed](#installing) before use.\n\n``` js\nvar sqlite3 = require('sqlite3').verbose();\nvar db = new sqlite3.Database(':memory:');\n\ndb.serialize(function() {\n  db.run(\"CREATE TABLE lorem (info TEXT)\");\n\n  var stmt = db.prepare(\"INSERT INTO lorem VALUES (?)\");\n  for (var i = 0; i < 10; i++) {\n      stmt.run(\"Ipsum \" + i);\n  }\n  stmt.finalize();\n\n  db.each(\"SELECT rowid AS id, info FROM lorem\", function(err, row) {\n      console.log(row.id + \": \" + row.info);\n  });\n});\n\ndb.close();\n```\n\n# Features\n\n - Straightforward query and parameter binding interface\n - Full Buffer/Blob support\n - Extensive [debugging support](https://github.com/mapbox/node-sqlite3/wiki/Debugging)\n - [Query serialization](https://github.com/mapbox/node-sqlite3/wiki/Control-Flow) API\n - [Extension support](https://github.com/mapbox/node-sqlite3/wiki/Extensions)\n - Big test suite\n - Written in modern C++ and tested for memory leaks\n\n\n# API\n\nSee the [API documentation](https://github.com/mapbox/node-sqlite3/wiki) in the wiki.\n\n\n# Installing\n\nYou can use [`npm`](https://github.com/isaacs/npm) to download and install:\n\n* The latest `sqlite3` package: `npm install sqlite3`\n\n* GitHub's `master` branch: `npm install https://github.com/mapbox/node-sqlite3/tarball/master`\n\nThe module uses [node-pre-gyp](https://github.com/mapbox/node-pre-gyp) to download a pre-compiled binary for your platform, if it exists. Otherwise, it uses `node-gyp` to build the extension.\n\nIt is also possible to make your own build of `sqlite3` from its source instead of its npm package ([see below](#building-from-the-source)).\n\nIt is possible to use the installed package in [node-webkit](https://github.com/rogerwang/node-webkit) instead of the vanilla Node.js. See [Building for node-webkit](#building-for-node-webkit) for details.\n\n## Source install\n\nTo skip searching for pre-compiled binaries, and force a build from source, use\n\n    npm install --build-from-source\n\nThe sqlite3 module depends only on libsqlite3. However, by default, an internal/bundled copy of sqlite will be built and statically linked, so an externally installed sqlite3 is not required.\n\nIf you wish to install against an external sqlite then you need to pass the `--sqlite` argument to `npm` wrapper:\n\n    npm install --build-from-source --sqlite=/usr/local\n\nIf building against an external sqlite3 make sure to have the development headers available. Mac OS X ships with these by default. If you don't have them installed, install the `-dev` package with your package manager, e.g. `apt-get install libsqlite3-dev` for Debian/Ubuntu. Make sure that you have at least `libsqlite3` >= 3.6.\n\nNote, if building against homebrew-installed sqlite on OS X you can do:\n\n    npm install --build-from-source --sqlite=/usr/local/opt/sqlite/\n\n## Building for node-webkit\n\nBecause of ABI differences, `sqlite3` must be built in a custom to be used with [node-webkit](https://github.com/rogerwang/node-webkit).\n\nTo build node-sqlite3 for node-webkit:\n\n1. Install [`nw-gyp`](https://github.com/rogerwang/nw-gyp) globally: `npm install nw-gyp -g` *(unless already installed)*\n\n2. Build the module with the custom flags of `--runtime`, `--target_arch`, and `--target`:\n\n```sh\nNODE_WEBKIT_VERSION=\"0.8.6\" # see latest version at https://github.com/rogerwang/node-webkit#downloads\nnpm install sqlite3 --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)\n```\n\nThis command internally calls out to [`node-pre-gyp`](https://github.com/mapbox/node-pre-gyp) which itself calls out to [`nw-gyp`](https://github.com/rogerwang/nw-gyp) when the `--runtime=node-webkit` option is passed.\n\nYou can also run this command from within a `node-sqlite3` checkout:\n\n```sh\nnpm install --build-from-source --runtime=node-webkit --target_arch=ia32 --target=$(NODE_WEBKIT_VERSION)\n```\n\nRemember the following:\n\n* You must provide the right `--target_arch` flag. `ia32` is needed to target 32bit node-webkit builds, while `x64` will target 64bit node-webkit builds (if available for your platform).\n\n* After the `sqlite3` package is built for node-webkit it cannot run in the vanilla Node.js (and vice versa).\n   * For example, `npm test` of the node-webkit's package would fail.\n\nVisit the “[Using Node modules](https://github.com/rogerwang/node-webkit/wiki/Using-Node-modules)” article in the node-webkit's wiki for more details.\n\n## Building for sqlcipher\n\nFor instructions for building sqlcipher see\n[Building SQLCipher for node.js](https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/)\n\nTo run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:\n\n    npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/\n    \n    node -e 'require(\"sqlite3\")'\n\nIf your sqlcipher is installed in a custom location (if you compiled and installed it yourself),\nyou'll also need to to set some environment variables:\n\n### On OS X with Homebrew\n\nSet the location where `brew` installed it:\n\n    export LDFLAGS=\"-L`brew --prefix`/opt/sqlcipher/lib\"\n    export CPPFLAGS=\"-I`brew --prefix`/opt/sqlcipher/include\"\n    npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`\n    \n    node -e 'require(\"sqlite3\")'\n\n### On most Linuxes (including Raspberry Pi)\n\nSet the location where `make` installed it:\n\n    export LDFLAGS=\"-L/usr/local/lib\"\n    export CPPFLAGS=\"-I/usr/local/include -I/usr/local/include/sqlcipher\"\n    export CXXFLAGS=\"$CPPFLAGS\"\n    npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=/usr/local --verbose\n    \n    node -e 'require(\"sqlite3\")'\n\n# Testing\n\n[mocha](https://github.com/visionmedia/mocha) is required to run unit tests.\n\nIn sqlite3's directory (where its `package.json` resides) run the following:\n\n    npm install mocha\n    npm test\n\n\n# Contributors\n\n* [Konstantin Käfer](https://github.com/kkaefer)\n* [Dane Springmeyer](https://github.com/springmeyer)\n* [Will White](https://github.com/willwhite)\n* [Orlando Vazquez](https://github.com/orlandov)\n* [Artem Kustikov](https://github.com/artiz)\n* [Eric Fredricksen](https://github.com/grumdrig)\n* [John Wright](https://github.com/mrjjwright)\n* [Ryan Dahl](https://github.com/ry)\n* [Tom MacWright](https://github.com/tmcw)\n* [Carter Thaxton](https://github.com/carter-thaxton)\n* [Audrius Kažukauskas](https://github.com/audriusk)\n* [Johannes Schauer](https://github.com/pyneo)\n* [Mithgol](https://github.com/Mithgol)\n\n\n# Acknowledgments\n\nThanks to [Orlando Vazquez](https://github.com/orlandov),\n[Eric Fredricksen](https://github.com/grumdrig) and\n[Ryan Dahl](https://github.com/ry) for their SQLite bindings for node, and to mraleph on Freenode's #v8 for answering questions.\n\nDevelopment of this module is sponsored by [MapBox](http://mapbox.org/).\n\n\n# License\n\n`node-sqlite3` is [BSD licensed](https://github.com/mapbox/node-sqlite3/raw/master/LICENSE).\n",
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/mapbox/node-sqlite3/issues"
  },
  "bundleDependencies": [
    "node-pre-gyp"
  ],
  "_id": "sqlite3@3.1.3",
  "dist": {
    "shasum": "2e015c5709b5410b1b86d7a79b78de6d7cbff6a2"
  },
  "_from": "sqlite3@^3.1",
  "_resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.3.tgz"
}
