2.1.1 • Published 9 years ago

tstore v2.1.1

Weekly downloads
3
License
BSD-3-Clause
Repository
github
Last release
9 years ago

tstore

A tiny module to store and retrieve arbitrary JSON data. Data is stored in ~/.config/tstore by default. You may set the TSTORE_HOME environment variable to override this.

If used without a tty (piped e.g.) the output will not be prettified (printed in a single line)

API

var tstore = require('tstore');

.set(path, data)

Saves the data at the given path.

.get(path)

Returns the data for a path as a javascript object (or string etc.)

CLI

tstore set

Set data for a given path.

tstore get

Get data for a path. Prints it in json format to stdout.

Path access

A path is a dot delimited string. Use it like you would for any normal property access:

tstore set colors.red '"red"'
2.1.1

9 years ago

2.1.0

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago