{
  "_id": "esniff",
  "maintainers": [
    {
      "name": "medikoo",
      "email": "medikoo+npm@medikoo.com"
    }
  ],
  "keywords": [
    "sniff",
    "analyze",
    "ast",
    "parse",
    "syntax",
    "sniffer",
    "detective",
    "detect",
    "find",
    "search",
    "source",
    "code"
  ],
  "dist-tags": {
    "latest": "2.0.1"
  },
  "author": {
    "name": "Mariusz Nowak",
    "email": "medyk@medikoo.com",
    "url": "http://www.medikoo.com/"
  },
  "_rev": "19-fa7c39c55be65b0f75a84d4c8f422f1c",
  "description": "Low footprint ECMAScript source code parser",
  "readme": "[![Build status][build-image]][build-url]\n[![Tests coverage][cov-image]][cov-url]\n[![npm version][npm-image]][npm-url]\n\n# esniff\n\n## Low footprint JavaScript source code parser\n\nLow footprint, fast source code parser, which allows you to find all code fragment occurrences with respect to all syntax rules that cannot be handled with plain regular expression search.\n\nIt aims at use cases where we don't need full AST tree, but instead we're interested in finding usages of given function, property etc. in syntactically valid code.\n\n### Installation\n\n#### npm\n\n    $ npm install esniff\n\n### Usage\n\nUsing main module you can configure sophisticated parser on your own. However, first, **see preprared [API utilities](#API) that may already address use cases you have**.\n\n#### esniff(code, executor)\n\n- `code` - Code to parse\n- `executor` - A function to be executed immediately by the constructor, It receives an `emitter` parameter.\n\n`emitter` emits following events:\n\n- `trigger:<char>` - When char is a code character approached in code, that is not a whitespaces, is not in a middle of identificator, is not part of a comment, string, template string or regular expression.\n\nEmitter passes to listener and `accessor` object, which provides access to current parser state and allows to manipulate parsing process. `accessor` exposes following methods:\n\n- `skipCodePart(codePart)` - Skips forward through input _codePart_ assuming parser index points start of given part. Returns true if given `codePart` was found and index and skipped\n- `skipIdentifier` - Skips approached identifier (can be function name or property name), returns `{ name, start, end }` meta object\n- `skipWhitespace` - Skips any whitespace and comments founds at current parsing index\n- `collectScope` - If at current index `(` character is found, it registers given paranthesis scope for registrations (it's content will be returned as one of the results after finished parsing)\n- `stop` - Stops parsing process\n- `index` - Returns currently parsed index\n- `previousToken` - Previous non-whitespace character\n- `scopeDepth` - Current scope depth\n- `shouldCollectComments` - Whether data about code comments should be collected in the result\n\n##### Example\n\nParse all `require(..)` calls:\n\n```javascript\nvar esniff = require(\"esniff\");\n\nvar parseRequires = function (code) {\n  return esniff(code, function (emitter) {\n    emitter.on(\"trigger:r\", function (accessor) {\n      if (accessor.previousToken === \".\") return;\n      if (!accessor.skipCodePart(\"require\")) return;\n      accessor.skipWhitespace();\n      accessor.collectScope();\n    });\n  });\n};\n\nconsole.log(parseRequires(\"var x = require('foo/bar')\"));\n[{ type: \"scope\", point: 17, column: 17, line: 1, raw: \"'foo/bar'\" }];\n```\n\n#### Predefined utils for common use cases\n\n#### accessedProperties(objName) _(esniff/accessed-properties)_\n\nReturns function which allows us to find all accessed property names on given object name\n\n```javascript\nvar findProperties = require(\"esniff/accessed-properties\");\nvar findContextProperties = findProperties(\"this\");\n\nvar result = findContextProperties(\n  \"var foo = \\\"0\\\"; this.bar = foo; this.someMethod(); otherFunction()\"\n);\nconsole.log(result); // [ { name: 'bar', start: 20, end: 23 }, { name: 'someMethod', start: 36, end: 46 } ]\n```\n\n#### function(name[, options]) _(esniff/function)_\n\nReturns function which allows us to find all occurrences of given function (or method) being invoked\n\nThrough options we can restrict cases which we're after:\n\n- `asProperty` (default: `false`), on true will allow `x.name()` when we search for `name` calls\n- `asPlain` (default: `true`), on true it allows plain calls e.g. `name()` when we search for `name`. Should be set to `false` if we're strictly about method calls.\n\nSetting both `asProperty` and `asPlain` to false, will always produce empty result\n\n```javascript\nvar findRequires = require(\"esniff/function\")(\"require\");\n\nfindRequires(\"var x = require('foo/bar')\");\n// [{ point: 17, column: 17, line: 1, raw: '\\'foo/bar\\'' }]\n```\n\n#### resolveArguments(code[, limit]) _(esniff/resolve-arguments)_\n\nResolves expressions separated with commas, with additional `limit` you can specify after which number of arguments resolver should stop\n\n```javascript\nvar resolveArgs = require(\"esniff/resolve-arguments\");\n\nvar result = resolveArgs(\"'raz', 'dwa', ['raz', 'dwa'], 'trzy'\", 3);\n\nconsole.log(result); // ['\"raz\"', ' \"dwa\"', ' [\\'raz\\', \\'dwa\\']']\n```\n\n### Limitations\n\n- _esniff_ assumes code that you pass is syntactically correct, it won't inform you about any syntax errors and may produce unexpected and nonsense results when such code is used.\n- There's single case of syntactically correct code, which will make _esniff_ produce incorrect results, it's division made directly on object literal (e.g. `x = { foo: 'bar' } / 14`, esniff in that case will assume that `/` starts regular expression). Still there's not known use case where such code may make any sense, and many popular JS source code parsers share very same vulnerability.\n\n## Tests\n\n    $ npm test\n\n## Security contact information\n\nTo report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.\n\n[build-image]: https://github.com/medikoo/esniff/workflows/Integrate/badge.svg\n[build-url]: https://github.com/medikoo/esniff/actions?query=workflow%3AIntegrate\n[cov-image]: https://img.shields.io/codecov/c/github/medikoo/esniff.svg\n[cov-url]: https://codecov.io/gh/medikoo/esniff\n[npm-image]: https://img.shields.io/npm/v/esniff.svg\n[npm-url]: https://www.npmjs.com/package/esniff\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/medikoo/esniff.git"
  },
  "users": {
    "icodeforcookies": true,
    "meeh": true,
    "kodekracker": true
  },
  "bugs": {
    "url": "https://github.com/medikoo/esniff/issues"
  },
  "license": "ISC",
  "versions": {
    "0.0.0": {
      "name": "esniff",
      "version": "0.0.0",
      "description": "ECMAScript source code sniffer",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/medikoo/esniff.git"
      },
      "scripts": {
        "test": "node ./node_modules/tad/bin/tad"
      },
      "dependencies": {
        "es5-ext": "git://github.com/medikoo/es5-ext.git"
      },
      "devDependencies": {
        "esprima": "1.x",
        "tad": "~0.1.20"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "_id": "esniff@0.0.0",
      "dist": {
        "shasum": "86b6d65f336bd9e106dea0b6feb53493fb783578",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-0.0.0.tgz",
        "integrity": "sha512-IfvlCfbyVqeuxi+t5sdacqMqknejJH3pTnx6rOR6DnBO9LeT+oCZnIgnMbSOAjhE2ds1t6uTvxnsfVbwz5lYeQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCICTez2DZp/GxN2zjcHtm/Z43roN9HgV3vY/45cnbyKkkAiA+Vbh85AlTEmReHD7RQUEXd8i+fyB1r0k2oK/4GABHSg=="
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.3.11",
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "directories": {}
    },
    "0.1.0": {
      "name": "esniff",
      "version": "0.1.0",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "es5-ext": "~0.10.2"
      },
      "devDependencies": {
        "esprima": "~1.1.1",
        "tad": "0.2.x"
      },
      "scripts": {
        "test": "node ./node_modules/tad/bin/tad"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff",
      "_id": "esniff@0.1.0",
      "dist": {
        "shasum": "8fa3c9e6aaa55169da7dfd6ada83c88777bc4618",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-0.1.0.tgz",
        "integrity": "sha512-M6OwKtjTv3tCrrQ6ORhiCP/IjCfaZNn5xveSJL5dCi3YQL+MRMKsuq/TaXbZ4tBprnDEYtucRiG5jMI0SGekhw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDkU3sd9PX2IgMugRzxccRm60QEWP6MND7uIfBoolZ6PgIhAIx4dzy8IjtullgmEqyCKbdwm4u55m1jvFaXI3zyrNaN"
          }
        ]
      },
      "_from": ".",
      "_npmVersion": "1.4.3",
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "directories": {}
    },
    "0.1.1": {
      "name": "esniff",
      "version": "0.1.1",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "es5-ext": "~0.10.4"
      },
      "devDependencies": {
        "esprima": "~1.2.2",
        "tad": "0.2.x",
        "xlint": "~0.2.1",
        "xlint-jslint-medikoo": "0.1.x"
      },
      "scripts": {
        "lint": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream",
        "lint-console": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "license": "MIT",
      "gitHead": "17ace46cf548c7000c969bdffa2b2081115fb805",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff",
      "_id": "esniff@0.1.1",
      "_shasum": "9e16f06cbca3b434dfcdb1d1415b674ddfb5c6d7",
      "_from": ".",
      "_npmVersion": "1.4.21",
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "dist": {
        "shasum": "9e16f06cbca3b434dfcdb1d1415b674ddfb5c6d7",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-0.1.1.tgz",
        "integrity": "sha512-w5/1gb+ounZQ4iAgIdTNPqx30skT9OsX1Mhfa82LUl3uuNKk+diYO0XIYxhGCHEJJMflEH/v7HRu5McXLcU/mA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQDFvQb11+YhbLHm63RTVQX1lL/OhuKZQw7JR9dajge8IQIhAINvU/qBjVlt+Az997hDz4fbCksy9Esvfas4xHwylc8G"
          }
        ]
      },
      "directories": {}
    },
    "1.0.0": {
      "name": "esniff",
      "version": "1.0.0",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^0.1.1",
        "es5-ext": "^0.10.7"
      },
      "devDependencies": {
        "esprima": "^2.6",
        "tad": "^0.2.3",
        "xlint": "^0.2.2",
        "xlint-jslint-medikoo": "^0.1.4"
      },
      "scripts": {
        "lint": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream",
        "lint-console": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "license": "MIT",
      "gitHead": "14b7361b0d7b07f71a496f4f11eeb74191a37b57",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@1.0.0",
      "_shasum": "a8d5b7d8fbe836b41b064e435b09c19988db142e",
      "_from": ".",
      "_npmVersion": "2.11.3",
      "_nodeVersion": "0.12.7",
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "dist": {
        "shasum": "a8d5b7d8fbe836b41b064e435b09c19988db142e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-1.0.0.tgz",
        "integrity": "sha512-1/dnMLd+4fJRfda0VBnpdDbgMqKtsePeZgew7P/K5VQB4b9Q9e8TEDTDl+ibE68yxiyN1A+ueo9OzpUUNR59UA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIFQCf6LwT075+kCxIEStss68yX5ef9ASry1t8fx69zsxAiEAyZPNvYM64qCMfhFJSacGffX8/7O2Iqq4zmEEtseX+ho="
          }
        ]
      },
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "directories": {}
    },
    "1.1.0": {
      "name": "esniff",
      "version": "1.1.0",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "1",
        "es5-ext": "^0.10.12"
      },
      "devDependencies": {
        "esprima": "^2.7.2",
        "tad": "^0.2.4",
        "xlint": "^0.2.2",
        "xlint-jslint-medikoo": "^0.1.4"
      },
      "scripts": {
        "lint": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream",
        "lint-console": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "license": "MIT",
      "gitHead": "714189c8e0d75b64cf7c52a29481baa7143dd267",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@1.1.0",
      "_shasum": "c66849229f91464dede2e0d40201ed6abf65f2ac",
      "_from": ".",
      "_npmVersion": "2.15.5",
      "_nodeVersion": "4.4.5",
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "dist": {
        "shasum": "c66849229f91464dede2e0d40201ed6abf65f2ac",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-1.1.0.tgz",
        "integrity": "sha512-vmHXOeOt7FJLsqofvFk4WB3ejvcHizCd8toXXwADmYfd02p2QwHRgkUbhYDX54y08nqk818CUTWipgZGlyN07g==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQCWR1U+D96yeK4D3isrwqDfZYSLFJywJqVR4E9eZ0/uEAIgIp42ZNvaGCY303g+n11fEFHH9/MINglLfd3d5ZmRzqE="
          }
        ]
      },
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/esniff-1.1.0.tgz_1471010853316_0.9069389454089105"
      },
      "directories": {}
    },
    "1.1.1": {
      "name": "esniff",
      "version": "1.1.1",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.62"
      },
      "devDependencies": {
        "eslint": "^8.56.0",
        "eslint-config-medikoo": "^4.2.0",
        "esprima": "^4.0.1",
        "github-release-from-cc-changelog": "^2.3.0",
        "nyc": "^15.1.0",
        "prettier-elastic": "^2.7.1",
        "tad": "^3.1.1"
      },
      "eslintConfig": {
        "extends": "medikoo/es5",
        "root": true,
        "overrides": [
          {
            "files": [
              "index.js",
              "is-var-name-valid.js"
            ],
            "rules": {
              "max-lines": "off"
            }
          },
          {
            "files": [
              "is-var-name-valid.js"
            ],
            "rules": {
              "no-misleading-character-class": "off"
            }
          },
          {
            "files": [
              "test/**"
            ],
            "env": {
              "node": true
            }
          }
        ]
      },
      "eslintIgnore": [
        "/coverage",
        "/test/__playground"
      ],
      "prettier": {
        "printWidth": 100,
        "tabWidth": 4,
        "overrides": [
          {
            "files": [
              "*.md",
              "*.yml"
            ],
            "options": {
              "tabWidth": 2
            }
          }
        ]
      },
      "nyc": {
        "all": true,
        "exclude": [
          ".github",
          "coverage/**",
          "test/**",
          "*.config.js"
        ],
        "reporter": [
          "lcov",
          "html",
          "text-summary"
        ]
      },
      "scripts": {
        "coverage": "nyc npm test",
        "lint": "eslint .",
        "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
        "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
        "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "engines": {
        "node": ">=0.10"
      },
      "license": "ISC",
      "gitHead": "1e1b01d984e3415369afd93b5496376957d2a57d",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@1.1.1",
      "_nodeVersion": "16.20.2",
      "_npmVersion": "8.19.4",
      "dist": {
        "integrity": "sha512-m6yjTo1rhSbgtgSlJVd/qydBe3mOrx4mn7O8rA6vTgS/hbImrIvpSzCCQ1hCYtD6tbWjlDbsKmL7SeC8Vsq/bA==",
        "shasum": "954d4e367c3c37a8e89727aaf9ff38bbeb66431f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-1.1.1.tgz",
        "fileCount": 50,
        "unpackedSize": 70868,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDtRHBC2NT2n701UDOS8LO0zBbTcbcdCJmzLSlp7Wc3NQIgYnjagyA40eHVvYnX4cmmlKgRzv6yxAsQyzqT/VQ8sEU="
          }
        ]
      },
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/esniff_1.1.1_1704381642411_0.7494919714017025"
      },
      "_hasShrinkwrap": false
    },
    "1.1.2": {
      "name": "esniff",
      "version": "1.1.2",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.62"
      },
      "devDependencies": {
        "eslint": "^8.56.0",
        "eslint-config-medikoo": "^4.2.0",
        "esprima": "^4.0.1",
        "github-release-from-cc-changelog": "^2.3.0",
        "nyc": "^15.1.0",
        "prettier-elastic": "^2.7.1",
        "tad": "^3.1.1"
      },
      "eslintConfig": {
        "extends": "medikoo/es5",
        "root": true,
        "overrides": [
          {
            "files": [
              "index.js",
              "is-var-name-valid.js"
            ],
            "rules": {
              "max-lines": "off"
            }
          },
          {
            "files": [
              "is-var-name-valid.js"
            ],
            "rules": {
              "no-misleading-character-class": "off"
            }
          },
          {
            "files": [
              "test/**"
            ],
            "env": {
              "node": true
            }
          }
        ]
      },
      "eslintIgnore": [
        "/coverage",
        "/test/__playground"
      ],
      "prettier": {
        "printWidth": 100,
        "tabWidth": 4,
        "overrides": [
          {
            "files": [
              "*.md",
              "*.yml"
            ],
            "options": {
              "tabWidth": 2
            }
          }
        ]
      },
      "nyc": {
        "all": true,
        "exclude": [
          ".github",
          "coverage/**",
          "test/**",
          "*.config.js"
        ],
        "reporter": [
          "lcov",
          "html",
          "text-summary"
        ]
      },
      "scripts": {
        "coverage": "nyc npm test",
        "lint": "eslint .",
        "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
        "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
        "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "engines": {
        "node": ">=0.10"
      },
      "license": "ISC",
      "gitHead": "0328f7d7c3e2cd98c6acb611a9ef2e51ea3d0c3d",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@1.1.2",
      "_nodeVersion": "16.20.2",
      "_npmVersion": "8.19.4",
      "dist": {
        "integrity": "sha512-HY5baSVFtje0nniyxoMgr2GP2gizOqRcR7JLrvsO8UVvVxQ0ui4r/Kyls/MdLhEDuaVZaOys1I5jiiye6t5fIw==",
        "shasum": "7d927c34edafa2bf1fe4e9f3fc8150c954a10684",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-1.1.2.tgz",
        "fileCount": 22,
        "unpackedSize": 49340,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAlB/F3MAoA+63iZuNZVM4haEINEIUrRT2nuQ0OoCV0VAiEAimI5gIUE3iwTZI1CLl46Ln59PAE7oNHqBwTpWilOOYo="
          }
        ]
      },
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/esniff_1.1.2_1704381933134_0.2905652768838709"
      },
      "_hasShrinkwrap": false
    },
    "1.1.3": {
      "name": "esniff",
      "version": "1.1.3",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.62"
      },
      "devDependencies": {
        "eslint": "^8.56.0",
        "eslint-config-medikoo": "^4.2.0",
        "esprima": "^4.0.1",
        "github-release-from-cc-changelog": "^2.3.0",
        "nyc": "^15.1.0",
        "prettier-elastic": "^2.7.1",
        "tad": "^3.1.1"
      },
      "eslintConfig": {
        "extends": "medikoo/es5",
        "root": true,
        "overrides": [
          {
            "files": [
              "index.js",
              "is-var-name-valid.js"
            ],
            "rules": {
              "max-lines": "off"
            }
          },
          {
            "files": [
              "is-var-name-valid.js"
            ],
            "rules": {
              "no-misleading-character-class": "off"
            }
          },
          {
            "files": [
              "test/**"
            ],
            "env": {
              "node": true
            }
          }
        ]
      },
      "eslintIgnore": [
        "/coverage",
        "/test/__playground"
      ],
      "prettier": {
        "printWidth": 100,
        "tabWidth": 4,
        "overrides": [
          {
            "files": [
              "*.md",
              "*.yml"
            ],
            "options": {
              "tabWidth": 2
            }
          }
        ]
      },
      "nyc": {
        "all": true,
        "exclude": [
          ".github",
          "coverage/**",
          "test/**",
          "*.config.js"
        ],
        "reporter": [
          "lcov",
          "html",
          "text-summary"
        ]
      },
      "scripts": {
        "coverage": "nyc npm test",
        "lint": "eslint .",
        "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
        "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
        "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "engines": {
        "node": ">=0.10"
      },
      "license": "ISC",
      "gitHead": "3ec6f7b659ee1801cd7b0daa2bd5a9e3ab8b8ce4",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@1.1.3",
      "_nodeVersion": "16.20.2",
      "_npmVersion": "8.19.4",
      "dist": {
        "integrity": "sha512-SLBLpfE7xWgF/HbzhVuAwqnJDRqSCNZqcqaIMVm+f+PbTp1kFRWu6BuT83SATb4Tp+ovr+S+u7vDH7/UErAOkw==",
        "shasum": "b0cdd52609bf3c6bf494185a241a5b51fd7ec296",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-1.1.3.tgz",
        "fileCount": 22,
        "unpackedSize": 40489,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDw0rLwEmgIn+UYarF8Sh9Jh2bPSGb6v9Wuu2ZE7YVvBQIgE/oQ0TYZvxMjyhMbeK5lIA7pntdQcippCLPARKEH9D4="
          }
        ]
      },
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/esniff_1.1.3_1704386778867_0.6018305255158998"
      },
      "_hasShrinkwrap": false
    },
    "2.0.0": {
      "name": "esniff",
      "version": "2.0.0",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.62",
        "event-emitter": "^0.3.5",
        "type": "^2.7.2"
      },
      "devDependencies": {
        "eslint": "^8.56.0",
        "eslint-config-medikoo": "^4.2.0",
        "esprima": "^4.0.1",
        "github-release-from-cc-changelog": "^2.3.0",
        "nyc": "^15.1.0",
        "prettier-elastic": "^2.7.1",
        "tad": "^3.1.1"
      },
      "eslintConfig": {
        "extends": "medikoo/es5",
        "root": true,
        "overrides": [
          {
            "files": [
              "index.js"
            ],
            "rules": {
              "max-depth": "off"
            }
          },
          {
            "files": [
              "index.js",
              "utils/is-variable-name.js"
            ],
            "rules": {
              "max-lines": "off"
            }
          },
          {
            "files": [
              "utils/is-variable-name.js"
            ],
            "rules": {
              "no-misleading-character-class": "off"
            }
          },
          {
            "files": [
              "test/**"
            ],
            "env": {
              "node": true
            }
          }
        ]
      },
      "eslintIgnore": [
        "/coverage",
        "/test/__playground"
      ],
      "prettier": {
        "printWidth": 100,
        "tabWidth": 4,
        "overrides": [
          {
            "files": [
              "*.md",
              "*.yml"
            ],
            "options": {
              "tabWidth": 2
            }
          }
        ]
      },
      "nyc": {
        "all": true,
        "exclude": [
          ".github",
          "coverage/**",
          "test/**",
          "*.config.js"
        ],
        "reporter": [
          "lcov",
          "html",
          "text-summary"
        ]
      },
      "scripts": {
        "coverage": "nyc npm test",
        "lint": "eslint .",
        "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
        "prettier-check": "prettier -c \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
        "prettify": "prettier --write \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "engines": {
        "node": ">=0.10"
      },
      "license": "ISC",
      "gitHead": "64085e2ea055ed67cf83f25fc9d2dbdb2090ea8c",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@2.0.0",
      "_nodeVersion": "16.20.2",
      "_npmVersion": "8.19.4",
      "dist": {
        "integrity": "sha512-LIXrU3VXh8DmrDq56BcY1aYvbyJg5cvT8QwYjEDBKFmhLmbcXKMaYrCI4kdF47GmUBVKr4CPSGT44/JCuXd5Iw==",
        "shasum": "51c4fca4ff2c2d97934030e84a5791ce08e0778f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-2.0.0.tgz",
        "fileCount": 22,
        "unpackedSize": 60621,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIB87EwAkJuJzSBcX/mX/rQ3E56fW6PRZs2dlWJNljFG0AiEAqmBL5PtgfqvjBwy2e0+C5CSuMrZXHREjFZ203mYPEY4="
          }
        ]
      },
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/esniff_2.0.0_1708356863974_0.8316783687219194"
      },
      "_hasShrinkwrap": false
    },
    "2.0.1": {
      "name": "esniff",
      "version": "2.0.1",
      "description": "Low footprint ECMAScript source code parser",
      "author": {
        "name": "Mariusz Nowak",
        "email": "medyk@medikoo.com",
        "url": "http://www.medikoo.com/"
      },
      "keywords": [
        "sniff",
        "analyze",
        "ast",
        "parse",
        "syntax",
        "sniffer",
        "detective",
        "detect",
        "find",
        "search",
        "source",
        "code"
      ],
      "repository": {
        "type": "git",
        "url": "git+https://github.com/medikoo/esniff.git"
      },
      "dependencies": {
        "d": "^1.0.1",
        "es5-ext": "^0.10.62",
        "event-emitter": "^0.3.5",
        "type": "^2.7.2"
      },
      "devDependencies": {
        "eslint": "^8.56.0",
        "eslint-config-medikoo": "^4.2.0",
        "esprima": "^4.0.1",
        "github-release-from-cc-changelog": "^2.3.0",
        "nyc": "^15.1.0",
        "prettier-elastic": "^2.7.1",
        "tad": "^3.1.1"
      },
      "eslintConfig": {
        "extends": "medikoo/es5",
        "root": true,
        "overrides": [
          {
            "files": [
              "index.js"
            ],
            "rules": {
              "max-depth": "off"
            }
          },
          {
            "files": [
              "index.js",
              "utils/is-variable-name.js"
            ],
            "rules": {
              "max-lines": "off"
            }
          },
          {
            "files": [
              "utils/is-variable-name.js"
            ],
            "rules": {
              "no-misleading-character-class": "off"
            }
          },
          {
            "files": [
              "test/**"
            ],
            "env": {
              "node": true
            }
          }
        ]
      },
      "eslintIgnore": [
        "/coverage",
        "/test/__playground"
      ],
      "prettier": {
        "printWidth": 100,
        "tabWidth": 4,
        "overrides": [
          {
            "files": [
              "*.md",
              "*.yml"
            ],
            "options": {
              "tabWidth": 2
            }
          }
        ]
      },
      "nyc": {
        "all": true,
        "exclude": [
          ".github",
          "coverage/**",
          "test/**",
          "*.config.js"
        ],
        "reporter": [
          "lcov",
          "html",
          "text-summary"
        ]
      },
      "scripts": {
        "coverage": "nyc npm test",
        "lint": "eslint .",
        "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'",
        "prettier-check": "prettier -c \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
        "prettify": "prettier --write \"**/*.{css,html,js,json,md,yaml,yml}\"",
        "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
        "test": "node ./node_modules/tad/bin/tad"
      },
      "engines": {
        "node": ">=0.10"
      },
      "license": "ISC",
      "gitHead": "8498674e0894acc27e606d6f55e732e628107596",
      "bugs": {
        "url": "https://github.com/medikoo/esniff/issues"
      },
      "homepage": "https://github.com/medikoo/esniff#readme",
      "_id": "esniff@2.0.1",
      "_nodeVersion": "16.20.2",
      "_npmVersion": "8.19.4",
      "dist": {
        "integrity": "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==",
        "shasum": "a4d4b43a5c71c7ec51c51098c1d8a29081f9b308",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/esniff/-/esniff-2.0.1.tgz",
        "fileCount": 22,
        "unpackedSize": 60911,
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIAlOZGZto7GuH6JuDiIfZ/kSflD36GSVVVsfMtEqT41fAiASN3gW8J3xxK8Kdc14i1sf/36E3THrGHvWG1lypmtf2A=="
          }
        ]
      },
      "_npmUser": {
        "name": "medikoo",
        "email": "medikoo+npm@medikoo.com"
      },
      "directories": {},
      "maintainers": [
        {
          "name": "medikoo",
          "email": "medikoo+npm@medikoo.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/esniff_2.0.1_1708529348948_0.18900879735642562"
      },
      "_hasShrinkwrap": false
    }
  },
  "name": "esniff",
  "time": {
    "modified": "2026-05-13T13:51:10.680Z",
    "created": "2013-11-06T13:32:50.655Z",
    "0.0.0": "2013-11-06T13:32:54.274Z",
    "0.1.0": "2014-04-28T12:07:13.986Z",
    "0.1.1": "2014-08-08T09:15:57.195Z",
    "1.0.0": "2015-09-03T10:18:24.147Z",
    "1.1.0": "2016-08-12T14:07:34.818Z",
    "1.1.1": "2024-01-04T15:20:42.617Z",
    "1.1.2": "2024-01-04T15:25:33.305Z",
    "1.1.3": "2024-01-04T16:46:19.025Z",
    "2.0.0": "2024-02-19T15:34:24.151Z",
    "2.0.1": "2024-02-21T15:29:09.138Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/medikoo/esniff#readme"
}