Commit 382ac47f authored by Anton's avatar Anton

Add cli responder util, update package

parent 78e1e6d3
#!/usr/bin/env node
const config = require('config')
const main = function (config) {
let service
switch (process.argv[2]) {
case 'service.conversion':
const ConversionService = require('../src/lib/responders/conversion')
service = new ConversionService(config.conversion)
break
case 'service.metadata':
const MetadataService = require('../src/lib/responders/metadata')
service = new MetadataService(config.metadata, config.apiKeys)
break
default:
service = null
}
return service
}
main(config)
......@@ -3,6 +3,9 @@
"version": "1.0.0",
"description": "Media transcoding API",
"main": "src/index.js",
"bin": {
"mb-responder": "./bin/responder.js"
},
"scripts": {
"lint": "eslint src/. --config .eslintrc.js",
"metapak": "metapak",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment