Skip to content

Instantly share code, notes, and snippets.

@terbo
Created September 28, 2019 14:18
Show Gist options
  • Save terbo/57883b297c076e9dbcacf9949f9dca6c to your computer and use it in GitHub Desktop.
Save terbo/57883b297c076e9dbcacf9949f9dca6c to your computer and use it in GitHub Desktop.
extract code from node-red "function" flows
grep -B1 func\": $FLOWS | sed -e s/^\ *// -e 's/\"func\":\ \"//' -e 's/",$//g' -e 's/\"name\": \"/function /' -e 's/\\n/\n/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment