{"_id":"@aodin/tablesorter","_rev":"6-8fecbfa09b691c7e578a4d9aa74c1c8f","name":"@aodin/tablesorter","description":"Native JS tablesorter","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"@aodin/tablesorter","version":"1.0.0","keywords":["table","sort","tablesorter","native","JS"],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"license":"MIT","_id":"@aodin/tablesorter@1.0.0","maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"homepage":"https://github.com/aodin/tablesorter#readme","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"dist":{"shasum":"828cc9a0329bbdd92b707bce58e13dd86fd8c930","tarball":"https://registry.npmjs.org/@aodin/tablesorter/-/tablesorter-1.0.0.tgz","fileCount":11,"integrity":"sha512-qi10+moSnqCDWNsmWXAPtDWUoN1YvHwFBqGy1dRcr+NvyZmObSzj6jn/p0fasXCHiKHCHdprfP+XF5Qw1k4FTA==","signatures":[{"sig":"MEUCIQDrAsuC0xjefrit1n4+9V3EH0vncR5qQiaw2j6XmE9ddwIge1pDtqIeOZLhIV3El0dNgQk5F2oNl2qSxGXa1hyftj0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18975},"main":"src/tablesorter.js","type":"module","gitHead":"acda0b90eb14a6e6fbf0c5644f4eb426ac81df10","scripts":{"js":"esbuild src/tablesorter.js --bundle --minify --sourcemap --out-extension:.js=.min.js --outdir=dist/ --global-name=tablesorter --target=es2018","css":"sass --load-path=. --style=compressed src/styles.scss ./dist/styles.min.css","fmt":"prettier --write src/tablesorter.js tests/*","test":"uvu tests","build":"npm run fmt && npm run js"},"_npmUser":{"name":"aodin","email":"aaronoellis@gmail.com"},"repository":{"url":"git+https://github.com/aodin/tablesorter.git","type":"git"},"_npmVersion":"10.2.4","description":"Native JS tablesorter","directories":{"test":"tests"},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"devDependencies":{"uvu":"^0.5.6","sass":"^1.71.1","jsdom":"^24.0.0","esbuild":"^0.20.1","prettier":"^3.2.5"},"_npmOperationalInternal":{"tmp":"tmp/tablesorter_1.0.0_1709534007861_0.11164053610948721","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@aodin/tablesorter","version":"1.1.0","keywords":["table","sort","tablesorter","native","JS"],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"license":"MIT","_id":"@aodin/tablesorter@1.1.0","maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"homepage":"https://github.com/aodin/tablesorter#readme","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"dist":{"shasum":"7c483a51dcad90599e1141d1b97962a525a18ed8","tarball":"https://registry.npmjs.org/@aodin/tablesorter/-/tablesorter-1.1.0.tgz","fileCount":14,"integrity":"sha512-uqZmytU0ZQKAE52PaOzyx0UVOFa5eQXUvYwLGZF5iGCRaScOd7gO1Xw3EjuzWMr962Hb03KokqwDJ5iGElQZug==","signatures":[{"sig":"MEUCIFjv/5eMNvfyV9Bs4GxoUaY08TMR3h9OZ37V2gnPue1nAiEAgb6wRtPurTQVb957Pe8IOANpbJhHOTEPNcdTx7QU/5Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37200},"main":"src/tablesorter.js","type":"module","gitHead":"05e8e0fb5797842124299ba81a758d8ef4060144","scripts":{"js":"esbuild src/tablesorter.js --bundle --minify --sourcemap --out-extension:.js=.min.js --outdir=dist/ --global-name=tablesorter --target=es2018","css":"sass --load-path=. --style=compressed src/styles.scss ./dist/styles.min.css","fmt":"prettier --write src/tablesorter.js tests/*","test":"uvu tests","build":"npm run fmt && npm run js"},"_npmUser":{"name":"aodin","email":"aaronoellis@gmail.com"},"repository":{"url":"git+https://github.com/aodin/tablesorter.git","type":"git"},"_npmVersion":"10.2.3","description":"Native JS tablesorter","directories":{"test":"tests"},"_nodeVersion":"21.2.0","_hasShrinkwrap":false,"devDependencies":{"uvu":"^0.5.6","sass":"^1.72.0","jsdom":"^24.0.0","esbuild":"^0.20.2","prettier":"^3.2.5"},"_npmOperationalInternal":{"tmp":"tmp/tablesorter_1.1.0_1711061062041_0.3380276455069","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@aodin/tablesorter","version":"1.1.1","keywords":["table","sort","tablesorter","native","JS"],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"license":"MIT","_id":"@aodin/tablesorter@1.1.1","maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"homepage":"https://github.com/aodin/tablesorter#readme","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"dist":{"shasum":"61f2d48959c3b63ca87a3e1d5407754bf393c2a3","tarball":"https://registry.npmjs.org/@aodin/tablesorter/-/tablesorter-1.1.1.tgz","fileCount":11,"integrity":"sha512-eS09ZsF5NuQsWQknJKhPd8Qtffasyevercv18sIcIBniqps+argt6zZD79Lq79uxnQZCmIxhsBAW6gIKrc9Qrw==","signatures":[{"sig":"MEYCIQD/Mc77bbltGTkJSWDtpkJZPZoEX53yBICvbhJpjHkT8wIhAMjgNzqoiSrSuF2iA/iAN1lyICZBzGLqEspwnoz/2igz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18803},"main":"src/tablesorter.js","type":"module","gitHead":"58fe0ad832efaf52842a28f70b314ee096d3313d","scripts":{"js":"esbuild src/tablesorter.js --bundle --minify --sourcemap --out-extension:.js=.min.js --outdir=dist/ --global-name=tablesorter --target=es2020","css":"sass --load-path=. --style=compressed src/styles.scss ./dist/styles.min.css","fmt":"prettier --write src/tablesorter.js tests/*","test":"uvu tests","build":"npm run fmt && npm run js"},"_npmUser":{"name":"aodin","email":"aaronoellis@gmail.com"},"repository":{"url":"git+https://github.com/aodin/tablesorter.git","type":"git"},"_npmVersion":"10.5.0","description":"Native JS tablesorter","directories":{"test":"tests"},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"uvu":"^0.5.6","sass":"^1.77.4","jsdom":"^24.1.0","esbuild":"^0.21.5","prettier":"^3.3.1"},"_npmOperationalInternal":{"tmp":"tmp/tablesorter_1.1.1_1718049088362_0.23051886792422827","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@aodin/tablesorter","version":"1.1.2","keywords":["table","sort","tablesorter","native","JS"],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"license":"MIT","_id":"@aodin/tablesorter@1.1.2","maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"homepage":"https://github.com/aodin/tablesorter#readme","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"dist":{"shasum":"6bc3c9c2907b399fbfb442bd596e5f07363b4ae0","tarball":"https://registry.npmjs.org/@aodin/tablesorter/-/tablesorter-1.1.2.tgz","fileCount":11,"integrity":"sha512-VMmIzc83oqCN0CrcMHwhHwKHoE33F6PgpeYBPTDTn/IrdRrpoH4Gq7cFzDFmkCwMfkrYUKMmeXLa3YSpxK/Kqg==","signatures":[{"sig":"MEQCIHqag3b68+WM/9psxvjGJGl/RKFAiCAzw9ohDs6YRVS/AiAvTkYbimGF8c1r1QYdDWrVlQHD4AX7g0sw+AUvPHU3pA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22119},"main":"src/tablesorter.js","type":"module","gitHead":"e646abeee011342d7a293e8906b63823694ca539","scripts":{"js":"esbuild src/tablesorter.js --bundle --minify --sourcemap --out-extension:.js=.min.js --outdir=dist/ --global-name=tablesorter --target=es2020","css":"sass --load-path=. --style=compressed src/styles.scss ./dist/styles.min.css","fmt":"prettier --write src/tablesorter.js tests/*","test":"uvu tests","build":"npm run fmt && npm run js"},"_npmUser":{"name":"aodin","email":"aaronoellis@gmail.com"},"repository":{"url":"git+https://github.com/aodin/tablesorter.git","type":"git"},"_npmVersion":"10.5.0","description":"Native JS tablesorter","directories":{"test":"tests"},"_nodeVersion":"20.12.2","_hasShrinkwrap":false,"devDependencies":{"uvu":"^0.5.6","sass":"^1.77.4","jsdom":"^24.1.0","esbuild":"^0.21.5","prettier":"^3.3.1"},"_npmOperationalInternal":{"tmp":"tmp/tablesorter_1.1.2_1718051334935_0.8133193215851562","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@aodin/tablesorter","version":"1.2.0","description":"Native JS tablesorter","main":"src/tablesorter.js","exports":{".":"./src/tablesorter.js"},"type":"module","directories":{"test":"tests"},"scripts":{"test":"uvu tests","fmt":"prettier --write src/tablesorter.js tests/*","js":"esbuild src/tablesorter.js --bundle --minify --sourcemap --out-extension:.js=.min.js --outdir=dist/ --global-name=tablesorter --target=es2020","css":"sass --load-path=. --style=compressed src/styles.scss ./dist/styles.min.css","build":"npm run fmt && npm run js"},"repository":{"type":"git","url":"git+https://github.com/aodin/tablesorter.git"},"keywords":["table","sort","tablesorter","native","JS"],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"homepage":"https://github.com/aodin/tablesorter#readme","devDependencies":{"esbuild":"^0.23.0","jsdom":"^24.1.0","prettier":"^3.3.2","sass":"^1.77.6","uvu":"^0.5.6"},"_id":"@aodin/tablesorter@1.2.0","gitHead":"e4473f389461487790b5e5f527ec9b14b6ef3c40","_nodeVersion":"20.12.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-lc1jgyN6oJaBcQoenNDC7OqY2J6WsZhnXPy79AYVgYpOwx1ECa7FY1iob51ttMiLCGMNX+5Xdu45ojfjaEK1Sw==","shasum":"3de8eb708f13d46fd1c5357ded87ec87c95a85c2","tarball":"https://registry.npmjs.org/@aodin/tablesorter/-/tablesorter-1.2.0.tgz","fileCount":12,"unpackedSize":23731,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCC9wkYWD/uSlodARVlU0w6/nNeZA9jQ1P651RsJNfdwAIgZoVWj/qX+zetICGunqv7NXGJybZmK8Rpvq4B6YsFwr4="}]},"_npmUser":{"name":"aodin","email":"aaronoellis@gmail.com"},"maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tablesorter_1.2.0_1719945057021_0.4495804740655469"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-04T06:33:27.795Z","modified":"2024-07-02T18:30:57.334Z","1.0.0":"2024-03-04T06:33:27.993Z","1.1.0":"2024-03-21T22:44:22.241Z","1.0.1":"2024-06-10T19:44:13.287Z","1.1.1":"2024-06-10T19:51:28.546Z","1.1.2":"2024-06-10T20:28:55.112Z","1.2.0":"2024-07-02T18:30:57.162Z"},"maintainers":[{"name":"aodin","email":"aaronoellis@gmail.com"}],"author":{"name":"aodin","email":"aaronoellis@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/aodin/tablesorter.git"},"keywords":["table","sort","tablesorter","native","JS"],"license":"MIT","homepage":"https://github.com/aodin/tablesorter#readme","bugs":{"url":"https://github.com/aodin/tablesorter/issues"},"readme":"tablesorter\n===========\n\nNative JS tablesorter. [View a live example](https://aodin.github.io/tablesorter/).\n\n\nInstall with:\n\n```\nnpm i @aodin/tablesorter\n```\n\nA minified JS file and map is included in the `dist` directory along with optional CSS styles.\n\n\n### Usage\n\nTables must be initialized before sorting is active.\n\n```js\ntablesorter.New(document.getElementById(\"table\"))\n```\n\nOr to initialize all tables with a certain class, such as `tablesorter`:\n\n```js\ndocument.querySelectorAll(\".tablesorter\").forEach(elem => tablesorter.New(elem))\n```\n\nColumn types can be explicitly set using a `data-type` attribute on the `th` element. For example:\n\n```html\n<th data-type=\"numeric\">Data</th>\n```\n\nTo prevent a column from being sortable, add a `no-sort` class to the `th` element.\n\nSorting can also be performed with the `sortAsc` and `sortDesc` methods:\n\n```js\nconst table = tablesorter.New(elem)\ntable.sortAsc(1)\ntable.sortDesc(1)\n```\n\n### Project summary\n\n* Native JS with no dependencies\n* About 1kb minified and compressed\n* Module and ES6 export based file structure\n* Simple class-based states: `active`, `asc`, `desc`\n* Reads from either the data attribute `data-value` or HTML inner text\n* Uses local string comparison\n* Default sort for text columns is ascending, default sort for numeric is descending\n* Table fires a `sort` event when sorted, which includes col and asc details\n* Includes example Sass and CSS styles\n* MIT license\n\n\n### Development\n\nTest with:\n\n```\nnpm test\n```\n\nBuild with:\n\n```\nnpm run build\n```\n\nHappy hacking!\n\naodin, 2024\n","readmeFilename":"README.md"}