{"_id":"@dapplets/unicode-escape-webpack-plugin","_rev":"1-6e313975d65200e48705f55456b9687d","name":"@dapplets/unicode-escape-webpack-plugin","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@dapplets/unicode-escape-webpack-plugin","version":"0.1.0","keywords":["webpack","unicode"],"author":{"name":"Dapplets Team","email":"contact@dapplets.org"},"license":"MIT","_id":"@dapplets/unicode-escape-webpack-plugin@0.1.0","maintainers":[{"name":"alsakhaev","email":"alsakhaev@gmail.com"},{"name":"dapplets-org","email":"admin@dapplets.org"}],"homepage":"https://github.com/dapplets/unicode-escape-webpack-plugin#readme","bugs":{"url":"https://github.com/dapplets/unicode-escape-webpack-plugin/issues"},"dist":{"shasum":"1d485b272d7e9e760a2b8859da46bf35f7f4522e","tarball":"https://registry.npmjs.org/@dapplets/unicode-escape-webpack-plugin/-/unicode-escape-webpack-plugin-0.1.0.tgz","fileCount":4,"integrity":"sha512-PT4VbdDnWF9W2HHvjQzXmCSaCpZq4JjY3nSVB9U3q1z9WiK5488qRmLMysiZA5yizjAG2vMThcVmW9RZuh5eqw==","signatures":[{"sig":"MEUCIQDZwnHIzCFdYGEaixIuMCdat2J1aEQbmPZmqB2RTE0t1QIgHJWkuPxAtm0xOaaDq995mxJOhsaoD1IcZ/wn5B173Wc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5003},"main":"index.js","gitHead":"7b32181ac5aa50a0a6cebd699bd888a9b3b14194","_npmUser":{"name":"dapplets-org","email":"admin@dapplets.org"},"repository":{"url":"git+https://github.com/dapplets/unicode-escape-webpack-plugin.git","type":"git"},"_npmVersion":"10.8.2","description":"Escape Unicode characters in webpack","directories":{},"_nodeVersion":"20.18.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/unicode-escape-webpack-plugin_0.1.0_1736818266267_0.18974723128743554","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@dapplets/unicode-escape-webpack-plugin","version":"0.1.1","description":"Escape Unicode characters in webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/dapplets/unicode-escape-webpack-plugin.git"},"keywords":["webpack","unicode"],"author":{"name":"Dapplets Team","email":"contact@dapplets.org"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@dapplets/unicode-escape-webpack-plugin@0.1.1","gitHead":"722af763e3a5f57af92e8608b9cd7ddc685102ed","bugs":{"url":"https://github.com/dapplets/unicode-escape-webpack-plugin/issues"},"homepage":"https://github.com/dapplets/unicode-escape-webpack-plugin#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-dBcrCWE6ZOOHD1XLe3raXk29CwQSJQCXYx8QNcCMvfG+cZ9tZh1h2OVV7D936pmues8OTm1KhjWeiZXbH30SAg==","shasum":"653c5a639852b171e89ca6dba10bb6e19a6009a5","tarball":"https://registry.npmjs.org/@dapplets/unicode-escape-webpack-plugin/-/unicode-escape-webpack-plugin-0.1.1.tgz","fileCount":4,"unpackedSize":5025,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEPmuQmx03Fr73+yVX5NrARpDkBlH40S69qmLrat6o5mAiEAuZxjM7w3iZXWcQa197EKCIUmXLLQFHzqFRhC4mFZ4hM="}]},"_npmUser":{"name":"dapplets-org","email":"admin@dapplets.org"},"directories":{},"maintainers":[{"name":"alsakhaev","email":"alsakhaev@gmail.com"},{"name":"dapplets-org","email":"admin@dapplets.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/unicode-escape-webpack-plugin_0.1.1_1736818509897_0.595564437153367"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-14T01:31:06.147Z","modified":"2025-01-14T01:35:10.296Z","0.1.0":"2025-01-14T01:31:06.437Z","0.1.1":"2025-01-14T01:35:10.064Z"},"bugs":{"url":"https://github.com/dapplets/unicode-escape-webpack-plugin/issues"},"author":{"name":"Dapplets Team","email":"contact@dapplets.org"},"license":"MIT","homepage":"https://github.com/dapplets/unicode-escape-webpack-plugin#readme","keywords":["webpack","unicode"],"repository":{"type":"git","url":"git+https://github.com/dapplets/unicode-escape-webpack-plugin.git"},"description":"Escape Unicode characters in webpack","maintainers":[{"name":"alsakhaev","email":"alsakhaev@gmail.com"},{"name":"dapplets-org","email":"admin@dapplets.org"}],"readme":"# Unicode Escape Plugin for Webpack\n\n`@dapplets/unicode-escape-webpack-plugin` is a simple Webpack plugin that escapes all Unicode characters in your JavaScript files. This is useful for ensuring compatibility with environments that do not support certain Unicode characters natively.\n\n## Features\n\n- Escapes all Unicode characters (`\\u007f` and above) in `.js` files.\n- Configurable to target specific file types or extensions.\n- Lightweight and easy to use.\n\n## Installation\n\nInstall the package via npm:\n\n```bash\nnpm install -D @dapplets/unicode-escape-webpack-plugin\n```\n\n## Usage\n\nAdd the plugin to your Webpack configuration file:\n\n### Example: Basic Configuration\n\njavascript\n\nCopy code\n\n```jsx\nconst UnicodeEscapePlugin = require(\"@dapplets/unicode-escape-webpack-plugin\");\n\nmodule.exports = {\n  mode: \"production\", // or 'development'\n  entry: \"./src/index.js\",\n  output: {\n    filename: \"bundle.js\",\n    path: __dirname + \"/dist\",\n  },\n  plugins: [\n    new UnicodeEscapePlugin({\n      test: /\\.js$/, // Process only `.js` files (default)\n    }),\n  ],\n};\n```\n\n### Example: Custom File Types\n\nYou can customize the `test` option to target other file types:\n\njavascript\n\nCopy code\n\n```jsx\nnew UnicodeEscapePlugin({\n  test: /\\.(js|jsx|ts|tsx)$/, // Escape Unicode in JavaScript and TypeScript files\n});\n```\n\n## How It Works\n\nThe plugin hooks into Webpack's build process and processes the specified files during the `emit` phase. It escapes Unicode characters using the `\\uXXXX` format for all characters with a Unicode code point of `\\u007f` or higher.\n\n### Input Example\n\njavascript\n\nCopy code\n\n`const example = \"Unicode: é, ☃, 🐱\";`\n\n### Output Example\n\njavascript\n\nCopy code\n\n`const example = \"Unicode: \\\\u00e9, \\\\u2603, \\\\ud83d\\\\udc31\";`\n\n## Options\n\n| Option | Type     | Default   | Description                                         |\n| ------ | -------- | --------- | --------------------------------------------------- |\n| `test` | `RegExp` | `/\\.js$/` | A regular expression to match files for processing. |\n\n## Contributing\n\nContributions are welcome! If you encounter any issues or have feature requests, feel free to open an issue or submit a pull request on [GitHub](https://github.com/dapplets/unicode-escape-webpack-plugin).\n\n## License\n\nThis project is licensed under the MIT License.\n","readmeFilename":"README.md"}