storagebox 0.1.0+2 copy "storagebox: ^0.1.0+2" to clipboard
storagebox: ^0.1.0+2 copied to clipboard

PlatformLinuxweb
outdated

Easily store configuration keys and values for your CLI and web apps.

📦 StorageBox

Easily store and persist configuration items for your Dart CLIs and Web apps.

Melos docs.page

DocumentationLicense


About #

Storagebox is a lightweight configuration storage API for Dart CLI apps with a familiar Map-like API.

It maintains some compatibility with configstore from the Node.js ecosystem via configPathPrefix, allowing you to migrate away from it or use existing configuration items that exist from Node.js based CLIs.

Example:

import 'package:storagebox/storagebox.dart';

Future<void> main() async {
  final config = StorageBox('my_awesome_cli');
  config['foo'] = 'bar';
  print(config['foo']);
  config['bar'] = 'foo';
  print(config['bar']);

  // Config is a Map so Map methods can be used;
  config.forEach((key, value) {
    print('$key : $value');
  });
  print(config.containsKey('foo'));
  print(config.remove('bar'));
}

Built and maintained by Invertase.

3
likes
150
pub points
41%
popularity

Publisher

verified publisherinvertase.io

Easily store configuration keys and values for your CLI and web apps.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

collection, meta, path, xdg_directories

More

Packages that depend on storagebox