{"_id":"merge-class-names","_rev":"3275659","name":"merge-class-names","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","dist-tags":{"latest":"1.4.2"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"time":{"modified":"2024-03-21T10:25:00.000Z","created":"2017-09-09T14:07:33.033Z","1.4.2":"2021-08-26T07:59:57.015Z","1.4.1":"2021-08-26T07:53:45.693Z","1.4.0":"2021-01-20T18:25:31.713Z","1.3.0":"2019-11-03T18:05:49.564Z","1.2.0":"2019-05-03T16:41:32.804Z","1.1.1":"2017-10-07T09:40:12.631Z","1.1.0":"2017-09-09T20:22:55.877Z","1.0.1":"2017-09-09T20:10:23.176Z","1.0.0":"2017-09-09T14:07:33.033Z"},"users":{},"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"versions":{"1.4.2":{"name":"merge-class-names","version":"1.4.2","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"dist/umd/index.js","module":"dist/esm/index.js","source":"src/index.js","sideEffects":false,"scripts":{"build":"yarn build-esm && yarn build-umd","build-esm":"BABEL_ENV=production-esm babel src -d dist/esm --ignore \"**/*.spec.js\"","build-umd":"BABEL_ENV=production-umd babel src -d dist/umd --ignore \"**/*.spec.js\"","clean":"rimraf dist","jest":"jest","jest-coverage":"jest --coverage","lint":"eslint src/ --ext .jsx,.js","prepack":"yarn clean && yarn build","test":"yarn lint && yarn jest"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"@babel/cli":"^7.8.0","@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","eslint":"~7.19.0","eslint-config-wojtekmaj":"^0.5.0","jest":"^26.6.0","rimraf":"^3.0.0"},"resolutions":{"semver@7.0.0":"^7.0.0"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"funding":"https://github.com/wojtekmaj/merge-class-names?sponsor=1","_id":"merge-class-names@1.4.2","dist":{"shasum":"78d6d95ab259e7e647252a7988fd25a27d5a8835","size":2680,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.4.2.tgz"},"_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"directories":{},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names_1.4.2_1629964796880_0.4455683471725733"},"_hasShrinkwrap":false,"publish_time":1629964797015,"_cnpm_publish_time":1629964797015,"_cnpmcore_publish_time":"2021-12-16T18:01:46.748Z"},"1.4.1":{"name":"merge-class-names","version":"1.4.1","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"dist/umd/index.js","module":"dist/esm/index.js","source":"src/index.js","sideEffects":false,"scripts":{"build":"yarn build-esm && yarn build-umd","build-esm":"BABEL_ENV=production-esm babel src -d dist/esm --ignore \"**/*.spec.js\"","build-umd":"BABEL_ENV=production-umd babel src -d dist/umd --ignore \"**/*.spec.js\"","clean":"rimraf dist","jest":"jest","jest-coverage":"jest --coverage","lint":"eslint src/ --ext .jsx,.js","prepack":"yarn clean && yarn build","test":"yarn lint && yarn jest"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"@babel/cli":"^7.8.0","@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","eslint":"~7.19.0","eslint-config-wojtekmaj":"^0.5.0","jest":"^26.6.0","rimraf":"^3.0.0"},"resolutions":{"semver@7.0.0":"^7.0.0"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"funding":"https://github.com/wojtekmaj/merge-class-names?sponsor=1","_id":"merge-class-names@1.4.1","dist":{"shasum":"a047f803be65ace802b556912d21c9df01161f38","size":2688,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.4.1.tgz"},"_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"directories":{},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names_1.4.1_1629964425532_0.19150473270650425"},"_hasShrinkwrap":false,"publish_time":1629964425693,"_cnpm_publish_time":1629964425693,"_cnpmcore_publish_time":"2021-12-16T18:01:46.960Z"},"1.4.0":{"name":"merge-class-names","version":"1.4.0","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"dist/umd/index.js","module":"dist/esm/index.js","source":"src/index.js","sideEffects":false,"scripts":{"build":"yarn build-esm && yarn build-umd","build-esm":"BABEL_ENV=production-esm babel src -d dist/esm --ignore \"**/*.spec.js\"","build-umd":"BABEL_ENV=production-umd babel src -d dist/umd --ignore \"**/*.spec.js\"","clean":"rimraf dist","jest":"jest","jest-coverage":"jest --coverage","lint":"eslint src/ --ext .jsx,.js","prepack":"yarn clean && yarn build","test":"yarn lint && yarn jest"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"@babel/cli":"^7.8.0","@babel/core":"^7.9.0","@babel/preset-env":"^7.9.0","eslint":"^7.12.0","eslint-config-wojtekmaj":"^0.5.0","jest":"^26.6.0","rimraf":"^3.0.0"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"funding":"https://github.com/wojtekmaj/merge-class-names?sponsor=1","_id":"merge-class-names@1.4.0","dist":{"shasum":"02edcdd5ff677fbb03b47ecd4586df89d697b81b","size":2589,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.4.0.tgz"},"_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"directories":{},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names_1.4.0_1611167131597_0.6994326525843937"},"_hasShrinkwrap":false,"publish_time":1611167131713,"_cnpm_publish_time":1611167131713,"_cnpmcore_publish_time":"2021-12-16T18:01:47.217Z"},"1.3.0":{"name":"merge-class-names","version":"1.3.0","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"dist/umd/index.js","module":"dist/esm/index.js","source":"src/index.js","sideEffects":false,"scripts":{"build":"yarn build-esm && yarn build-umd","build-esm":"BABEL_ENV=production-esm babel src -d dist/esm --ignore **/*.spec.js","build-umd":"BABEL_ENV=production-umd babel src -d dist/umd --ignore **/*.spec.js","clean":"rimraf dist","jest":"jest","jest-coverage":"jest --coverage","lint":"eslint src/ --ext .jsx,.js","prepublishOnly":"yarn clean && yarn build","test":"yarn lint && yarn jest"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"@babel/cli":"^7.5.5","@babel/core":"^7.5.5","@babel/preset-env":"^7.5.5","babel-jest":"^24.0.0","eslint":"^6.1.0","eslint-config-airbnb-base":"^14.0.0","eslint-plugin-import":"^2.18.2","jest":"^24.8.0","rimraf":"^3.0.0"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"licenseText":"MIT License\n\nCopyright (c) 2017-2019 Wojciech Maj\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"merge-class-names@1.3.0","dist":{"shasum":"c4cdc1a981a81dd9afc27aa4287e912a337c5dee","size":2792,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.3.0.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names_1.3.0_1572804349443_0.9167896761662853"},"_hasShrinkwrap":false,"publish_time":1572804349564,"_cnpm_publish_time":1572804349564,"_cnpmcore_publish_time":"2021-12-16T18:01:47.422Z"},"1.2.0":{"name":"merge-class-names","version":"1.2.0","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"dist/entry.js","es6":"src/entry.js","scripts":{"build":"babel src -d dist --ignore **/__tests__","prepublishOnly":"yarn run build","test":"yarn run test-eslint && yarn run test-jest","test-eslint":"eslint src/ --ext .jsx,.js","test-jest":"jest","test-jest-coverage":"jest --coverage"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"@babel/cli":"^7.0.0","@babel/core":"^7.0.0","@babel/preset-env":"^7.0.0","babel-jest":"^24.0.0","eslint":"^5.5.0","eslint-config-airbnb-base":"^13.1.0","eslint-plugin-import":"^2.14.0","jest":"^24.0.0"},"repository":{"type":"git","url":"https://github.com/wojtekmaj/merge-class-names.git"},"licenseText":"MIT License\n\nCopyright (c) 2017-2018 Wojciech Maj\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"merge-class-names@1.2.0","dist":{"shasum":"cb30ecfc3bdbd96b6f76d0a98777907e5fbb3462","size":2475,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.2.0.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names_1.2.0_1556901692485_0.4484886668589616"},"_hasShrinkwrap":false,"publish_time":1556901692804,"_cnpm_publish_time":1556901692804,"_cnpmcore_publish_time":"2021-12-16T18:01:47.642Z"},"1.1.1":{"name":"merge-class-names","version":"1.1.1","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"build/entry.js","es6":"src/entry.js","scripts":{"build":"babel src -d build --ignore **/__tests__","prepublishOnly":"npm run build","test":"npm run test-eslint && npm run test-jest","test-eslint":"eslint ./src","test-jest":"jest","test-jest-coverage":"jest --coverage"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","eslint":"^4.6.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0","jest":"^21.0.1"},"files":["LICENSE","README.md","build/","src/"],"repository":{"type":"git","url":"git+https://github.com/wojtekmaj/merge-class-names.git"},"gitHead":"beb5f5d4684f8e6eaec16771b73a342655545d61","bugs":{"url":"https://github.com/wojtekmaj/merge-class-names/issues"},"homepage":"https://github.com/wojtekmaj/merge-class-names#readme","_id":"merge-class-names@1.1.1","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"dist":{"shasum":"3bd2f38eb5418c464a0fef615484fdf6c8932256","size":2443,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.1.1.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names-1.1.1.tgz_1507369211705_0.414913778193295"},"directories":{},"publish_time":1507369212631,"_hasShrinkwrap":false,"_cnpm_publish_time":1507369212631,"_cnpmcore_publish_time":"2021-12-16T18:01:47.874Z"},"1.1.0":{"name":"merge-class-names","version":"1.1.0","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"build/entry.js","es6":"src/entry.js","scripts":{"build":"babel src -d build --ignore **/__tests__","prepublishOnly":"npm run build","test":"npm run test-eslint && npm run test-jest","test-eslint":"eslint ./src","test-jest":"jest","test-jest-coverage":"jest --coverage"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^7.2.3","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-2":"^6.24.1","eslint":"^4.6.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0","jest":"^21.0.1"},"files":["LICENSE","README.md","build/","src/"],"repository":{"type":"git","url":"git+https://github.com/wojtekmaj/merge-class-names.git"},"gitHead":"6e18b4b00f81618ea98e2aa440b21ed03a71a680","bugs":{"url":"https://github.com/wojtekmaj/merge-class-names/issues"},"homepage":"https://github.com/wojtekmaj/merge-class-names#readme","_id":"merge-class-names@1.1.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"dist":{"shasum":"de9175ad1ff0ec52b8bfdb0ca37b754d512a02b0","size":2083,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.1.0.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names-1.1.0.tgz_1504988574942_0.9721993987914175"},"directories":{},"publish_time":1504988575877,"_hasShrinkwrap":false,"_cnpm_publish_time":1504988575877,"_cnpmcore_publish_time":"2021-12-16T18:01:48.087Z"},"1.0.1":{"name":"merge-class-names","version":"1.0.1","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"build/entry.js","es6":"src/entry.js","scripts":{"build":"babel src -d build --ignore **/__tests__","prepublishOnly":"npm run build","test":"npm run test-eslint","test-eslint":"eslint ./src"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^7.2.3","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-2":"^6.24.1","eslint":"^4.6.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/wojtekmaj/merge-class-names.git"},"gitHead":"45d97d8d429c4a8b86841cf2f61d15f63758b2aa","bugs":{"url":"https://github.com/wojtekmaj/merge-class-names/issues"},"homepage":"https://github.com/wojtekmaj/merge-class-names#readme","_id":"merge-class-names@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"dist":{"shasum":"306b9f7e275cdb1011a2c8dba51f126402260ce0","size":2121,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.0.1.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names-1.0.1.tgz_1504987822209_0.9980860745999962"},"directories":{},"publish_time":1504987823176,"_hasShrinkwrap":false,"_cnpm_publish_time":1504987823176,"_cnpmcore_publish_time":"2021-12-16T18:01:48.287Z"},"1.0.0":{"name":"merge-class-names","version":"1.0.0","description":"A function that merges given class names, no matter their format: string with single or multiple class names or an array of class names. Filters out invalid class names as well.","main":"src/entry.js","es6":"src/entry.js","scripts":{"build":"babel src -d build --ignore **/__tests__","prepublishOnly":"npm run build","test":"npm run test-eslint","test-eslint":"eslint ./src"},"keywords":["class","class names","class list","merge"],"author":{"name":"Wojciech Maj","email":"kontakt@wojtekmaj.pl"},"license":"MIT","devDependencies":{"babel-cli":"^6.26.0","babel-eslint":"^7.2.3","babel-plugin-transform-es2015-modules-commonjs":"^6.26.0","babel-preset-es2015":"^6.24.1","babel-preset-stage-2":"^6.24.1","eslint":"^4.6.0","eslint-config-airbnb-base":"^12.0.0","eslint-plugin-import":"^2.7.0"},"repository":{"type":"git","url":"git+https://github.com/wojtekmaj/merge-class-names.git"},"gitHead":"135e38deadf748b0e726609077f3c14f17d064d7","bugs":{"url":"https://github.com/wojtekmaj/merge-class-names/issues"},"homepage":"https://github.com/wojtekmaj/merge-class-names#readme","_id":"merge-class-names@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.4.0","_npmUser":{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"},"dist":{"shasum":"db2a943776c15b85267783259d5167f964d6a3b2","size":2316,"noattachment":false,"key":"/merge-class-names/-/merge-class-names-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/merge-class-names/download/merge-class-names-1.0.0.tgz"},"maintainers":[{"name":"wojtekmaj","email":"kontakt@wojtekmaj.pl"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/merge-class-names-1.0.0.tgz_1504966052152_0.14560747588984668"},"directories":{},"publish_time":1504966053033,"_hasShrinkwrap":false,"_cnpm_publish_time":1504966053033,"_cnpmcore_publish_time":"2021-12-16T18:01:48.493Z"}},"readme":"[![npm](https://img.shields.io/npm/v/merge-class-names.svg)](https://www.npmjs.com/package/merge-class-names) ![downloads](https://img.shields.io/npm/dt/merge-class-names.svg) ![build](https://img.shields.io/travis/wojtekmaj/merge-class-names/master.svg) ![dependencies](https://img.shields.io/david/wojtekmaj/merge-class-names.svg) ![dev dependencies](https://img.shields.io/david/dev/wojtekmaj/merge-class-names.svg) [![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)\n\n# Merge-Class-Names\nA function that merges given class names, no matter their format. Filters out invalid class names as well.\n\n## tl;dr\n* Install by executing `npm install merge-class-names` or `yarn add merge-class-names`.\n* Import by adding `import mergeClassNames from 'merge-class-names'`.\n* Pass arguments to it. Forget.\n\n## Accepted formats\n* Strings with one or multiple class names: `a`, `a b`\n* Array of strings with one or multiple class names: `['a', 'b']`, `['a b', 'c d']`.\n\n## Examples\n\n```js\n> mergeClassNames('a', 'b', 'c');\n< 'a b c'\n\n> mergeClassNames('a b', 'c d', 'e f');\n< 'a b c d e f'\n\n> mergeClassNames(['a', 'b'], ['c', 'd']);\n< 'a b c d'\n\n> mergeClassNames(['a b', 'c d'], ['e f', 'g h']);\n< 'a b c d e f g h'\n\n> mergeClassNames('a', 'b', falsyCondition && 'c');\n< 'a b'\n\n> mergeClassNames('a', 'b', 'c', null, ['d', null], () => {}, 'e', undefined);\n< 'a b c d e'\n```\n\n## License\n\nThe MIT License.\n\n## Author\n\n<table>\n  <tr>\n    <td>\n      <img src=\"https://github.com/wojtekmaj.png?s=100\" width=\"100\">\n    </td>\n    <td>\n      Wojciech Maj<br />\n      <a href=\"mailto:kontakt@wojtekmaj.pl\">kontakt@wojtekmaj.pl</a><br />\n      <a href=\"http://wojtekmaj.pl\">http://wojtekmaj.pl</a>\n    </td>\n  </tr>\n</table>\n","_attachments":{},"license":"MIT"}