Skip to content

devployment/datajs_vanilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published