envsubst 0.1.0
envsubst: ^0.1.0 copied to clipboard
Docker-style environment variables substitution for Dart
example/envsubst_example.dart
// Copyright (c) 2016, Kwang Yul Seo. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.
import 'package:envsubst/envsubst.dart';
main() {
String input = r'Hello $HOME';
String output = envSubst(input);
print(output); // print 'Hello /Users/kseo'
}