{"_id":"menuspy","_rev":"10-2a56468b449db6d39ff17761018e4631","name":"menuspy","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","dist-tags":{"latest":"1.3.0"},"versions":{"1.0.0":{"name":"menuspy","version":"1.0.0","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"c69a9bbe12a804d4bc8d3ba63b033663defb37f4","_id":"menuspy@1.0.0","_shasum":"dd0095b46090b54567f2d96546467d673c278fb3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"dist":{"shasum":"dd0095b46090b54567f2d96546467d673c278fb3","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.0.0.tgz","integrity":"sha512-ZGQCA4zELdzrK7G6soCm9D/K3M4JHqYBoAjVcss0CaPf6fxDr6fHeU5fMPUpRQkolarTRcrVooPveVECNnk0lQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRt/WFYfCoh835oXuJlv7W6oKmozoQZvF3NmIlu9Zc4gIhAK1oQXdTEbEG9jTU4KDqrc4rNaP3WwjOuxUvfeNoLWn7"}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/menuspy-1.0.0.tgz_1474895431036_0.5377728349994868"}},"1.0.1":{"name":"menuspy","version":"1.0.1","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"677985f5f625d2ad05c3fd67d8330120ef3d183e","_id":"menuspy@1.0.1","_shasum":"be710e789da15318cb80b3cb9bf775671ae70c7e","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"shasum":"be710e789da15318cb80b3cb9bf775671ae70c7e","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.0.1.tgz","integrity":"sha512-KBntv9atowk9Hrc69eaEVPV+QBfAV1jqe5OXw2ebIzc5qvg8FUnIvDzg+RwICSDQClF/u1ZcSaDx1CE9Zd6ujg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgKaNlgMF+icd7sDdD8vXYgKETjd7iV0QqbxyvFm/VIAiAaVkq64EvxuQqpnZ2n2Pu1XtXpY4C20e+ar0x4nVtN1w=="}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/menuspy-1.0.1.tgz_1480552371089_0.7943112179636955"}},"1.1.1":{"name":"menuspy","version":"1.1.1","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup":"^0.45.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"7b12fd5cc1045802f6b7622c2be510cc7503547a","_id":"menuspy@1.1.1","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"integrity":"sha512-06QwM1R60pDZLP0oNzqDBI7JLYtxe8ZIzWeOUvgdtaw1TsHUUXb2bfz3URpuEkzuIn4m7BLVqAqkZlTUbQvyxA==","shasum":"c9e89c6469067c5ff97d3e2995866746a298d487","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCV8888WJ1EjDdn6An9yXfcYY9gwHJ0fed0XOTI2bKdBQIhAMsdDXCEjngkKioZ855qXjUtt4oAIFB+7Rs0EhAy7Qnw"}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menuspy-1.1.1.tgz_1501818228561_0.6422589684370905"}},"1.1.2":{"name":"menuspy","version":"1.1.2","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup":"^0.45.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"9902a242383111946c825983b6e9011dce444639","_id":"menuspy@1.1.2","_npmVersion":"5.0.3","_nodeVersion":"8.1.2","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"integrity":"sha512-DeW5yBQa3TiFT8uhs/DU67d7/OHK+fT3qO/Z+8BIAk/jzh6ErMIXBjwRgmtHnbElWDLcCKCd9KBVzmEAKORmeQ==","shasum":"284d2c55e659023f1cb6c6f70d6f80127a53ff59","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.1.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKc20NRqbt/cA4KLQ+xVFVyzSswaCF583ShebN1RY9OAiAEIVJeU5hpAumKno1zJMjELzvuYiC7XGrvW9LJEOMY+w=="}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menuspy-1.1.2.tgz_1501903928547_0.668692373437807"}},"1.2.0":{"name":"menuspy","version":"1.2.0","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup":"^0.45.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"a12c12e8135a338e44bc54db4b0c2e2703ac6b87","_id":"menuspy@1.2.0","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"integrity":"sha512-j20KlC2AguyvwA8yg4I+gFpDR9+yF7xHAWhNelOryRv7Ig5G/31d7N+uDERc7VRapW3KkhDji/tq8kmZQAIBLg==","shasum":"f427308266e9b88203e7daca6bfff215356741ff","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdKK8rBcGj6bJ/UAMeVXsU+e6awFcfqmox78bH7wpxQAIhAKv5r1bdAWa5SLqH8YRp0v/wqAqjFmU9VnQqko4NggQg"}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menuspy-1.2.0.tgz_1510706835684_0.7661686583887786"}},"1.2.1":{"name":"menuspy","version":"1.2.1","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^3.4.0","jasmine-core":"^2.5.0","karma":"^1.2.0","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.0.2","karma-phantomjs-launcher":"^1.0.2","rollup":"^0.45.2","rollup-plugin-buble":"^0.13.0","rollup-plugin-eslint":"^2.0.2","rollup-watch":"^2.5.0","uglify-js":"^2.7.3"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"68d92be65d92185d4a498009378d5cb0bc5238ac","_id":"menuspy@1.2.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"integrity":"sha512-da7hLyeiDyiPhKZgQlRHVWuQMgeVSSP76NNoAlNvOaVOpsTASNm7ZvYpz0sGY/lVWAef6LE9y6j6bKzN13kNqA==","shasum":"11db65ecbd75c3752c3b45cb20692b150e6a83a2","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.2.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDr3KDXw05RfuIbcayp9JSlqDQxMAUNJRC51/TycaBIzgIgefZe1fwVZ33XIPChbMfWTgZRvmfxDin5Z4FFZzD/2no="}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menuspy-1.2.1.tgz_1510716386138_0.8030964171048254"}},"1.3.0":{"name":"menuspy","version":"1.3.0","title":"MenuSpy","author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"license":"MIT","description":"A JavaScript library to make navigation menus highlight active item based on the scroll position.","main":"dist/menuspy.js","keywords":["nav","navigation","menu","menuspy","scrollspy"],"docs":"http://leocs.me/menuspy/","demo":"http://leocs.me/menuspy/demo","bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"homepage":"http://leocs.me/menuspy/","repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"devDependencies":{"eslint":"^4.16.0","jasmine-core":"^2.9.1","karma":"^1.7.1","karma-chrome-launcher":"^2.0.0","karma-jasmine":"^1.1.1","karma-phantomjs-launcher":"^1.0.2","rollup":"^0.55.1","rollup-plugin-buble":"^0.18.0","rollup-plugin-eslint":"^4.0.0","rollup-watch":"^4.3.1","uglify-js":"^3.3.9"},"scripts":{"start":"npm run dev","dev":"npm run build:rollup -- --watch","build":"npm run build:rollup && npm run build:minify","build:rollup":"rollup -c","build:minify":"uglifyjs dist/menuspy.js --comments /^/*!/ --compress --mangle --output dist/menuspy.min.js","lint":"eslint \"src/**\"","test":"karma start"},"gitHead":"3e8862ad82149fe82b524fb14d28e2655800232b","_id":"menuspy@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"lcdsantos","email":"leocs.1991@gmail.com"},"dist":{"integrity":"sha512-cZD8Ik4gfWzOADiCiGP0l08DQerQfeli82u7NKSP+Br3C6YmpYeZmGlTqmLwQvOIeJVoDnlEdkkz9m133L5CIQ==","shasum":"2afe5e751f1c4540cdba4af7cd96be24fcf5b3f1","tarball":"https://registry.npmjs.org/menuspy/-/menuspy-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDvAatPxlxGO52Pax7I/UjNliVrTahivNNGIjAUsdusJAiEA4hvwof0U9IesEyReJlgkyo/V/WH+bx2f+9xhcim/XGM="}]},"maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/menuspy-1.3.0.tgz_1517432023099_0.8783370377495885"}}},"readme":"# MenuSpy\n\nA JavaScript library to make navigation menus highlight the item based on currently in view section.\n\n* No dependencies\n* Easy to use\n* Lightweight and fast\n\n## Usage\n\nInclude MenuSpy\n\n```html\n<script src=\"menuspy.js\"></script>\n```\n\n`MenuSpy` will be available in the global scope.\n\nOr install via NPM/Yarn and require as a module\n\n```\nnpm install menuspy\n```\n\n```js\nvar MenuSpy = require('menuspy');\n```\n\nInitialize the plugin on your menu element\n\n```html\n<header id=\"main-header\">\n  <nav>\n    <ul>\n      <li><a href=\"#features\">Features</a></li>\n      <li><a href=\"#usage\">Usage</a></li>\n      <li><a href=\"#options\">Options</a></li>\n      <li><a href=\"#examples\">Examples</a></li>\n    </ul>\n  </nav>\n</header>\n```\n\nYou can also use `data-target` on the anchor element with a selector. Example:\n\n```html\n<a href=\"#anything\" data-target=\"selector\">Anything</a>\n```\n\n```js\nvar elm = document.querySelector('#main-header');\nvar ms = new MenuSpy(elm);\n```\n\nThe `MenuSpy()` constructor accepts two arguments: the container element and an options object.\n\n\n## Options\n\n| Option               | Type     | Default                    | Description                                                              |\n| ---------------------| -------- | -------------------------- | ------------------------------------------------------------------------ |\n| `menuItemSelector`   | String   | `a[href^=\"#\"]`             | Menu items selector.                                                     |\n| `activeClass`        | String   | `active`                   | Class applied on menu item relative to the currently visible section.    |\n| `threshold`          | Integer  | `15`                       | Ammount of space between your menu and the next section to be activated. |\n| `enableLocationHash` | Boolean  | `true`                     | Enable or disable browser's hash location change.                        |\n| `hashTimeout`        | Integer  | `600`                      | Timeout to apply browser's hash location.                                |\n| `callback`           | Function | `function(currentItem) {}` | A function to be called every time a new menu item activates.            |","maintainers":[{"name":"lcdsantos","email":"leocs.1991@gmail.com"}],"time":{"modified":"2022-06-19T17:50:12.526Z","created":"2016-09-26T13:10:32.403Z","1.0.0":"2016-09-26T13:10:32.403Z","1.0.1":"2016-12-01T00:32:51.314Z","1.1.1":"2017-08-04T03:43:48.936Z","1.1.2":"2017-08-05T03:32:08.701Z","1.2.0":"2017-11-15T00:47:15.794Z","1.2.1":"2017-11-15T03:26:26.261Z","1.3.0":"2018-01-31T20:53:43.160Z"},"homepage":"http://leocs.me/menuspy/","keywords":["nav","navigation","menu","menuspy","scrollspy"],"repository":{"type":"git","url":"git+https://github.com/lcdsantos/menuspy.git"},"author":{"name":"Leonardo Santos","email":"leocs.1991@gmail.com"},"bugs":{"url":"https://github.com/lcdsantos/menuspy/issues"},"license":"MIT","readmeFilename":"README.md"}