@node-red/runtime.library

getEntry(opts) → {Promise.<(String|Object)>}

Gets an entry from the library.

Parameters:
Name Type Description
opts Object
Name Type Description
user User

the user calling the api

library String

the library

type String

the type of entry

path String

the path of the entry

req Object

the request to log (optional)

Returns:
Type:
Promise.<(String|Object)>
  • resolves when complete

saveEntry(opts) → {Promise}

Saves an entry to the library

Parameters:
Name Type Description
opts Object
Name Type Description
user User

the user calling the api

library String

the library

type String

the type of entry

path String

the path of the entry

meta Object

any meta data associated with the entry

body String

the body of the entry

req Object

the request to log (optional)

Returns:
Type:
Promise
  • resolves when complete