Uses the node-red-contrib-npm - https://www.npmjs.com/package/node-red-contrib-npm - node that can wrap simple npm modules automatically.
This example wraps the npm uk-postcode-node - https://www.npmjs.com/package/uk-postcodes-node - to create a node that can inject a UK postcode and retrieve the geolocation in an array of objects.
Note: You must install the node-red-contrib-npm before this example will work. Either via the Menu - palette manager or
cd ~/.node-red
npm i node-red-contrib-npm