0.1.4 • Published 10 years ago

viewdata v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

viewdata

viewdata module for nodejs

Usage

var path = require('path);
var repository = require('viewdata')(path.join(__dirname, './repository'));

var viewdata = repository({
  tag: {
    params: {
      name: 'tag-name'
    }
  },
  news: {
    params: {
      tag: 'tag-name',
      limit: 10
    }
  }
});

// async gets all viewdata
viewdata.get(function(error, data) {
  
});

API

(sources)

Default method. Repository creator. Returns a Repository.

sources can be a string, an array of strings, a object or an array of objects - repository sources.

repository(props)

...

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago