datajs_vanilla

0.1.1 • Public • Published

datajs_vanilla


Simple wrapper for using the vanilla datajs library in Node applications.

I was looking for a simple way of consuming an OData feed from a Node app. First thing that came to my mind was using the "official" datajs library as I used it once before in a browser app. But the existing datajs npm package is pretty aged. So I was looking for some way of using the current datajs release.

Installation

npm install datajs_vanilla

Usage

var OData = require('datajs').OData;
var url = "http://live.ineta.org/InetaLiveService.svc/LiveGroups(1)";

OData.read(url, function (data) {
    console.debug(data['Name']); //-> UT Dallas .NET UG
});

Credits

where they belong.

This stackoverflow question gave me the idea on how to use the datajs browser library in a Node environment.

License

See included LICENSE file for this package.

The bundled datajs-1.1.2.js library is licensed on it's own. Check the project page for further details.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i datajs_vanilla

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    506 kB

    Total Files

    6

    Last publish

    Collaborators

    • devployment