A simple, self-contained, serverless, zero-configuration, json document store.
JSONlite sandboxes the current working directory just like SQLite. The data directory is named jsonlite.data
, and each json document is saved pretty printed as a uuid.
JSONlite is a proof of concept, and it may not make any sense to actually use it in development or production.
git clone https://github.com/nodesocket/jsonlite.git
cd jsonlite
ln -s $PWD/jsonlite.sh /usr/local/bin/jsonlite
- bash
- uuidgen
- python -m json.tool
set <json>
➜ jsonlite set '{"name":"John Doe","active":true,"permissions":{"read":true,"write":false}}'
666B81D6-3F8A-4D57-BA3F-11FA8FC47246
get <document-id>
➜ jsonlite get 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
{
"active": true,
"name": "John Doe",
"permissions": {
"read": true,
"write": false
}
}
delete <document-id>
➜ jsonlite delete 666B81D6-3F8A-4D57-BA3F-11FA8FC47246
drop
➜ jsonlite drop
Are you sure you want to drop '/jsonlite.data' (y/n)? y
version
➜ jsonlite version
0.4.1
https://github.com/nodesocket/jsonlite/blob/master/CHANGELOG.md
Create issues here in GitHub (https://github.com/nodesocket/jsonlite/issues).
For transparency and insight into the release cycle, and for striving to maintain backward compatibility, JSONlite will be maintained under the semantic versioning guidelines.
Releases will be numbered with the follow format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
- Breaking backward compatibility bumps the major (and resets the minor and patch)
- New additions without breaking backward compatibility bumps the minor (and resets the patch)
- Bug fixes and misc changes bumps the patch
For more information on semantic versioning, visit http://semver.org/.
Copyright 2015 Justin Keller
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.