Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

initial checkin

  • Loading branch information...
commit 83e9409792acabbe010fa144d0bfa10e3ca0c1ad 0 parents
@jchris authored
1  .npmignore
@@ -0,0 +1 @@
+/node_modules/
1  LICENSE-Apache2
@@ -0,0 +1 @@
+What is this I don’t even
27 README.md
@@ -0,0 +1,27 @@
+# hoax
+
+ReSTful JSON client with path currying by pax.
+
+## Getting Started
+Install the module with: `npm install hoax`
+
+```javascript
+var hoax = require('hoax');
+hoax.awesome(); // "awesome"
+```
+
+## Documentation
+_(Coming soon)_
+
+## Examples
+_(Coming soon)_
+
+## Contributing
+In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).
+
+## Release History
+_(Nothing yet)_
+
+## License
+Copyright (c) 2013 Chris Anderson
+Licensed under the Apache2 license.
39 grunt.js
@@ -0,0 +1,39 @@
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ test: {
+ files: ['test/**/*.js']
+ },
+ lint: {
+ files: ['grunt.js', 'lib/**/*.js', 'test/**/*.js']
+ },
+ watch: {
+ files: '<config:lint.files>',
+ tasks: 'default'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ node: true
+ },
+ globals: {
+ exports: true
+ }
+ }
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'lint test');
+
+};
11 lib/hoax.js
@@ -0,0 +1,11 @@
+/*
+ * hoax
+ * https://github.com/jchris/hoax
+ *
+ * Copyright (c) 2013 Chris Anderson
+ * Licensed under the Apache2 license.
+ */
+
+exports.awesome = function() {
+ return 'awesome';
+};
36 package.json
@@ -0,0 +1,36 @@
+{
+ "name": "hoax",
+ "description": "ReSTful JSON client with path currying by pax.",
+ "version": "0.1.0",
+ "homepage": "https://github.com/jchris/hoax",
+ "author": {
+ "name": "Chris Anderson",
+ "email": "jchris@couchbase.com",
+ "url": "http://www.couchbase.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/jchris/hoax.git"
+ },
+ "bugs": {
+ "url": "https://github.com/jchris/hoax/issues"
+ },
+ "licenses": [
+ {
+ "type": "Apache2",
+ "url": "https://github.com/jchris/hoax/blob/master/LICENSE-Apache2"
+ }
+ ],
+ "main": "lib/hoax",
+ "engines": {
+ "node": "~0.8.16"
+ },
+ "scripts": {
+ "test": "grunt test"
+ },
+ "dependencies": {},
+ "devDependencies": {
+ "grunt": "~0.3.6"
+ },
+ "keywords": []
+}
14 test/hoax_test.js
@@ -0,0 +1,14 @@
+var hoax = require('../lib/hoax.js');
+
+exports['awesome'] = {
+ setUp: function(done) {
+ // setup here
+ done();
+ },
+ 'no args': function(test) {
+ test.expect(1);
+ // tests here
+ test.equal(hoax.awesome(), 'awesome', 'should be awesome.');
+ test.done();
+ }
+};
Please sign in to comment.
Something went wrong with that request. Please try again.