OverviewFilesCommitsIssuesDocsReleasesPeers

holepunchto-kb / skills / same-object / api-extract.json

50 lines · json ref:
{
  "repo": "same-object",
  "timestamp": "2026-01-16T23:56:27.629Z",
  "entryPoint": "index.js",
  "exports": {
    "packageJson": {
      "main": "index.js"
    }
  },
  "api": {
    "file": "index.js",
    "exports": [
      {
        "type": "default",
        "name": "same"
      }
    ],
    "classes": [],
    "functions": [
      {
        "name": "same"
      },
      {
        "name": "sameObject"
      },
      {
        "name": "getType"
      }
    ]
  },
  "readme": {
    "content": "# same-object\n\nDetermine if two objects are deeply equal\n\n```\nnpm install same-object\n```\n\nSupports circular references, Maps, Symbols, etc.\n\nAims for ~99% compatibility with `deep-equal` or `assert.deepEqual` without requiring native dependencies.\\\nUseful for JavaScript runtimes without native Node modules like `util`, etc.\n\n## Usage\n\n```js\nconst sameObject = require('same-object')\n\nconsole.log(sameObject(1, '1')) // true\nconsole.log(sameObject(1, '1', { strict: true })) // false\n\nconsole.log(sameObject({ a: 1 }, { a: 1 })) // true\nconsole.log(sameObject({ a: 1 }, { a: 1, b: 2 })) // false\n\nconsole.log(sameObject(new Set(['a', 1, 'b', 2]), new Set(['b', 2, 'a', 1]))) // true\n```\n\n## API\n\n#### `const bool = sameObject(a, b, [options])`\n\nCompares `a` and `b`, returning whether they are equal or not.\n\nAvailable `options`:\n\n```js\n{\n  strict: false\n}\n```\n\nLoosely comparison (`==`) by default.\\\nUse `{ strict: true }` for a stronger equality check (`===`).\n\n## References\n\nThe source code is ",
    "sections": [
      "intro",
      "usage",
      "api",
      "references",
      "license"
    ],
    "hasApi": true,
    "hasExamples": true,
    "exampleCount": 3,
    "examples": [
      "npm install same-object",
      "const sameObject = require('same-object')\n\nconsole.log(sameObject(1, '1')) // true\nconsole.log(sameObject(1, '1', { strict: true })) // false\n\nconsole.log(sameObject({ a: 1 }, { a: 1 })) // true\nconsole.log(sameObject({ a: 1 }, { a: 1, b: 2 })) // false\n\nconsole.log(sameObject(new Set(['a', 1, 'b', 2]), new Set(['b', 2, 'a', 1]))) // true",
      "{\n  strict: false\n}"
    ]
  },
  "patterns": []
}