inject_module 1.0.2 copy "inject_module: ^1.0.2" to clipboard
inject_module: ^1.0.2 copied to clipboard

Dart 1 only

Inject is a form of pre-processor that replaces/'injects' data from a file in accordance to data defined in a data map. Inject separates logic from the file being read, and because of this, Inject has [...]

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add inject_module

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  inject_module: ^1.0.2

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:inject_module/inject_module.dart';
0
likes
10
points
14
downloads

Publisher

unverified uploader

Weekly Downloads

Inject is a form of pre-processor that replaces/'injects' data from a file in accordance to data defined in a data map. Inject separates logic from the file being read, and because of this, Inject has a variable syntax that can adapt to different syntax conventions depending on the information it's being used on. Inject reads the contents of files and maps/replaces data matching the specified key/value data specified in the data map. In a nutshell, Inject takes any file and turns it into an 'inject' module, where the data, the syntax scanned for and the dependencies themselves are given externally via dependency injection to Inject so it is not specified within the file. The data can then be 'interpreted' via the syntax that Inject has been told to use.

Homepage

License

unknown (license)

Dependencies

stream_trigger

More

Packages that depend on inject_module