{"versions":{"0.0.1":{"name":"declass","version":"0.0.1","description":"> Statically analyze HTML to detect potential class groupings","repository":{"type":"git","url":"git+https://github.com/nuxt-contrib/declass.git"},"license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"siroc build","lint":"eslint --ext .ts .","release":"yarn test && yarn build && standard-version && git push --follow-tags && npm publish","test":"yarn lint && jest"},"dependencies":{"cheerio":"^1.0.0-rc.3"},"devDependencies":{"@nuxtjs/eslint-config-typescript":"latest","@types/cheerio":"^0.22.22","@types/flat":"latest","@types/jest":"latest","@types/node":"latest","eslint":"latest","jest":"latest","siroc":"latest","standard-version":"latest","ts-jest":"latest","typescript":"latest"},"gitHead":"72ad6741b08863abef58ba478a541415a894242c","bugs":{"url":"https://github.com/nuxt-contrib/declass/issues"},"homepage":"https://github.com/nuxt-contrib/declass#readme","_id":"declass@0.0.1","_nodeVersion":"14.15.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-V1tO9kGH+GLfkeiYCF016HSBcTP5mI+eMusSFgxZv0BzKvUQgI/Xn6FdoFuMwQHEqxKXhaW02s8oZqXPclKPUg==","shasum":"2c3cbda5e4ac66bc445b8bd61aa5449bf6ed39d1","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/declass/-/declass-0.0.1.tgz","fileCount":6,"unpackedSize":6526,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfyhkBCRA9TVsSAnZWagAAoG0P/RaYlKn5M3BQJNlKqJoh\nOU2IiDEueNJWM+jUiDom5leKa8dr4teL0x46m38Tr+Vr369Ln9SYCaFNJRLi\nN/nj8RPYlbSTEfVT0NYn8TVGNR5qTNIX03LKbg4rqZXXcmPWxxQwBTOf+tHz\nauVHvpawwwvs4fPwHx6iIHJdg915pPtkFzjihvV6xjCFOZhq7yWGiiWm68f7\noAY/D4DzPjpYZspvQGvIN6tphWaYoX5UXlqgXIX3UdsmRD8YBsbg5WFAxESg\nZwCRek2q7suHYY9dtGTHzLSUcyiGqUBbBN+Xf7kWCOvrfO6zkblcSOoPr/cY\nWd6+/7E8Y6hX99XpnOh5dZKn0VCKrbHIFV+0XDvEQBxt3yodKl3pje9mXfHA\np8iwRoC3PA9BDzh1eNOKUJKj+nhUDktL2J33B5IsoJmiSmS9Tg5aY+Wbvnlx\nepIJEvhwFF+orbCvXMh3VMAxNrQC/llyZyisCH1a4Ywgsk3izMWCO62f5hQD\nGoHQGWQc0CtLjsC64jxC5Y+UBkmB3hp1zaYEIHm5tizq87nz5c2dOWPHw4te\nmI3qNf4w7NhQpdnAlLhRZ+vAMBRUMzaUDgLFYaRIoB4ixJKwygJDfgNZYV1o\nYupvZZrwd3F8y5gCoAgfW7BzCcUbK0xIFLH18hiDcbWQvxctj+9lA3IjiG6Q\noyn9\r\n=ALTh\r\n-----END PGP SIGNATURE-----\r\n","size":3123},"_npmUser":{"name":"anonymous","email":"pyapar@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"pyapar@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/declass_0.0.1_1607080192945_0.848789134310109"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-20T20:51:25.808Z","contributors":[]}},"dist-tags":{"latest":"0.0.1"},"name":"declass","time":{"created":"2022-01-27T22:15:12.206Z","modified":"2022-01-27T22:15:12.206Z","0.0.1":"2020-12-04T11:09:53.060Z"},"readme":"# declass\n\n> Statically analyze HTML to detect potential class groupings\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![Github Actions][github-actions-src]][github-actions-href]\n[![Codecov][codecov-src]][codecov-href]\n\n## Install\n\nInstall using npm or yarn:\n\n```bash\nnpm i declass\n# or\nyarn add declass\n```\n\nImport into your Node.js project:\n\n```js\n// CommonJS\nconst { declass } = require('declass')\n\n// ESM\nimport { declass } from 'declass'\n```\n\n## Usage\n\n\n```ts\ndeclass(html)\n```\n\n```js\n[\n  \"class\": \"duration-200 group-hover:opacity-100 transition-opacity\",\n  \"uses\": [\n    \"<div class=\"transition-opacity duration-200 ease-in-out opacity-0 group-hover:opacity-100 absolute top-4 right-6 cursor-pointer\" data-v-cc3a34da=\"\">\",\n    \"<img src=\\\\\"https://avatars3.githubusercontent.com/u/2781561?v=4&s=24\\\\\" alt=\\\\\"Troy Morehouse\\\\\" width=\\\\\"24\\\\\" height=\\\\\"24\\\\\" class=\\\\\"relative inline-block rounded-full text-white shadow-solid transition-opacity duration-200 opacity-75 group-hover:opacity-100\\\\\" data-v-cc3a34da=\\\\\"\\\\\">\",\n    ...\n  ],\n  ...\n]\n```\n(see [test snapshot](./test/__snapshots__/index.test.ts.snap))\n\n\n## License\n\nMIT. Made with 💖\n\n<!-- Badges -->\n[npm-version-src]: https://img.shields.io/npm/v/declass?style=flat-square\n[npm-version-href]: https://npmjs.com/package/declass\n\n[npm-downloads-src]: https://img.shields.io/npm/dm/declass?style=flat-square\n[npm-downloads-href]: https://npmjs.com/package/declass\n\n[github-actions-src]: https://img.shields.io/github/workflow/status/nuxt-contrib/declass/ci/master?style=flat-square\n[github-actions-href]: https://github.com/nuxt-contrib/declass/actions?query=workflow%3Aci\n\n[codecov-src]: https://img.shields.io/codecov/c/gh/nuxt-contrib/declass/master?style=flat-square\n[codecov-href]: https://codecov.io/gh/nuxt-contrib/declass","users":{}}