prep 0.3.5 prep: ^0.3.5 copied to clipboard
Inspired by the C preprocessor, this package helps you manage your project with unique source code expressions. Web support included.
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
//
// PREP EXAMPLE
//
// <#Author = Robert Mollentze>
// <#Email = robmllze@gmail.com>
// <#Date = 9/20/2021>
//
// See LICENSE file
//
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
import 'package:prep/prep.dart';
const _LOG = PrepLog.file("<#f=prep_example.dart>");
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
void main() {
// Process source files as per prep.yaml.
prep();
print("Follow me on Instagram " + "<#Instagram = @robmllze>".prepValue);
print("This file is " + "<#f=prep_example.dart>".prepValue);
print("This line is number " + "<#l=24>".prepValue);
print("The time now is " + "<#t=14:43>".prepValue);
print("This package is " + "<#Package = prep>".prepValue);
print("The package version is " + "<#Version = 0.3.5>".prepValue);
print("Let's print the USERNAME environment variable: " +
"<#ENV USERNAME = r0bm0>".prepValue);
if (int.tryParse("42") == 42) {
// PrepLog is a great tool for debugging!
_LOG.note(
"The answer to life, the Universe and everything is...42!",
"<#l=34>",
);
}
}
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
/*
OUTPUT:
Follow me on Instagram @robmllze
This file is prep_example.dart
This line is number 24
The time now is 14:43
This package is prep
The package version is 0.3.5
Let's print the USERNAME environment variable: r0bm0
[0] 🟢 In FILE prep_example.dart and LINE 34 ⏳ 0.004003s
"The answer to life, the Universe and everything is...42!"
*/