cerebral-cli-generator

3.0.0 • Public • Published

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 the generator part of the .cerebralrc, is not required. If passed, it can have useRcFile 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 a log 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(...)

Readme

Keywords

none

Package Sidebar

Install

npm i cerebral-cli-generator

Weekly Downloads

2

Version

3.0.0

License

ISC

Unpacked Size

38.9 kB

Total Files

20

Last publish

Collaborators

  • jeroenverfallie