{"_id":"@_apparatus_/css-tools","_rev":"5-865e79e21af94f16fd73260cc0adc5f5","name":"@_apparatus_/css-tools","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"@_apparatus_/css-tools","version":"1.0.0","keywords":["css","class","classes","classname","classnames","clsx","util"],"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"license":"MIT","_id":"@_apparatus_/css-tools@1.0.0","maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"dist":{"shasum":"a983c23546b478e422971d00e93bf88564ca6453","tarball":"https://registry.npmjs.org/@_apparatus_/css-tools/-/css-tools-1.0.0.tgz","fileCount":8,"integrity":"sha512-QXv2UgLxF2NFwmyTvlbbApGeqGuc2CAx9Z/vEa4C5pNVHv3/xzQ9srTg8LCRyCWLwayDOhvy5eXMQC3F1zUn3g==","signatures":[{"sig":"MEUCIQDP3Dd3wVdAR/9ETYKa0L7pVuq2VRSO2J6o2bos4vPeSwIgFKHqUZUWR1v6Xw9qES8kWsR3K35X5MJbpPalpNjcY38=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5156},"type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"f6e797345b5e5a1828d28b8bb70de291e7905f31","scripts":{"test":"node --test ./**/*.test.*","build":"vite build && tsc"},"_npmUser":{"name":"pedro00dk","email":"pedro00dk@gmail.com"},"repository":{"url":"git+https://github.com/pedro00dk/apparatus-css-tools.git","type":"git"},"_npmVersion":"11.4.2","description":"A small set of tools to deal with different aspects of CSS.","directories":{},"_nodeVersion":"24.3.0","_hasShrinkwrap":false,"devDependencies":{"vite":"7.0.5","typescript":"5.8.3","@types/node":"24.0.15"},"_npmOperationalInternal":{"tmp":"tmp/css-tools_1.0.0_1753454574154_0.4183848761751465","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@_apparatus_/css-tools","version":"1.0.1","keywords":["css","class","classes","classname","classnames","clsx","util"],"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"license":"MIT","_id":"@_apparatus_/css-tools@1.0.1","maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"dist":{"shasum":"a1fb0ca30cb3a12d596e72f8e093558dc2a398c1","tarball":"https://registry.npmjs.org/@_apparatus_/css-tools/-/css-tools-1.0.1.tgz","fileCount":11,"integrity":"sha512-O7/JLyOIPhahshaKpy6gM2S2lHo4glE5h00aeytieKv4QKHm9dRF0PFxHm8+FVnWV/HLwjXm6a9bxgEgWQl+nQ==","signatures":[{"sig":"MEUCIQCumXKJ63ammLyCTD14tsrz5pLEgmQHMEV27I1ty0yLBAIgTQiuUW+y6meTr40caG+LAQcL7cYu9fUAqJ2k0Fn8MR8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@_apparatus_%2fcss-tools@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5821},"type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"315e10ab14d2eb6f667238493637ca8b1fe89ec6","scripts":{"test":"node --test ./**/*.test.*","build":"vite build && tsc"},"_npmUser":{"name":"pedro00dk","email":"pedro00dk@gmail.com"},"repository":{"url":"git+https://github.com/pedro00dk/apparatus-css-tools.git","type":"git"},"_npmVersion":"11.4.2","description":"A small set of tools to deal with different aspects of CSS.","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"vite":"7.0.6","typescript":"5.8.3","@types/node":"24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/css-tools_1.0.1_1753455093913_0.9069948117362419","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@_apparatus_/css-tools","version":"1.0.2","keywords":["css","class","classes","classname","classnames","clsx","util"],"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"license":"MIT","_id":"@_apparatus_/css-tools@1.0.2","maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"dist":{"shasum":"6c9f7c044c80c05793a10c260687c6dd22a3faa4","tarball":"https://registry.npmjs.org/@_apparatus_/css-tools/-/css-tools-1.0.2.tgz","fileCount":11,"integrity":"sha512-FxRS4zzf2CSp213wiLzuDc8vS/zml7PR2usj7yosiI1JX9te74I0g3JqDe28yQedc9iKpYW3gxmfHl44DDvdBQ==","signatures":[{"sig":"MEQCIBpPv6MowqBwtR0uLpMO3m8UkZLNbmOxgpXzA1QhbyEBAiB51F55WVKtUuNVrsig/T/mbtAkoE6Bxk207YkXy1iSgQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@_apparatus_%2fcss-tools@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5901},"type":"module","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"bdd686ba584501e3b03f5cd86ab6ccedd4b629fa","scripts":{"test":"node --test ./**/*.test.*","build":"vite build && tsc"},"_npmUser":{"name":"pedro00dk","email":"pedro00dk@gmail.com"},"repository":{"url":"git+https://github.com/pedro00dk/apparatus-css-tools.git","type":"git"},"_npmVersion":"11.4.2","description":"A small set of tools to deal with different aspects of CSS.","directories":{},"_nodeVersion":"24.4.1","_hasShrinkwrap":false,"devDependencies":{"vite":"7.0.6","typescript":"5.8.3","@types/node":"24.1.0"},"_npmOperationalInternal":{"tmp":"tmp/css-tools_1.0.2_1753537443800_0.2675388564033234","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@_apparatus_/css-tools","version":"2.0.0","keywords":["css","class","classes","classname","classnames","clsx","util"],"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"license":"MIT","_id":"@_apparatus_/css-tools@2.0.0","maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"dist":{"shasum":"72fa08aabd293a29f87fa00bd1de5a25863ddaf9","tarball":"https://registry.npmjs.org/@_apparatus_/css-tools/-/css-tools-2.0.0.tgz","fileCount":11,"integrity":"sha512-KSaR+Y+mwieDt5RnqpBeaCNaIIymtE20ob+aKFTzLPx0HCTD+C0rhaiFXOkrH4zYzA8ldAFx4cQWcGer5uNVPQ==","signatures":[{"sig":"MEUCIEJZWryGVGq6zCX2Ivt6sKdXJ9H4lpeoSQf8BevDcS/1AiEAhWkwFrIGqp6btUG1RqxOcmHfnMy2rH0aofmr0TF3IJs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@_apparatus_%2fcss-tools@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6515},"type":"module","_from":"file:_apparatus_-css-tools-2.0.0.tgz","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"test":"node --test ./**/*.test.*","build":"vite build && tsc"},"_npmUser":{"name":"pedro00dk","email":"pedro00dk@gmail.com"},"_resolved":"/tmp/843967f1cb38923afaa6527fd0d91104/_apparatus_-css-tools-2.0.0.tgz","_integrity":"sha512-KSaR+Y+mwieDt5RnqpBeaCNaIIymtE20ob+aKFTzLPx0HCTD+C0rhaiFXOkrH4zYzA8ldAFx4cQWcGer5uNVPQ==","repository":{"url":"git+https://github.com/pedro00dk/apparatus-css-tools.git","type":"git"},"_npmVersion":"11.6.1","description":"A small set of tools to deal with different aspects of CSS.","directories":{},"_nodeVersion":"24.11.0","_hasShrinkwrap":false,"devDependencies":{"vite":"7.2.2","typescript":"5.9.3","@types/node":"24.10.0"},"_npmOperationalInternal":{"tmp":"tmp/css-tools_2.0.0_1762680430805_0.5905142568948776","host":"s3://npm-registry-packages-npm-production"}},"3.0.0":{"name":"@_apparatus_/css-tools","description":"A small set of tools to deal with different aspects of CSS.","version":"3.0.0","type":"module","license":"MIT","repository":{"type":"git","url":"git+https://github.com/pedro00dk/apparatus-css-tools.git"},"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"keywords":["css","class","classes","classname","classnames","clsx","util"],"types":"dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"devDependencies":{"@types/bun":"1.3.14","typescript":"7.0.2","vite":"8.1.4"},"scripts":{"build":"tsc && bun build --outdir ./dist/ ./src/index.ts","test":"bun test"},"gitHead":"4ed2dc32e2dbaf0eddc2d4fb1d8459d1ff395dba","_id":"@_apparatus_/css-tools@3.0.0","bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","_nodeVersion":"22.23.1","_npmVersion":"12.0.1","dist":{"integrity":"sha512-5urckI5fFFZ2qOoO6fmjeCbeGBYAcRT8pY3XutRqdp+JUkjB4/CzzjqOscxpWb6a1u/jlWLb3eM3XGqW2mg0cA==","shasum":"a5897d7ae3a3efa458720501d1d5629c5c3b6645","tarball":"https://registry.npmjs.org/@_apparatus_/css-tools/-/css-tools-3.0.0.tgz","fileCount":12,"unpackedSize":6449,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@_apparatus_%2fcss-tools@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG331ESOxEn4TIB7sInoXRxvq0kGjuoOlEypSXhwyEyOAiEApEyLiO/WnUdMF5Yc2ZTpWj9jrhT019418zvtQLLoAJg="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:ee7f9ec1-1885-4f1d-a979-9b4837416c28"}},"directories":{},"maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/css-tools_3.0.0_1784164514508_0.06981983558079818"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-25T14:42:54.063Z","modified":"2026-07-16T01:15:15.047Z","1.0.0":"2025-07-25T14:42:54.359Z","1.0.1":"2025-07-25T14:51:34.100Z","1.0.2":"2025-07-26T13:44:04.018Z","2.0.0":"2025-11-09T09:27:11.011Z","3.0.0":"2026-07-16T01:15:14.703Z"},"bugs":{"url":"https://github.com/pedro00dk/apparatus-css-tools/issues"},"author":{"name":"Pedro Henrique","email":"pedro00dk@gmail.com"},"license":"MIT","homepage":"https://github.com/pedro00dk/apparatus-css-tools#readme","keywords":["css","class","classes","classname","classnames","clsx","util"],"repository":{"type":"git","url":"git+https://github.com/pedro00dk/apparatus-css-tools.git"},"description":"A small set of tools to deal with different aspects of CSS.","maintainers":[{"name":"pedro00dk","email":"pedro00dk@gmail.com"}],"readme":"# @\\_apparatus\\_/css-tools\n\n[![bundle size](https://deno.bundlejs.com/?q=@_apparatus_/css-tools&badge=detailed)](https://bundlejs.com/?q=@_apparatus_/css-tools)\n\nA small set of tools to deal with different aspects of CSS.\n\n## Installation\n\n```sh\nnpm install @_apparatus_/css-tools\n```\n\n## Features\n\n-   🎨 **Combine classes** - Flexible way to join multiple class names\n-   📦 **Tiny bundle** - Minimal footprint with no dependencies\n\n## Examples\n\n```ts\nimport { cx } from '@_apparatus_/css-tools'\n\n// Simple class joining\ncx('foo', 'bar') // => 'foo bar'\n\n// Filter non-string values\ncx('foo', undefined, null, false, 'bar') // => 'foo bar'\ncx('foo', true, 'bar') // => 'foo bar'\ncx('foo', 0, 1, 2n, 'bar') // => 'foo bar'\n\n// Using logical operators\nconst isActive = true\nconst isDisabled = false\nconst hasError = true\ncx('button', isActive && 'active', isDisabled && 'disabled') // => 'button active'\ncx('input', hasError ? 'error' : 'no-error') // => 'input error'\n\n// Array flattening\ncx(['foo', 'bar', 'baz']) // => 'foo bar baz'\ncx('foo', ['bar', ['baz', 'qux']]) // => 'foo bar baz qux'\ncx(...['foo', false, 'bar', undefined, 'baz']) // => 'foo bar baz'\n\n// Object handling\ncx({ foo: true, bar: false, baz: true }) // => 'foo baz'\ncx({ foo: 1, bar: 0, baz: 'yes' }) // => 'foo baz'\n\n// Combining objects with strings\ncx('base', { active: true, disabled: false }) // => 'base active'\n```\n","readmeFilename":"README.md"}