noflo-api-updater

0.5.3 • Public • Published

NoFlo API Updater

This command-line tool automates some tasks on updating legacy NoFlo libraries with the latest APIs.

Features

Currently this tool supports:

  • Semi-automatic update of the old CoffeeScript components to the new Ports API introduced in NoFlo 0.5.

Installation

If you don't have CoffeeScript installed, then first install the latest CoffeeScript:

# npm install -g coffee-script

Then install the updater tool

# npm install -g noflo-api-updater

Usage

Note: the tool assumes that components are written in CoffeeScript indented correctly with 2 spaces. Tab or 4-space indentation, or JavaScript components are not supported at this time.

Updating a single *.coffee file:

$ noflo-api-updater components/MyComponent.coffee

Updating all components in the folder:

$ noflo-api-updater components

There is a --pretend option that prints the result on screen rather than overwriting original files:

$ noflo-api-updater --pretend components/MyComponent.coffee

Disclaimer

This tool comes with absolutely NO WARRANTY and it is not designed to result into 100% bugproof working code. Use it to aid your manual code refactoring and don't forget to backup / git commit before running this tool.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.5.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.5.3
    1
  • 0.5.2
    0
  • 0.5.1
    0
  • 0.5.0
    0

Package Sidebar

Install

npm i noflo-api-updater

Weekly Downloads

1

Version

0.5.3

License

MIT

Last publish

Collaborators

  • trustmaster