wuchuheng_env 1.0.1 copy "wuchuheng_env: ^1.0.1" to clipboard
wuchuheng_env: ^1.0.1 copied to clipboard

outdated

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.

1
likes
0
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

This is a dot env loading libray.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on wuchuheng_env