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..
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 the
generatorpart of the .cerebralrc, is not required. If passed, it can have
useRcFileto enable the
write(default false): Whether to write away the result immediately in the passed filePath.
logger(default noop): A simple object with a
logmethod 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