storagebox

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

storagebox

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



Documentation •
License

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'));
}
copied to clipboard






Built and maintained by Invertase.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.