cerebral-cli-generator
v3.0.0
Published
A parser and generator of cerebral logic files, to make your life easier.<br> Ready for usage in cli's and editor plugins.
Downloads
5
Readme
cerebral-cli-generator
A parser and generator of cerebral logic files, to make your life easier. Ready for usage in cli's and editor plugins.
The .cerebralrc format
See detailed docs here.
The one method API..
performOnFile(options)
Options consist out of these properties:
filePath
(required): The file on which to perform the generation of imports.config
(default null): A possible config, starting from thegenerator
part of the .cerebralrc, is not required. If passed, it can haveuseRcFile
to enable the.cerebralrc
file usage.write
(default false): Whether to write away the result immediately in the passed filePath.logger
(default noop): A simple object with alog
method in case you want some output. (barebones)
This will return the new generated content of the passed in file. Use this if write is disabled, for example in an atom plugin to perform atom.editor.setText(...)