zlazh-annotations
v1.0.2
Published
A tool to read annotations in scripts
Downloads
13
Readme
Annotations
A Simple package to read annotations in files
Usage
To begin an annotation section you need to start a comment with two stars " /** " To end an annotation you need to close the comment " */" Import the package and be ready to use the module with scan_file.
Example
zlazh.scan_file("controller.js");
Rule
- An annotation can only be on one line
- An annotation can have a name or a single value
Methods
- scan_file : take as argument a path, use fs to scan a file for annotations
- scan_string : scan a string for annotations
