tal-config
Device configuration package for TAL Node.js backend (
node-tal
) or any backend, really.
It is basically JSON files with a couple of JavaScript helpers to access them quickly.
Install
npm install --save tal-config
Usage
Get a device configuration
The connect middleware will automatically update the HTTP response
MIME-Type as well as populating a res.locals.tal
object (see below).
var config = ; console; // -> TAL JSON config for Panasonic HbbTV 2013's model
Serving a TAL application with Node.js
Use it in conjunction with node-tal
to make your Connect/Express routes
SmartTV compliant!
var express = ;var app = ;var tal = ;var talConfig = ; app; app;
Testing
Simply run the tests using the following command.
npm test
If you add a feature and don't have any knowledge in testing, propose your code anyway. Explain what you want to achieve, what are the edge cases and we'll do our best to fill the blanks.
License
Copyright 2014 British Broadcasting Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.