0.7.4 • Published 7 years ago

trackfinder v0.7.4

Weekly downloads
4
License
-
Repository
github
Last release
7 years ago

trackfinder

Simple Express route finder

Getting Started

Install the module with: npm install trackfinder

var TrackFinder = require('trackfinder');

var app = express();


TrackFinder.register(app, {
    path:'./routes',
    config: config
});

This will load all files inside the routes directory. The most simple route file would look like this:

'use strict';

module.exports = function(app, options){
    console.log('- pets: register routes');

    app.get('/pets', function(req, res){
        res.json({
            pets: ['Colonel Meow', 'Casper', 'Chase No Face', 'Cherry Pop']
        });
    });
};

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

Release History

(Nothing yet)

License

Copyright (c) 2014 goliatone
Licensed under the MIT license.

TODO:

Integrate file finder stuff: https://www.npmjs.org/package/file-magic

0.7.4

7 years ago

0.7.3

7 years ago

0.7.2

7 years ago

0.7.0

8 years ago

0.6.0

8 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago