Nicely Presented Misnomer
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    datajs_vanillapublic

    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.

    install

    npm i datajs_vanilla

    Downloadsweekly downloads

    0

    version

    0.1.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar