cerebral-cli-generator
A parser and generator of cerebral logic files, to make your life easier.<br> Ready for usage in cli's and editor plugins.
Last updated 5 years ago .
· Original npm · Tarball · package.json
$ cnpm install cerebral-cli-generator 
SYNC missed versions from official npm registry.

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(...)

Current Tags

  • 3.0.0                                ...           latest (4 years ago)

17 Versions

  • 1.0.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.2                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.1.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 2.0.0                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.3                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.1.1                                ...           5 years ago
  • 2.2.0                                ...           5 years ago
  • 2.3.1                                ...           5 years ago
  • 3.0.0                                ...           4 years ago
Maintainers (1)
Dependencies (7)
Dev Dependencies (13)

Copyright © npmmirror.com | 浙ICP备15033595号-63 |