https://github.com/lightsofapollo/azure-table
Simplified azure table service client for node and the browser.
https://github.com/lightsofapollo/azure-table
Last synced: 8 months ago
JSON representation
Simplified azure table service client for node and the browser.
- Host: GitHub
- URL: https://github.com/lightsofapollo/azure-table
- Owner: lightsofapollo
- Created: 2014-02-13T01:05:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-11T22:13:51.000Z (about 12 years ago)
- Last Synced: 2024-12-27T15:12:40.316Z (over 1 year ago)
- Language: JavaScript
- Size: 24 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# azure-table
Azure table library for node & browsers
## Usage
(azure_table can be used with component or requirejs but I am going
to show the common js version).
```js
var adapter = require('azure-table/adapter/shared_signature')({
// XXX: see azure-sign package which can generate this for you
host: 'http://...',
query: '...'
});
// requests see test/server.js for an example server implementation.
var table = require('azure-table/request')(
'myTable',
adapter
)
// this is a superagent request
var request = table.queryEntities();
request.query('$top', 10);
request.end().then(function(res) {
// res.body
});
```
## Notes
CORS must be enabled for your account... From node there is no easy
way to do this currently so I hacked together [azure-cors](https://github.com/lightsofapollo/azure-cors) which is terrible (but only needs to be run once) way to enable CORS for all methods and domains, etc...