Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including lekkimworld-nordpool with all npm packages installed. Try it out:

var nordpool = require('nordpool') var prices = new nordpool.Prices() prices.hourly({}, function (error, results) { if (error) console.error(error) for (var i=0; i<results.length; i++) { var date = results[i].date // moment object (see http://momentjs.com/) var price = results[i].value // float, EUR/MWh var hourlyPriceMessage = results[i].area + " at " + date.format("DD.MM. H:mm") + ": " + price/10 + " eurocent/kWh" console.log(hourlyPriceMessage) } })

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

lekkimworld-nordpool v2.0.0

Nord Pool ELSPOT API client

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free