pax_global_header00006660000000000000000000000064124012704570014514gustar00rootroot0000000000000052 comment=391812229f7de8e4778e1ed5dee824206c2534b9 is-object-1.0.1/000077500000000000000000000000001240127045700133725ustar00rootroot00000000000000is-object-1.0.1/.gitignore000066400000000000000000000002241240127045700153600ustar00rootroot00000000000000.DS_Store .monitor .*.swp .nodemonignore releases *.log *.err fleet.json public/browserify bin/*.json .bin build compile .lock-wscript node_modules is-object-1.0.1/.jscs.json000066400000000000000000000034171240127045700153120ustar00rootroot00000000000000{ "requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"], "requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"], "disallowSpaceAfterKeywords": [], "requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true }, "requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true }, "disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true }, "requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true }, "disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true }, "disallowSpacesInsideParentheses": true, "disallowSpacesInsideArrayBrackets": true, "disallowQuotedKeysInObjects": "allButReserved", "disallowSpaceAfterObjectKeys": true, "requireCommaBeforeLineBreak": true, "disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"], "requireSpaceAfterPrefixUnaryOperators": [], "disallowSpaceBeforePostfixUnaryOperators": ["++", "--"], "requireSpaceBeforePostfixUnaryOperators": [], "disallowSpaceBeforeBinaryOperators": [], "requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], "requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="], "disallowSpaceAfterBinaryOperators": [], "disallowImplicitTypeConversion": ["binary", "string"], "disallowKeywords": ["with", "eval"], "validateLineBreaks": "LF", "requireKeywordsOnNewLine": [], "disallowKeywordsOnNewLine": ["else"], "requireLineFeedAtFileEnd": true, "disallowTrailingWhitespace": true, "excludeFiles": ["node_modules/**", "vendor/**"], "disallowMultipleLineStrings": true, "additionalRules": [] } is-object-1.0.1/.testem.json000066400000000000000000000004631240127045700156470ustar00rootroot00000000000000{ "launchers": { "node": { "command": "node ./test" } }, "src_files": [ "./**/*.js" ], "before_tests": "npm run build", "on_exit": "rm test/static/bundle.js", "test_page": "test/static/index.html", "launch_in_dev": ["node", "phantomjs"] } is-object-1.0.1/.travis.yml000066400000000000000000000004661240127045700155110ustar00rootroot00000000000000language: node_js node_js: - "0.11" - "0.10" - "0.9" - "0.8" - "0.6" - "0.4" before_install: - '[ "${TRAVIS_NODE_VERSION}" == "0.6" ] || npm install -g npm@~1.4.6' matrix: fast_finish: true allow_failures: - node_js: "0.11" - node_js: "0.9" - node_js: "0.6" - node_js: "0.4" is-object-1.0.1/LICENSE000066400000000000000000000020341240127045700143760ustar00rootroot00000000000000Copyright (c) 2013 Colingo. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. is-object-1.0.1/README.md000066400000000000000000000027311240127045700146540ustar00rootroot00000000000000# is-object [![Version Badge][12]][11] [![build status][1]][2] [![dependency status][3]][4] [![dev dependency status][9]][10] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][13]][11] [![browser support][5]][6] Checks whether a value is an object Because `typeof null` is a troll. ## Example ```js var isObject = require('is-object'); var assert = require('assert'); assert.equal(isObject(null), false); assert.equal(isObject({}), true); ``` ## Installation `npm install is-object` ## Contributors - [Raynos][7] - [Jordan Harband][8] ## MIT Licensed [1]: https://secure.travis-ci.org/ljharb/is-object.svg [2]: http://travis-ci.org/ljharb/is-object [3]: http://david-dm.org/ljharb/is-object/status.svg [4]: http://david-dm.org/ljharb/is-object [5]: http://ci.testling.com/ljharb/is-object.svg [6]: http://ci.testling.com/ljharb/is-object [7]: https://github.com/Raynos [8]: https://github.com/ljharb [9]: https://david-dm.org/ljharb/is-object/dev-status.svg [10]: https://david-dm.org/ljharb/is-object#info=devDependencies [11]: https://npmjs.org/package/is-object [12]: http://vb.teelaun.ch/ljharb/is-object.svg [13]: https://nodei.co/npm/is-object.png?downloads=true&stars=true [license-image]: http://img.shields.io/npm/l/is-object.svg [license-url]: LICENSE [downloads-image]: http://img.shields.io/npm/dm/is-object.svg [downloads-url]: http://npm-stat.com/charts.html?package=is-object is-object-1.0.1/index.js000066400000000000000000000001471240127045700150410ustar00rootroot00000000000000"use strict"; module.exports = function isObject(x) { return typeof x === "object" && x !== null; }; is-object-1.0.1/package.json000066400000000000000000000024101240127045700156550ustar00rootroot00000000000000{ "name": "is-object", "version": "1.0.1", "description": "Checks whether a value is an object", "keywords": [], "author": "Raynos ", "repository": "git://github.com/ljharb/is-object.git", "main": "index", "homepage": "https://github.com/ljharb/is-object", "contributors": [ { "name": "Raynos" }, { "name": "Jordan Harband", "url": "https://github.com/ljharb" } ], "bugs": { "url": "https://github.com/ljharb/is-object/issues", "email": "ljharb@gmail.com" }, "dependencies": {}, "devDependencies": { "tape": "~2.14.0", "covert": "~1.0.0", "jscs": "~1.6.0" }, "license": "MIT", "licenses": [ { "type": "MIT", "url": "http://github.com/ljharb/is-object/raw/master/LICENSE" } ], "scripts": { "test": "npm run lint && node test/index.js && npm run coverage-quiet", "coverage": "covert test/index.js", "coverage-quiet": "covert test/index.js --quiet", "lint": "jscs *.js */*.js" }, "testling": { "files": "test/index.js", "browsers": [ "ie/6..latest", "firefox/3..6", "firefox/16..latest", "firefox/nightly", "chrome/22..latest", "chrome/canary", "opera/10.0", "opera/11..latest", "opera/next", "safari/4..latest", "ipad/6.0..latest", "iphone/6.0..latest" ] } } is-object-1.0.1/test/000077500000000000000000000000001240127045700143515ustar00rootroot00000000000000is-object-1.0.1/test/index.js000066400000000000000000000007301240127045700160160ustar00rootroot00000000000000var test = require('tape'); var isObject = require('../index'); test('returns true for objects', function (assert) { assert.equal(isObject({}), true); assert.equal(isObject([]), true); assert.end(); }); test('returns false for null', function (assert) { assert.equal(isObject(null), false); assert.end(); }); test('returns false for primitives', function (assert) { assert.equal(isObject(42), false); assert.equal(isObject('foo'), false); assert.end(); });