add capability to return plist


Connect middleware that add capability sending response as plist format to your application.

$ npm install connect-plist
var connect = require('connect');
var plist = require('connect-plist');

var data = { 'a': 'test stringy thingy', 'b': 'this contains non base64 ✔ ' };

  .use(function(req, res){
    return res.plist(data);

open browser to http://localhost:3000/, you will get following plist:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "">
<plist version="1.0">
    <string>test stringy thingy</string>
    <string>this contains non base64 ✔ </string>

The MIT License