-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
160 lines (160 loc) · 12.3 KB
/
Copy pathpackage.json
File metadata and controls
160 lines (160 loc) · 12.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"_args": [
[
{
"raw": "sqlite3@https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"scope": null,
"escapedName": "sqlite3",
"name": "sqlite3",
"rawSpec": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"spec": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"type": "remote"
},
"C:\\Users\\ibcn\\Documents\\Ghost"
]
],
"_from": "sqlite3@3.1.8",
"_id": "sqlite3@3.1.8",
"_inCache": true,
"_location": "/sqlite3",
"_phantomChildren": {
"graceful-fs": "4.1.11",
"inherits": "2.0.3",
"ini": "1.3.4",
"object-assign": "4.1.0",
"request": "2.75.0"
},
"_requested": {
"raw": "sqlite3@https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"scope": null,
"escapedName": "sqlite3",
"name": "sqlite3",
"rawSpec": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"spec": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"type": "remote"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"_shasum": "4cbcf965d8b901d1b1015cbc7fc415aae157dfaa",
"_shrinkwrap": null,
"_spec": "sqlite3@https://registry.npmjs.org/sqlite3/-/sqlite3-3.1.8.tgz",
"_where": "C:\\Users\\ibcn\\Documents\\Ghost",
"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"
},
"bugs": {
"url": "https://github.com/mapbox/node-sqlite3/issues"
},
"bundleDependencies": [
"node-pre-gyp"
],
"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"
}
],
"dependencies": {
"nan": "~2.4.0",
"node-pre-gyp": "~0.6.31"
},
"description": "Asynchronous, non-blocking SQLite3 bindings",
"devDependencies": {
"aws-sdk": "2.x",
"eslint": "3.5.0",
"mocha": "3.x"
},
"homepage": "http://github.com/mapbox/node-sqlite3",
"keywords": [
"sql",
"sqlite",
"sqlite3",
"database"
],
"license": "BSD-3-Clause",
"main": "./lib/sqlite3",
"name": "sqlite3",
"optionalDependencies": {},
"readme": "Asynchronous, non-blocking [SQLite3](http://sqlite.org/) bindings for [Node.js](http://nodejs.org/).\n\n[](https://nodei.co/npm/sqlite3/)\n\n[](https://travis-ci.org/mapbox/node-sqlite3)\n[](https://ci.appveyor.com/project/Mapbox/node-sqlite3)\n[](https://coveralls.io/github/mapbox/node-sqlite3?branch=master)\n[](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 - Bundles Sqlite3 3.9.1 as a fallback if the installing system doesn't include SQLite\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",
"repository": {
"type": "git",
"url": "git://github.com/mapbox/node-sqlite3.git"
},
"scripts": {
"install": "node-pre-gyp install --fallback-to-build",
"prepublish": "npm ls",
"pretest": "node test/support/createdb.js",
"test": "mocha -R spec --timeout 480000"
},
"version": "3.1.8"
}