1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-12-22 21:37:21 +00:00

Refactor API surface.

This commit is contained in:
hacksalot 2016-01-07 13:44:39 -05:00
parent 0f0c399dd5
commit 43419c27cf

View File

@ -1,24 +1,29 @@
/**
External API surface for HackMyResume.
@license MIT. Copyright (c) 2015 James M. Devlin / FluentDesk.
@license MIT. See LICENSE.md for details.
@module hackmyapi.js
*/
(function() {
var v = {
build: require('./verbs/build'),
analyze: require('./verbs/analyze'),
validate: require('./verbs/validate'),
convert: require('./verbs/convert'),
new: require('./verbs/create')
};
/**
The formal HackMyResume API.
*/
var HackMyAPI = module.exports = {
verbs: v,
verbs: {
build: require('./verbs/build'),
analyze: require('./verbs/analyze'),
validate: require('./verbs/validate'),
convert: require('./verbs/convert'),
new: require('./verbs/create')
},
alias: {
generate: v.build,
create: v.new
generate: require('./verbs/build'),
create: require('./verbs/create')
},
options: require('./core/default-options'),
formats: require('./core/default-formats'),
@ -40,4 +45,6 @@ External API surface for HackMyResume.
HtmlPngGenerator: require('./gen/html-png-generator')
};
}());