{"_id":"posthtml-match-helper","_rev":"13-54cca973cb117fcedb3846c888cfb6fb","name":"posthtml-match-helper","dist-tags":{"dev":"1.0.4-dev.0","latest":"2.0.3"},"versions":{"1.0.0":{"name":"posthtml-match-helper","version":"1.0.0","author":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"license":"ISC","_id":"posthtml-match-helper@1.0.0","maintainers":[{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"0c6b6e8ea4bbd41985dface3845f8c46f2090041","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.0.tgz","integrity":"sha512-1bsSM3skbBaGOp+35IfqUNOIEs8jQTuti/piTp88wkf0VIuKvVPJ2e0lUrEOsBW9b8eQDKYrWVhfLTTPPfSddg==","signatures":[{"sig":"MEUCIEZ4UaOojD3vpKCsBs9AD2Ib820hsLDYd54ntshPsXQKAiEA9v9/X2gsu8v/wkZKhqUbNcmlbUw6w2dJ1qj3dclHaIU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"0c6b6e8ea4bbd41985dface3845f8c46f2090041","gitHead":"b58e3e52419b16a1d303b6e6f103b2dd12dcec45","scripts":{},"_npmUser":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"2.14.2","description":"A helper to expand CSS selctors into PostHTML matcher objects","directories":{},"_nodeVersion":"4.0.0","peerDependencies":{"posthtml":"^0.5.0"}},"1.0.1":{"name":"posthtml-match-helper","version":"1.0.1","keywords":["posthtml","posthtml-helper"],"author":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"license":"ISC","_id":"posthtml-match-helper@1.0.1","maintainers":[{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"451253de8e5844a348e963ad5edd7769eb129513","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.1.tgz","integrity":"sha512-J+/IEmUmmpMR4J4qjSNU/GmyDcY/crIZF8ml57zu7Q03FZo0IMt2UiOMwnH0D1ECCYS2FfpkWj06VhQ+tGlFug==","signatures":[{"sig":"MEQCIH03VEve6rv+jSdrruWC1ciWzMHixiGihkrIU++J8sbAAiBqvcBjqwbZQEyUZL101srMtqSREHth3VCeDwaLcp+n5A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"451253de8e5844a348e963ad5edd7769eb129513","gitHead":"053d0e791e2a26aabdf1a1ed180c37758c53f3e0","scripts":{},"_npmUser":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"2.14.4","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"4.1.1","peerDependencies":{"posthtml":">=0.5.0"}},"1.0.2":{"name":"posthtml-match-helper","version":"1.0.2","keywords":["posthtml","posthtml-helper"],"author":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"license":"ISC","_id":"posthtml-match-helper@1.0.2","maintainers":[{"name":"phloe","email":"mail@phloe.industries"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"0b62a0370e76c82b8643973978bd3769be6939a5","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.2.tgz","fileCount":4,"integrity":"sha512-3bCFxo12DA3aHTbxHoFDtaWqjKMkUiGDvMLzh+F7Zt/HQaxSb2ba8UTa9QGAxHiENKK8QpbT3HcV9FkrWd8TJQ==","signatures":[{"sig":"MEUCIEN7bSvlwYZ/oZ7wsVnseFcFvGw3O8DLbYqzeBxBf9J8AiEAp1TyoP9m/hxluM3WG5lMA4I+cgmRwqMPCJsCA55Rsk8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5279,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiapvhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdYhAAkQBm5Ig+/h3uLoF/yomk+3sl9a1A1mhZZwXYvhfZSYsrRE94\r\nRM81iGcLuYFyphU/k3uf/kmBf+zWGrv3+M0O8tWyKHSGowcWZYkEd728ygJw\r\nr9zUy7vTthj8++nCbrHXUkfedpkCM7lwdVGVYccUiwGXPfqSDBOZPY4sPkgy\r\npopd/+9T7B984Ecf6wPWxF2Crx7nwjMLCWxIbKDVtZT4IQsrMnL/AwqhbwOd\r\nmNreUeiG77pp2un6GiX+m2MsD/TFM0OFh6vvnIlSBW1w6VYtnpJm4DThvECU\r\noxcnvhNPx7gi0+mgv9sxVgTK4wLIa8IQQiOE2weCwKfgqzcP5KRh3E8XssqV\r\niVLCoJGg75wvSU5vorbPLpReTH3FfHTD1TEr4h4MJAx4J99dLD5DuEjIFBUU\r\nk2a3Z7k0oG0vpJ1ncbixlVEhdTOBj3Tpil8hfZYFyVQq061okbU2gDE+DjH+\r\nZjsvuqnGZbMx87eQWLP/i2JWojgqBBfjXITQjmD793ZvaoqAtvjcIrUxTDKf\r\n+oaJxoeN2f6TclPwPjTRpwOfjojheEcaMvCHXM3E2B+uKj72+hN3Fe0GfSDW\r\nAJRgqX3jfigpOt3yr0CpI0kufS/KsN+nVIizKHR3vCB0gQ6VzswtIoBqSHp+\r\nRAJeBah2rBz2Kvu0UU5V9aQlV8FdkRaJp0o=\r\n=8PLz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"b2dbb35b0e17ac0581912b9e67bc4d4230004a5e","_npmUser":{"name":"phloe","email":"mail@phloe.industries"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"8.1.2","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"peerDependencies":{"posthtml":">=0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_1.0.2_1651153889093_0.7004028956391319","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"posthtml-match-helper","version":"1.0.3","keywords":["posthtml","posthtml-helper"],"author":{"name":"rasmusfl0e","email":"rasmusfl0e@gmail.com"},"license":"ISC","_id":"posthtml-match-helper@1.0.3","maintainers":[{"name":"phloe","email":"mail@phloe.industries"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"9308f0bdc66398735f7117441feca64f131956d5","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.3.tgz","fileCount":4,"integrity":"sha512-aeRAPvok2Fs6uzSm85665jdAk5UOd8US2QCkWtGU6yLPlKSwzWTSgZZuABc3UeNy3K1lVk/HV9bRkWJYN05Ymw==","signatures":[{"sig":"MEUCIHhMXllnPQsWxnW4oCkBI73hHRWJyHokolUlhHtc7XUGAiEArfuGMMouQR6ugTeJc5Dou/2cNd7pi/p0pbX0afNTckY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJicSxqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpscw//e8psKS4GqdKINwG/JDzjwegJxquhHt4nUU3WOcCC2V7V5DlW\r\nNqTxFpH3Bo7ca3vEP0B30TzYmC2d8dZ8WAIBkX228lxgEPMcNrzldF+vhozY\r\nrTYfCUhBHLuqLkDDcvYQJARZKAigSZ2uUsV/a9XGwoLNmiao1ZcHaXjexddR\r\nogdUjMXa9vAXTSk5v5CDSTzprKobrTBs/eMrFV/T3tum5HkV+9ncOPD2bM8f\r\n3k/nTXSWthOamiW343RjQQiXE2KnQCGT8CfPWl42i7yUsc4LG4c3ZSvBtJ1M\r\nmkuq92axp1Z5x9ROLkRzFn2NEj4VoJ/lgZ18pL4Hb9etWTP8r6BJMiVDYdY+\r\nvbRz76oPtusWygJpuCwrlMacOArJbqHfEBCjh7NOaIOA53w11v5clFmngFPw\r\nq3OJ4WIgSxDv0xeIbdjHxRGTFtaYDtQ2uVaHEGqWB8cu2B9UT1H8ynagjmmm\r\nef+vt11WO2PLQykB23+FokdaUw9kOrBHqHYfh2iBU1V3yXdP5Zd7i8Tj/GDv\r\nBkIr6ozGq43Da3jR8dE/ssaYvl3+pdDDFm38mmoxOBNdWZAffYes5GXicPRd\r\nwcN0LfhOVmH64xhejqcMvNw/KhIaL2pH4lWCqeVU+yLwcZhZk+KEZgkIDJGt\r\nLpwxDFBaAo+3xNOjxlI+alQygsODG4KUI68=\r\n=VEJ9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"f82c17c1ecc9ebf1f00c0d57a5653cf066e0a9cd","_npmUser":{"name":"phloe","email":"mail@phloe.industries"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"8.1.2","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"16.13.1","_hasShrinkwrap":false,"peerDependencies":{"posthtml":">=0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_1.0.3_1651584106506_0.29981489860345967","host":"s3://npm-registry-packages"}},"1.0.4-dev.0":{"name":"posthtml-match-helper","version":"1.0.4-dev.0","keywords":["posthtml","posthtml-helper"],"author":{"name":"phloe","email":"mail@phloe.industries"},"license":"ISC","_id":"posthtml-match-helper@1.0.4-dev.0","maintainers":[{"name":"phloe","email":"mail@phloe.co"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"9cb9075e3af5335176a6acfc170424eb4ddad06e","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.4-dev.0.tgz","fileCount":4,"integrity":"sha512-1pLsIPXtzkBh+UNXdRJJBi9exeJjK590gP8R1ZV9hg9Uo1bLu1uOG6vorcg7O5wU5GqnsE/3xT/8347sfHMVtg==","signatures":[{"sig":"MEYCIQDPgGWZXqB4Zo7AdQwtbS+Wc9UyTn6xb5xn1+FRZpNBqwIhAO1RtE/IuXtFuZ9xK5HSbOutfajiCjpD5UNi6KK6DzFF","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5850},"main":"index.js","types":"index.d.ts","gitHead":"95069991c331582676c9184f4c8d30cba49e431d","scripts":{"test":"ava"},"_npmUser":{"name":"phloe","email":"mail@phloe.co"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"10.1.0","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"readmeFilename":"readme.md","devDependencies":{"ava":"^4.2.0"},"peerDependencies":{"posthtml":">=0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_1.0.4-dev.0_1704380985100_0.06108791798444524","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"posthtml-match-helper","version":"1.0.4","keywords":["posthtml","posthtml-helper"],"author":{"name":"phloe","email":"mail@phloe.industries"},"license":"ISC","_id":"posthtml-match-helper@1.0.4","maintainers":[{"name":"phloe","email":"mail@phloe.co"}],"homepage":"https://github.com/rasmusfl0e/posthtml-match-helper#readme","bugs":{"url":"https://github.com/rasmusfl0e/posthtml-match-helper/issues"},"dist":{"shasum":"b8f384179732cb5d5e060b9dd1945a2352eb6a44","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-1.0.4.tgz","fileCount":4,"integrity":"sha512-Tj9orTIBxHdnraCxoEGjoizsFsTGvukzwcuhOjYQGmDG6gTlaRbMrGgi1J+FwKTN8hsCQENHYY0Deqs9a89BVg==","signatures":[{"sig":"MEUCIQCVYv/sHsIA3DVDkCQu9YKZXNDcHYwuqhkTqOtHBm9BfgIgZw6Q0rSW1AgNVtNwu+H6YWTWakIRawOAlKZo+oFTW7I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5844},"main":"index.js","types":"index.d.ts","gitHead":"8385e45e1cd83f6f406e11a3edaff3f41c2549ce","scripts":{"test":"ava"},"_npmUser":{"name":"phloe","email":"mail@phloe.co"},"repository":{"url":"git+https://github.com/rasmusfl0e/posthtml-match-helper.git","type":"git"},"_npmVersion":"10.1.0","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"20.9.0","_hasShrinkwrap":false,"devDependencies":{"ava":"^4.2.0"},"peerDependencies":{"posthtml":">=0.5.0"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_1.0.4_1704727809114_0.23384022408703298","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"posthtml-match-helper","version":"2.0.0","keywords":["posthtml","posthtml-helper","posthtml-matcher"],"author":{"url":"https://github.com/phloe","name":"Rasmus Fløe"},"license":"MIT","_id":"posthtml-match-helper@2.0.0","maintainers":[{"name":"cossssmin","email":"hellocosmin@gmail.com"},{"name":"phloe","email":"mail@phloe.co"}],"homepage":"https://github.com/posthtml/posthtml-match-helper#readme","bugs":{"url":"https://github.com/posthtml/posthtml-match-helper/issues"},"dist":{"shasum":"c3a473f92690db123052900c90e1b99afe326dfd","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-2.0.0.tgz","fileCount":5,"integrity":"sha512-YV+rLIm/GIIV1jmJoYdv6mAvsvtJ82ohj2afoho4abPj13Wa6EoYggUYhcTRatzdmtuwOCfOXeMgBRWV1V3t5Q==","signatures":[{"sig":"MEYCIQChDF0e/Qn83/xNjAQ+vUpzNtMEfhyzuiPpBNnanD5bqwIhAMH0aOgxJDAUstmwBGBOYbKqPLoQOHmb4FwPNZQQogkw","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8501},"type":"module","types":"./lib/index.d.ts","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"4b684d8a825da12861485d51b298a7acdbd6c395","scripts":{"dev":"vitest","lint":"eslint lib/*.{js,ts}","test":"vitest run --coverage","pretest":"npm run lint","release":"np"},"_npmUser":{"name":"cossssmin","email":"hellocosmin@gmail.com"},"repository":{"url":"git+https://github.com/posthtml/posthtml-match-helper.git","type":"git"},"_npmVersion":"10.2.4","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"np":"^10.0.0","eslint":"^8.57.0","vitest":"^1.3.1","@vitest/coverage-v8":"^1.3.1","@typescript-eslint/eslint-plugin":"^7.1.0"},"peerDependencies":{"posthtml":"^0.16.6"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_2.0.0_1709146953421_0.16163818574189914","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"posthtml-match-helper","version":"2.0.1","keywords":["posthtml","posthtml-helper","posthtml-matcher"],"author":{"url":"https://github.com/phloe","name":"Rasmus Fløe"},"license":"MIT","_id":"posthtml-match-helper@2.0.1","maintainers":[{"name":"cossssmin","email":"hellocosmin@gmail.com"},{"name":"phloe","email":"mail@phloe.co"}],"homepage":"https://github.com/posthtml/posthtml-match-helper#readme","bugs":{"url":"https://github.com/posthtml/posthtml-match-helper/issues"},"dist":{"shasum":"2249f4b52740d5a147279d278da736b512c8cc6a","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-2.0.1.tgz","fileCount":5,"integrity":"sha512-JzhTog+nCbrv7bAjfvgl+EeVCMAOYeKxsd1vIh5rYCn7s/JCrXdmQrWTKI10wR8tWf+oQm4A2DM8X1GB2R0cPQ==","signatures":[{"sig":"MEQCICMB6kt633X54dnmFH2N7g1pLeaAsHteHZaflSoLkAA5AiAXtqrkFswolvJS/ombvYXy/lWT8iteUx5yO4ydgSpFag==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8501},"type":"module","types":"./lib/index.d.ts","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"6faab2ee56ea593d0a7f0599555c05ce4dac8cdc","scripts":{"dev":"vitest","lint":"eslint lib/*.{js,ts}","test":"vitest run --coverage","pretest":"npm run lint","release":"np"},"_npmUser":{"name":"cossssmin","email":"hellocosmin@gmail.com"},"repository":{"url":"git+https://github.com/posthtml/posthtml-match-helper.git","type":"git"},"_npmVersion":"10.2.4","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"np":"^10.0.0","eslint":"^8.57.0","vitest":"^1.3.1","@vitest/coverage-v8":"^1.3.1","@typescript-eslint/eslint-plugin":"^7.1.0"},"peerDependencies":{"posthtml":"^0.16.6"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_2.0.1_1718786000278_0.346874457894645","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"posthtml-match-helper","version":"2.0.2","keywords":["posthtml","posthtml-helper","posthtml-matcher"],"author":{"url":"https://github.com/phloe","name":"Rasmus Fløe"},"license":"MIT","_id":"posthtml-match-helper@2.0.2","maintainers":[{"name":"cossssmin","email":"hellocosmin@gmail.com"},{"name":"phloe","email":"mail@phloe.co"}],"homepage":"https://github.com/posthtml/posthtml-match-helper#readme","bugs":{"url":"https://github.com/posthtml/posthtml-match-helper/issues"},"dist":{"shasum":"fb0043fbd85a053da215a08e66264bbc9c80fde1","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-2.0.2.tgz","fileCount":5,"integrity":"sha512-ehnazjlSwcGa3P2LlFYmTmcnaembTSt9dLWIRRDVHDPidf6InWAr9leKeeLvUXgnU32g6BrFS64Je+c2Ld+l9g==","signatures":[{"sig":"MEYCIQDd7ljbD9wRif5So7U5iaNGe6jNc/0fbmqlrjLaSmn47AIhAOaW3EOVG5ISbeU2BLxDgzo5m3zXkr8oaAFl9S9NQPCO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8451},"type":"module","types":"./lib/index.d.ts","engines":{"node":">=18"},"exports":"./lib/index.js","gitHead":"81561b0040688d05232a3d67c3dbb7ac3b4aabf3","scripts":{"dev":"vitest","lint":"biome lint ./lib","test":"vitest run --coverage","pretest":"npm run lint","release":"npx np"},"_npmUser":{"name":"cossssmin","email":"hellocosmin@gmail.com"},"repository":{"url":"git+https://github.com/posthtml/posthtml-match-helper.git","type":"git"},"_npmVersion":"10.2.4","description":"A helper to expand CSS selectors into PostHTML matcher objects","directories":{},"_nodeVersion":"20.10.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^1.3.1","@biomejs/biome":"1.8.3","@vitest/coverage-v8":"^1.3.1"},"peerDependencies":{"posthtml":"^0.16.6"},"_npmOperationalInternal":{"tmp":"tmp/posthtml-match-helper_2.0.2_1720013130947_0.46252860890870395","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"posthtml-match-helper","description":"A helper to expand CSS selectors into PostHTML matcher objects","version":"2.0.3","license":"MIT","author":{"name":"Rasmus Fløe","url":"https://github.com/phloe"},"repository":{"type":"git","url":"git+https://github.com/posthtml/posthtml-match-helper.git"},"bugs":{"url":"https://github.com/posthtml/posthtml-match-helper/issues"},"type":"module","exports":"./lib/index.js","types":"./lib/index.d.ts","engines":{"node":">=18"},"scripts":{"dev":"vitest","test":"vitest run --coverage","lint":"biome lint ./lib","pretest":"npm run lint","release":"npx np"},"keywords":["posthtml","posthtml-helper","posthtml-matcher"],"peerDependencies":{"posthtml":"^0.16.6"},"devDependencies":{"@biomejs/biome":"1.9.4","@vitest/coverage-v8":"^2.0.0","vitest":"^2.0.0"},"_id":"posthtml-match-helper@2.0.3","gitHead":"e6a436bdda2087dbbbb178b8c87ff275792486e7","homepage":"https://github.com/posthtml/posthtml-match-helper#readme","_nodeVersion":"20.10.0","_npmVersion":"10.2.4","dist":{"integrity":"sha512-p9oJgTdMF2dyd7WE54QI1LvpBIkNkbSiiECKezNnDVYhGhD1AaOnAkw0Uh0y5TW+OHO8iBdSqnd8Wkpb6iUqmw==","shasum":"04afcadd3a3306bf0445b6d6ead79d4e4083c6d6","tarball":"https://registry.npmjs.org/posthtml-match-helper/-/posthtml-match-helper-2.0.3.tgz","fileCount":5,"unpackedSize":8451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBmL9HihwmPiSG+rOGqHxVne2g0koBA99E3BPOr6x6mzAiEA9LI5MLJTjWREn87zULuJxIXWXTOjRkIlXfCbK9rv6/U="}]},"_npmUser":{"name":"cossssmin","email":"hellocosmin@gmail.com"},"directories":{},"maintainers":[{"name":"cossssmin","email":"hellocosmin@gmail.com"},{"name":"phloe","email":"mail@phloe.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/posthtml-match-helper_2.0.3_1734364639399_0.5922582453366334"},"_hasShrinkwrap":false}},"time":{"created":"2015-10-12T11:02:19.661Z","modified":"2024-12-16T15:57:19.764Z","1.0.0":"2015-10-12T11:02:19.661Z","1.0.1":"2015-10-17T23:42:21.547Z","1.0.2":"2022-04-28T13:51:29.256Z","1.0.3":"2022-05-03T13:21:46.631Z","1.0.4-dev.0":"2024-01-04T15:09:45.253Z","1.0.4":"2024-01-08T15:30:09.281Z","2.0.0":"2024-02-28T19:02:33.557Z","2.0.1":"2024-06-19T08:33:20.419Z","2.0.2":"2024-07-03T13:25:31.077Z","2.0.3":"2024-12-16T15:57:19.593Z"},"bugs":{"url":"https://github.com/posthtml/posthtml-match-helper/issues"},"author":{"name":"Rasmus Fløe","url":"https://github.com/phloe"},"license":"MIT","homepage":"https://github.com/posthtml/posthtml-match-helper#readme","keywords":["posthtml","posthtml-helper","posthtml-matcher"],"repository":{"type":"git","url":"git+https://github.com/posthtml/posthtml-match-helper.git"},"description":"A helper to expand CSS selectors into PostHTML matcher objects","maintainers":[{"name":"cossssmin","email":"hellocosmin@gmail.com"},{"name":"phloe","email":"mail@phloe.co"}],"readme":"<div align=\"center\">\n  <img width=\"150\" height=\"150\" title=\"PostHTML\" src=\"https://posthtml.github.io/posthtml/logo.svg\">\n  <h1>posthtml-match-helper</h1>\n  \n  Expand CSS selectors into PostHTML matcher objects\n\n  [![Version][npm-version-shield]][npm]\n  [![Build][github-ci-shield]][github-ci]\n  [![License][license-shield]][license]\n  [![Downloads][npm-stats-shield]][npm-stats]\n</div>\n\n## Introduction\n\nThis PostHTML plugin can turn simple CSS selectors into [matcher objects](https://github.com/posthtml/posthtml/blob/master/README.md#match).\n\nSupported features:\n\n* Tags: `\"div\"` returns `{tag: \"div\"}`.\n* Ids: `\"#bar\"` returns `{attrs: {id: \"bar\"}}`.\n* Classes: `.foo` returns `{attrs: { class: /(?:^|\\s)foo(?:\\\\s|$)/ }}`. Any number of classnames supported.\n* Attribute selectors: any number of standard [attribute selectors](https://developer.mozilla.org/en/docs/Web/CSS/Attribute_selectors) can be used<sup><a href=\"#attribute_selectors_footnote\">1</a></sup> including the following non-standard:\n   * `[attr!=value]`: matches attributes with values that do not contain `value`.\n* Multiple node selectors: `\"div, span\"` returns `[{tag: \"div\"}, {tag: \"span\"}]`.\n\n**<sup><a name=\"attribute_selectors_footnote\">1</a></sup>** Multiple attribute selectors for the same attribute are not supported (this includes mixing classnames and attribute selectors matching `class`).\n\nThe basic template for selectors (and order of features) looks like this:\n\n```js\n\"tag#id.class.name[attr*=value][otherattr^='start']\"\n```\n\n## Basic usage\n\n```js\nimport matchHelper from \"posthtml-match-helper\";\n\ntree.match(matchHelper(\"div.class\"), function (node) {\n  // do stuff with matched node...\n});\n```\n\n## Advanced usage\n\n```js\nimport matchHelper from \"posthtml-match-helper\";\n\ntree.match(matchHelper(\"input.my-control[type!='radio'][checked], input[value^='foo'][checked]\"), function (node) {\n  // do stuff with node that matched either of the selectors...\n});\n```\n\n## Classnames with escaped characters\n\nIf you need to match nodes with classnames that use escaped characters, like those in Tailwind CSS utilities with arbitrary values, use the following syntax:\n\n```js\nimport matchHelper from \"posthtml-match-helper\";\n\ntree.match(matchHelper(\"input.\\\\[display:none\\\\]\"), function (node) {\n  // do stuff with node that matched either of the selectors...\n});\n```\n\n\n## The helper function\n\n#### Arguments\n\n* `matcher` (string) - A CSS selector that describes the node you want to match in PostHTML.\n\n#### Returns\n\nA matcher object or an array of matcher objects.\n\n[npm]: https://www.npmjs.com/package/posthtml-match-helper\n[npm-version-shield]: https://img.shields.io/npm/v/posthtml-match-helper.svg\n[npm-stats]: http://npm-stat.com/charts.html?package=posthtml-match-helper\n[npm-stats-shield]: https://img.shields.io/npm/dt/posthtml-match-helper.svg\n[github-ci]: https://github.com/posthtml/posthtml-match-helper/actions/workflows/nodejs.yml\n[github-ci-shield]: https://github.com/posthtml/posthtml-match-helper/actions/workflows/nodejs.yml/badge.svg\n[license]: ./LICENSE\n[license-shield]: https://img.shields.io/npm/l/posthtml-match-helper.svg\n","readmeFilename":"README.md"}