A simple, Promise based, node.js REST client for SharePoint online
npm install sharepoint-client
client <- require (\sharepoint-client) endpoint, user, password .then _
[{name}] <- client.get-lists! .then _
get-list-items name
require("sharepoint-client")(endPoint, username, password)
.then(client =>
client.getLists().then(lists =>
client.getListItems(lists[0].name)
))