wuchuheng_env 1.0.1
wuchuheng_env: ^1.0.1 copied to clipboard
This is a dot env loading libray.
This is a dot env loading library
Features #
Getting started #
Depend on it Run this command:
With Dart:
$ dart pub add wuchuheng_env
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
wuchuheng_env: ^1.0.0
Alternatively, your editor might support dart pub get. Check the docs for your editor to learn more.
Import it Now in your Dart code, you can use:
import 'package:wuchuheng_env/wuchuheng_env.dart';
Usage #
to /example folder.
import 'dart:io';
import 'package:wuchuheng_env/wuchuheng_env.dart';
void main() {
final file = '${Directory.current.path}/test/.env';
final env = Load(file: file).env;
env['FOO'];
env['SIGN_QUOTATION'];
env['DOUBLE_QUOTE'];
env['TRIM_SPACE_FROM_UNQUOTE'];
}
Additional information #
contribute to the package, how to file issues, what response they can expect from the package authors, and more.