From 728b16c2be4e6ff82f1a4a68ec247eb73a310e42 Mon Sep 17 00:00:00 2001 From: Tamas Kokeny Date: Mon, 21 Apr 2014 18:54:46 +0200 Subject: [PATCH] initial commit --- .gitignore | 16 ++++++++++++++++ .jshintrc | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 5 +++++ README.md | 25 +++++++++++++++++++++++++ package.json | 28 ++++++++++++++++++++++++++++ 5 files changed, 108 insertions(+) create mode 100644 .gitignore create mode 100644 .jshintrc create mode 100644 .travis.yml create mode 100644 README.md create mode 100644 package.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..634d1b1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +lib-cov +*.seed +*.log +*.csv +*.dat +*.out +*.pid +*.gz + +pids +logs +results + +npm-debug.log +node_modules +coverage diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..aa49277 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,34 @@ +{ + "bitwise": true, + "camelcase": true, + "curly": true, + "eqeqeq": true, + "forin": true, + "freeze": true, + "indent": 2, + "latedef": "nofunc", + "newcap": true, + "noarg": true, + "noempty": true, + "nonew": true, + "quotmark": "single", + "undef": true, + "unused": true, + "strict": true, + "trailing": true, + "maxdepth": 2, + "maxlen": 80, + "node": true, + "browser": true, + "globals": { + "describe": true, + "it": true, + "before": true, + "beforeEach": true, + "after": true, + "afterEach": true, + "chai": true, + "expect": true + } +} + diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a2068a6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +#set node version to latest stable +language: node_js +node_js: + - "0.10" + - "0.11" \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..662e8bd --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +formatter-jsonp +=============== +[![Build Status](https://travis-ci.org/restify/formatter-binary.svg?branch=refactor/mochaopts)](https://travis-ci.org/restify/formatter-binary) + +Installation +============ + +`npm install restify-formatter-binary` + +Usage +======= + +``` +var restify = require('restify'); +var server = restify.createServer(); +var binaryFormatter = require('restify-formatter-binary'); + +server.use(binaryFormatter); +server.listen(8080) +``` + +License +======= + +MIT diff --git a/package.json b/package.json new file mode 100644 index 0000000..f051078 --- /dev/null +++ b/package.json @@ -0,0 +1,28 @@ +{ + "name": "restify-formatter-binary", + "version": "0.1.0", + "description": "restify-formatter-binary", + "main": "index.js", + "scripts": { + "test": "./node_modules/mocha/bin/mocha --reporter spec test/test.js", + "cover": "./node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha test/test.js -- -u exports -R spec" + }, + "repository": { + "type": "git", + "url": "https://github.com/restify/formatter-binary.git" + }, + "author": "Gergely Nemeth", + "contributors": [ + "Tamas Kokeny" + ], + "license": "ISC", + "bugs": { + "url": "https://github.com/restify/formatter-binary/issues" + }, + "homepage": "https://github.com/restify/formatter-binary", + "devDependencies": { + "mocha": "^1.17.1", + "chai": "^1.9.0", + "istanbul": "^0.2.6" + } +}