0.1.4 • Published 8 years ago

viewdata v0.1.4

Weekly downloads
2
License
ISC
Repository
github
Last release
8 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

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago