{"_id":"@antharuu/mew","_rev":"3-aa100576f03d61d2ffa43e9e2a6052df","name":"@antharuu/mew","dist-tags":{"latest":"1.0.3"},"versions":{"0.1.0":{"name":"@antharuu/mew","version":"0.1.0","keywords":["css","preprocessor","bem","web","rust"],"author":{"name":"Antharuu"},"license":"MIT","_id":"@antharuu/mew@0.1.0","maintainers":[{"name":"antharuu","email":"antho.eclips@gmail.com"}],"homepage":"https://github.com/antharuu/Mew#readme","bugs":{"url":"https://github.com/antharuu/Mew/issues"},"os":["darwin","linux","win32"],"bin":{"mew":"cli.js"},"cpu":["x64","arm64"],"dist":{"shasum":"ed4d74ff5f1cfd0b0d215648a5564a5aebc7f781","tarball":"https://registry.npmjs.org/@antharuu/mew/-/mew-0.1.0.tgz","fileCount":5,"integrity":"sha512-kEm49z3yTzo6UpACeHfl/V9xObRTnNZ8DcUT4tlARrR9A+Zd31orDV1PApilH9TvkSjiA/JpJuB6hsF6rtTeQQ==","signatures":[{"sig":"MEUCIG3vLd8UZRxf+KMT1DTjNfh4QIiZjF0vc9lQSkX+FvcfAiEAr3bdN2ux0kpa/3VO07oX9r6pv4FEnRLfGHjVUE6LwfA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7270},"main":"index.js","gitHead":"d6e46b0f25a83b8f21a266ed7980537985823475","scripts":{"build":"cargo build --release","postinstall":"node install.js"},"_npmUser":{"name":"antharuu","email":"antho.eclips@gmail.com"},"repository":{"url":"git+https://github.com/antharuu/Mew.git","type":"git"},"_npmVersion":"10.9.0","description":"A lightweight CSS preprocessor with elegant BEM support","directories":{},"_nodeVersion":"22.10.0","dependencies":{"binary-install":"^1.1.0","@mapbox/node-pre-gyp":"^1.0.11"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mew_0.1.0_1730838776005_0.8095504855392262","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@antharuu/mew","version":"1.0.1","keywords":["css","preprocessor","bem","web","rust"],"author":{"name":"Antharuu"},"license":"MIT","_id":"@antharuu/mew@1.0.1","maintainers":[{"name":"antharuu","email":"antho.eclips@gmail.com"}],"homepage":"https://github.com/antharuu/Mew#readme","bugs":{"url":"https://github.com/antharuu/Mew/issues"},"os":["darwin","linux","win32"],"bin":{"mew":"cli.js"},"cpu":["x64","arm64"],"dist":{"shasum":"cbcf7323df3c1671eebf1c6f54d7eb437ad12193","tarball":"https://registry.npmjs.org/@antharuu/mew/-/mew-1.0.1.tgz","fileCount":5,"integrity":"sha512-vuPZUoRwkf12aB8XmICDhCpda6So3ydA3zTesUXNdv1lKU38j863mVt3daTajZ6fTCjXgQEi3g8iC1ICRZtukg==","signatures":[{"sig":"MEQCIBdqcuXepRufbVZOHvbT6auGBMN6wo5nkit4JQBm7dvNAiA7Wqy1rGm9x1LghXqga+NELlUDrBhVSQIOlH99yYa2dw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6931},"main":"index.js","gitHead":"8f925c489080eb26bc1645690b64aedabbec1826","scripts":{"build":"cargo build --release","postinstall":"node install.js"},"_npmUser":{"name":"antharuu","email":"antho.eclips@gmail.com"},"repository":{"url":"git+https://github.com/antharuu/Mew.git","type":"git"},"_npmVersion":"10.7.0","description":"A lightweight CSS preprocessor with elegant BEM support","directories":{},"_nodeVersion":"18.20.4","dependencies":{"binary-install":"^1.1.0","@mapbox/node-pre-gyp":"^1.0.11"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mew_1.0.1_1730839319956_0.09873952516790707","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@antharuu/mew","version":"1.0.2","keywords":["css","preprocessor","bem","web","rust"],"author":{"name":"Antharuu"},"license":"MIT","_id":"@antharuu/mew@1.0.2","maintainers":[{"name":"antharuu","email":"antho.eclips@gmail.com"}],"homepage":"https://github.com/antharuu/Mew#readme","bugs":{"url":"https://github.com/antharuu/Mew/issues"},"bin":{"mew":"cli.js"},"dist":{"shasum":"1224d8f49fa5aa631878991ee4ed07ad65ac4793","tarball":"https://registry.npmjs.org/@antharuu/mew/-/mew-1.0.2.tgz","fileCount":5,"integrity":"sha512-SUh1j/B3j9Z+lpeb5OJbCC8BlnHeHcmrOXsJM7PSIMwjDa5hykCwj+k9OOIFb0xEvsR7BMaZ8OSCUslxDSmWmQ==","signatures":[{"sig":"MEYCIQCjIEAjyJGA70J8lS55kXnoW8Scm1HwE5xRwERo3F+IlQIhAIptkntXF2O61jGEYjBcioZKZXeiaHo8dn3lH7W/ABTO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11943},"main":"index.js","gitHead":"b8bbd0c04b76ea9d9fdc5acde9e94cd603ac2fa5","scripts":{"pack-local":"npm pack","postinstall":"node install.js"},"_npmUser":{"name":"antharuu","email":"antho.eclips@gmail.com"},"repository":{"url":"git+https://github.com/antharuu/Mew.git","type":"git"},"_npmVersion":"10.7.0","description":"A lightweight CSS preprocessor with elegant BEM support","directories":{},"_nodeVersion":"18.20.4","dependencies":{"tar":"^6.2.0","binary-install":"^1.1.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/mew_1.0.2_1730840888116_0.2977717269817499","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@antharuu/mew","version":"1.0.3","description":"A lightweight CSS preprocessor with elegant BEM support","main":"index.js","bin":{"mew":"cli.js"},"scripts":{"postinstall":"node install.js","pack-local":"npm pack"},"repository":{"type":"git","url":"git+https://github.com/antharuu/Mew.git"},"keywords":["css","preprocessor","bem","web","rust"],"author":{"name":"Antharuu"},"license":"MIT","bugs":{"url":"https://github.com/antharuu/Mew/issues"},"homepage":"https://github.com/antharuu/Mew#readme","dependencies":{"binary-install":"^1.1.0","tar":"^6.2.0"},"_id":"@antharuu/mew@1.0.3","gitHead":"8489461822b79571d0aae31f9025a81950c14089","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-YG7ibXCalGuyY7kH7Xl3pXrWiDShPkNn08awzXW/AxufRHvgnWMYTMQ0MGRg+y12lVHVKjSQ/CF5r6B4iwcjWg==","shasum":"4cfc73941217838ede60e19e68bda64d3807a8f9","tarball":"https://registry.npmjs.org/@antharuu/mew/-/mew-1.0.3.tgz","fileCount":5,"unpackedSize":12180,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwLAbI6urbLjqi8/suMq21C8GP4bR7fSftM4EOENchCAiBhKPCGOLs2vOevhcWxXxJepdBDU7BYX86Wl9MT7avyrA=="}]},"_npmUser":{"name":"antharuu","email":"antho.eclips@gmail.com"},"directories":{},"maintainers":[{"name":"antharuu","email":"antho.eclips@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mew_1.0.3_1730841299913_0.07434171914887377"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-05T20:32:55.891Z","modified":"2024-11-05T21:15:00.284Z","0.1.0":"2024-11-05T20:32:56.179Z","1.0.1":"2024-11-05T20:42:00.497Z","1.0.2":"2024-11-05T21:08:08.291Z","1.0.3":"2024-11-05T21:15:00.100Z"},"bugs":{"url":"https://github.com/antharuu/Mew/issues"},"author":{"name":"Antharuu"},"license":"MIT","homepage":"https://github.com/antharuu/Mew#readme","keywords":["css","preprocessor","bem","web","rust"],"repository":{"type":"git","url":"git+https://github.com/antharuu/Mew.git"},"description":"A lightweight CSS preprocessor with elegant BEM support","maintainers":[{"name":"antharuu","email":"antho.eclips@gmail.com"}],"readme":"<p align=\"center\">\n  <img width=\"200\" src=\"https://i.postimg.cc/XJZbJQRp/Logo.png\" alt=\"Mew logo\">\n</p>\n\n<h1 align=\"center\">Mew</h1>\n\n<p align=\"center\">\n🎨 Mew - A lightweight CSS preprocessor with elegant BEM support\n</p>\n\n<p align=\"center\">\nA modern CSS preprocessor crafted in Rust, featuring intuitive nesting, variables, and seamless BEM integration. Write cleaner, more maintainable CSS with a minimalist yet powerful syntax.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://github.com/antharuu/Mew/blob/main/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/antharuu/Mew\" alt=\"License MIT\">\n  </a>\n  <a href=\"https://github.com/antharuu/Mew/issues\">\n    <img src=\"https://img.shields.io/github/issues/antharuu/Mew\" alt=\"Open Issues\">\n  </a>\n  <a href=\"https://github.com/antharuu/Mew/network/members\">\n    <img src=\"https://img.shields.io/github/forks/antharuu/Mew\" alt=\"Forks\">\n  </a>\n  <a href=\"https://github.com/antharuu/Mew/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/antharuu/Mew\" alt=\"Stars\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/@antharuu/mew\">\n    <img src=\"https://img.shields.io/npm/v/@antharuu/mew\" alt=\"NPM Version\">\n  </a>\n</p>\n\n## Features\n\n- 🎯 **BEM Support**: Write cleaner CSS with automatic BEM class generation\n- 🔄 **Nested Rules**: Simplified syntax for nested selectors\n- 📦 **Variables**: Basic variable support for reusable values\n- 📁 **Directory Processing**: Process single files or entire directories\n- 🎨 **Clean Output**: Generate well-formatted CSS output\n\n## Installation\n\n### Via NPM (Recommended)\n\nThe easiest way to install Mew is through npm:\n\n```bash\nnpm install -g @antharuu/mew\n```\n\n### From Source\n\nAlternatively, you can build from source:\n\n```bash\n# Clone the repository\ngit clone https://github.com/antharuu/Mew.git\ncd Mew\n\n# Build the project\ncargo build --release\n\n# The binary will be available in target/release/mew\n```\n\nOptional: Add to your PATH for system-wide access:\n\n```bash\n# Linux/macOS\necho 'export PATH=\"$PATH:/path/to/mew/target/release\"' >> ~/.bashrc\nsource ~/.bashrc\n\n# Windows - Add the release directory to your system's PATH environment variable\n```\n\n## Usage\n\nProcess a single file:\n\n```bash\nmew input.mew\n```\n\nProcess a directory:\n\n```bash\nmew ./styles\n```\n\n## Syntax\n\n### Variables\n\n```scss\n$variable-name: value;\n\nbutton {\n  property: $variable-name;\n}\n```\n\n### Nesting with BEM\n\n```scss\n// You can omit the dot (recommended)\ncard {\n  /* Becomes .card */\n\n  &header {\n    /* Becomes .card__header */\n  }\n\n  @primary {\n    /* Becomes .card--primary */\n  }\n}\n\n// Or use it explicitly if needed\n.block {\n  /* Also valid, becomes .block */\n}\n```\n\n### Pseudo-selectors\n\n```scss\nbutton {\n  &:hover {\n    /* Becomes .button:hover */\n  }\n}\n```\n\n## Example\n\n### Input (.mew file)\n\n```scss\n$nav-bg: #ffffff;\n$nav-spacing: 16px;\n\n// No dot needed\nnav {\n  background: $nav-bg;\n  padding: $nav-spacing;\n\n  &list {\n    display: flex;\n    margin: 0;\n    padding: 0;\n  }\n\n  &item {\n    list-style: none;\n    padding: $nav-spacing;\n\n    &:hover {\n      background: #f5f5f5;\n    }\n  }\n\n  @mobile {\n    padding: $nav-spacing;\n  }\n}\n```\n\n### Output (.css file)\n\n```css\n.nav {\n    background: #ffffff;\n    padding: 16px;\n}\n\n.nav__list {\n    display: flex;\n    margin: 0;\n    padding: 0;\n}\n\n.nav__item {\n    list-style: none;\n    padding: 16px;\n}\n\n.nav__item:hover {\n    background: #f5f5f5;\n}\n\n.nav--mobile {\n    padding: 16px;\n}\n```\n\n## Current Limitations\n\n- No advanced functions (like darken, lighten, mix, etc.)\n- No mathematical operations beyond basic calculations\n- No import/include functionality\n- No mixins or extends\n- No color manipulation\n\n## Contributing\n\nContributions are welcome! Here's how you can help:\n\n1. Fork the repository\n2. Create a new branch (`git checkout -b feature/improvement`)\n3. Make your changes\n4. Run the tests (`cargo test`)\n5. Commit your changes (`git commit -am 'Add new feature'`)\n6. Push to the branch (`git push origin feature/improvement`)\n7. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n---\n\n<p align=\"center\">\n  Made with ❤️ by <a href=\"https://github.com/antharuu\">Antharuu</a>\n</p>","readmeFilename":"README.md"}