Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
leadVisionary committed May 15, 2012
1 parent f894ffe commit 095bf96
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
@@ -0,0 +1,4 @@
test:
./node_modules/.bin/mocha --reporter list --compilers coffee:coffee-script *.coffee

.PHONY: test
1 change: 1 addition & 0 deletions emptyObject.coffee
@@ -0,0 +1 @@
module.exports = Object::isEmpty = -> Object.keys(@).length is 0
7 changes: 7 additions & 0 deletions emptyObject.spec.coffee
@@ -0,0 +1,7 @@
require 'should'

require './emptyObject'

describe 'emptyObject', ->
it 'should return true when object is empty', ->
{}.isEmpty().should.be.true
2 changes: 2 additions & 0 deletions index.js
@@ -0,0 +1,2 @@
require('coffee-script');
module.exports = require('./emptyObject');
7 changes: 7 additions & 0 deletions notEmptyObject.spec.coffee
@@ -0,0 +1,7 @@
require 'should'

require './emptyObject'

describe 'emptyObject', ->
it 'should return false when object isnt empty', ->
{foo:'bar'}.isEmpty().should.not.be.true
20 changes: 20 additions & 0 deletions package.json
@@ -0,0 +1,20 @@
{
"name":"emptyObject",
"description":"A simple micro lib to add an isEmpty method to the object prototype. _ too heavy weight? Wanna save yourself a coffeescript one-liner? Just use this!",
"version":"1.0.0",
"homepage":"http://github.com/leadVisionary/emptyObject",
"repository":"git://github.com/leadVisionary/emptyObject.git",
"author":"Nicholas Vaidyanathan <visionary.software.solutions@gmail.com> (http://www.visionarysoftwaresolutions.com/)",
"main":"./empty.js",
"dependencies":{
"coffee-script":"*"
},
"devDependencies":{
"node-log":"*",
"should":"*",
"mocha":"*"
},
"engines":{
"node":">= 0.6.0"
}
}

0 comments on commit 095bf96

Please sign in to comment.