{"_id":"@bem/sdk.naming.cell.match","_rev":"6-e9975cc40f8236cc1a0d3ad20027462d","name":"@bem/sdk.naming.cell.match","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.1":{"name":"@bem/sdk.naming.cell.match","version":"0.0.1","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 4.0"},"main":"cell-match.js","files":["cell-match.js"],"dependencies":{"@bem/sdk.cell":"*","@bem/sdk.naming.cell.pattern-parser":"*","@bem/sdk.naming.entity.parse":"*"},"devDependencies":{"@bem/sdk.naming.presets":"*"},"scripts":{"test":"nyc mocha *.test.js"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"integrity":"sha512-JTDrhKSyIuJOaB3qBwm96CxBkhPYj2nByepMy+00HXsCVdTqFnwhTcVlOhi16LgMXK7nqs9GvY0cTBKRFVwgCg==","shasum":"424ab876c462cf2f54ca3e7505353806c36051d5","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.0.1.tgz","fileCount":2,"unpackedSize":4276,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/tC4CRA9TVsSAnZWagAA1HQP/3kc7QUWP6Apq5q9qoIP\nA2KgY6VkW8gMv7W4eS2ZFulSgsSDT48gOc9h9prhWnL/xbWX0m7uwowHeJA9\n06khS8ZhtTnlVdK8ns4O/87z+ftYn3IgLF4T8T2PdbnpaYopbqmPHhkRujM4\nclcug2QjAruVwOPVNYOm8L7UopUA5IAMDoB3U6rffW3drZ1z/WGdZi3IgRPR\n+PhdVIo+vl7MoH9dyeyrjSjnbs/b4nd2PrFCAlu8h4YCUgDeeF+ZrDnxthJf\nnWFRs4hCVcv8+rGfdzCg4NzJq7GRHPzxNuuzsbnXEviGNQr8hlrU1thiQT3V\nfowrZFBGEv17NPYd6YiOGGViI6PJHzlnUAqLScf2ZmV7H+3g+TfFtThtOEXQ\nL+bImkNBwlRU2rWzVTpwUyshJcK6dxem73VrTBDWaJQ2LeTwlprLuOFXx1nP\nEV0NTknjplYfoVHuzgBMOHnntK92sudkIA4hAbFXiEXjGxlhJV7iTlgWGe03\nU+wbrqotUGYttyq1KZfKs1/klhTbKzBE0MOicCBmCFFhLMs1TMQoOTn3WNoD\nF5Zu5+2PLtHGK3p+SxZSugllGBNlNzrqFG5vm5K9zDIXSg6lehi2zV8129Go\nEHTWkiOx9jzjJ6z0TKM1YxbdpFKqLjHan2Un35+mxROwau+0K2oX4KAZp9og\nXVKe\r\n=08wm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmIcdByrlvfNdgWN6UOv9VSLZfGaDR6FRSFB965a1Z4gIgEe6DvmLeqrtY4fZ6d9gmteO/j2GeDDZ91+NkyTFE0VA="}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.0.1_1526649016180_0.6938458782320023"},"_hasShrinkwrap":false},"0.0.2-rc.0":{"name":"@bem/sdk.naming.cell.match","version":"0.0.2-rc.0","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 4.0"},"main":"cell-match.js","files":["cell-match.js"],"dependencies":{"@bem/sdk.cell":"*","@bem/sdk.naming.cell.pattern-parser":"*","@bem/sdk.naming.entity.parse":"*"},"devDependencies":{"@bem/sdk.naming.presets":"*"},"scripts":{"test":"nyc mocha *.test.js"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.0.2-rc.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"integrity":"sha512-KXNKQy8X4yppA9b4yblU190fXlkb1fo4PXC+COiWKakb5l4uScXr3mxKTJVC8BhF8h9l9Hyz+Ac9ka7+C+A6Lw==","shasum":"af944b7873015a149cca7f2f7dc68c12988761b7","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.0.2-rc.0.tgz","fileCount":2,"unpackedSize":4281,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/tDLCRA9TVsSAnZWagAAYjUP/1ANrPLfqC3cdWXk3eT6\nkVO2dFlv4K4zInWfMmHu2WdPL084PR6UGyvkVHCvZ601OAbuZKBj6vTfk2cJ\n3HQR+Q49GQp7FQa6rFjQkvD+C2wvsXd4ui1kjFgIhFQXBHNxVJ27KgdT7z5z\nav1zuWUYLNFErYhkjex4RWCU3tJ6N2Xn4XJd7SouH852WuhXjH6PNH3AJCPH\nOEwAmARx/B2A5eGUNpDNTAttKHYpqeHkGxDyEcbG+OfmtTmjQH25bGUMTJiZ\nlf/PeyzqKhf6gUS7tGG05Odk5saPZYvShGEE//CiOmswn5B4iLQ0xlxAdeII\nu3091MmRNRZojCrdwjuWisLu7QzREVC7kloxItB8F2aVf91P7geI03aY8zR8\n8J0i+6AzvYfPPx0WCVTJcRxs0RUBRKitv0m0Nv4iXEK5BnGJKWv4WQZTo2RQ\nXc9dBKPiddfnmYFapcIU8ZZKCjsDAd8r+S4BufsMDlasWJhoXbCh1GTcquhD\nwYoQPzHq54XAE2izkbgsbUFdwOl9dLx7qFC2DOB63Fm3SNmyi1T8wFQ1scHR\n7RbJSgr5nKRNz0tjkREsKY/LNRYdtUNg/sgBjd8ghrKMHElIw6BTWtrStJzo\nX6ZVxJT77wmR8y7/MKUGoM9Xc+VgkIa1HRJuc5ofDdEqkdx18tXQNxMRYIOA\nT0BF\r\n=SaIA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvCXkA8JqtFF8alH0+u4o98t8Y3wsuIigVW3AbMq/xjAIhAOis5UUt8IHMxuFBeXawbJZsrESA7EhVF/14RaFyzGch"}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.0.2-rc.0_1526649034899_0.4131881649414606"},"_hasShrinkwrap":false},"0.1.0":{"name":"@bem/sdk.naming.cell.match","version":"0.1.0","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 8.0"},"main":"cell-match.js","files":["cell-match.js"],"dependencies":{"@bem/sdk.cell":"^0.2.7","@bem/sdk.naming.cell.pattern-parser":"^0.0.6","@bem/sdk.naming.entity.parse":"^0.2.7"},"devDependencies":{"@bem/sdk.naming.presets":"^0.1.0"},"scripts":{"test":"nyc mocha *.test.js"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.4.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"integrity":"sha512-kG/qemCIfWZ47qKqXuneeg7uWV6jx0AWuo56A9oEsBmkk5GRj3mpi+2aEdbGmsfbYCX2cc0wtm34cOY3/YZFag==","shasum":"d8cfc2b753481b70feb4a58d95e9bf018936de38","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.1.0.tgz","fileCount":3,"unpackedSize":6005,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOVvpCRA9TVsSAnZWagAAEf8P/1Rqz7AeYUxqx7Nc/+YZ\n18CB8vqcoW5jlBJmGQh1/YRrkmzLwmJJcYwXH6VmGwRK1BF7VDWuugJ9kXss\nW2ndliyT1ylTM2m8JtWN7WbAnJ8Nx0hV2jSsLWp8Y/D/5SmabvLK/v+85DC2\nuqNHfja0x0faSVDwnN+GG0l8irXHcXk7tSjZkZzsMLj71MmwUMsQaIYXnjdI\nEEagoDVT9IcOenAewPBI//scRWmSVloSVGC3RTNBZIC+r6PZW4ADP+Ld+H4Q\nn9poR7ufXIA0WxkJ3H5wRXKNU67fzf1y8ghdmyVFBGATpniGfKMEpQwA/Q5b\n014SWokYvhjRQFB5l+qsREe2sE57YGLXsV7gebFqSzdJ4SoR/zSuX7S6/SmZ\npyHOILH9iglLzTbuM2lsiOLgrdm6q46S1j9F48O+el6FrXmoeJkVnGA3Oqbw\nItigY6acglTlxCEFibFUUxJ1mQ76xOV4RTobQEVXdMaNroeyhr+UsYAqsi6J\nUIKNtlJGkewVqoh16dInBuGRupvgFGNm5OdUAzAv/HyOMxSvWzxw4bmCxA0a\ntupaI23FybhVfM2j9VOWPn2f1WdAWjdNryf0eOfHhkpyY0MDN6SspJmNG8Vh\n8JjJSx8EIX3V+cNnvBU7LsuifGRuylXZgcFc3AH1lNpC+kMCqoOxOBYtr/Mh\nwYsT\r\n=BH5e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4OljLmTjzOEbtA6F8JY/RZbTeAxRS1Ixhm94gQjhW6QIhALH9T0Lxr/kt11BJHpDZdOGEDzuAD0PZNGrE8Kfso+Uc"}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.1.0_1530485737186_0.9477561065382376"},"_hasShrinkwrap":false},"0.1.2":{"name":"@bem/sdk.naming.cell.match","version":"0.1.2","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 8.0"},"main":"cell-match.js","files":["cell-match.js"],"dependencies":{"@bem/sdk.cell":"^0.2.7","@bem/sdk.naming.cell.pattern-parser":"^0.0.6","@bem/sdk.naming.entity.parse":"^0.2.7"},"devDependencies":{"@bem/sdk.naming.presets":"^0.3.0"},"scripts":{"test":"nyc mocha *.test.js"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.1.2","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"integrity":"sha512-0ML17M4ESk4WRS9rwmpI0Uk4Fyj27Memi/Z+V4rxwmjfO+xg9rI3ZNsMPQJKz5y80qIub64QHtJFzDWCXG30JQ==","shasum":"06283e166a33bb69ab8bd91545bfbe78118fc42a","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.1.2.tgz","fileCount":3,"unpackedSize":6939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbR7E+CRA9TVsSAnZWagAAfaAP/i9hoO/7tfVmYjrQVEPj\nTsyHFRrVqON/SkpBMtEHLXrn6AOIBvs7iLtd4dRWMuyzSiZQw8H98+XPjFM6\ngYQ4mJ61GGRQwYJHaCHBx1zz5Vgkdczj7TjGhVwCwKf0eqUGd1yWSWq6UEF2\nCXpZP3kRXwMFkAfguAgbFz3wEBypgz8l+iBjvXfy74xYpmAW4wHddAhIT67R\n1EQfZq5GDeGWiogCRLg2jpmDOahPiB0qPwsUiL5naDxmqWy5UmKVqoaNTVc8\nYXqYeQfoegyRsCC212Mn9dHw+gcbNNySXFhWDCFH1ZRplibPmYKCE0z5GG2m\nec1s5uNnw488llRQIQqgA3jyZPbO1pLFQweSveAxKSX8KH4tdgQJd5pKLxYJ\nFmSvgc3hHrf/dmUZSTLkM+IY6X9oVngQJg/MnQhAJFKt1nA4J7OzZZQIqmRo\nDpW6ISesoeRyDrILG2MfIWVhiw4LTdXqCrJCP3DRFEEz3hPwLXZmb/GP+i14\njLypNKxDIUvm2ZE1H8kp4qFQXF4ByOJNxv/I2vk/pUdnzSzNmTC0PESsT3wh\nOllw70qdtZL5kJjtfp1c5lT7KijLsc1t89SUBQRpEMElB3ayRub06vb1PzPT\n4n2mvs+2bhF16+GmP4UCWayMtWadn7yZQsLits8DLsyMlGtf8Tx+nOaZR9Mu\nqpQr\r\n=MqdR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1Km/G/Kz6a7wbCSpSkq9/8gb6DzoE/WImSHFKtWIZKQIhAOHSKFCltqpqmZrKl9JpT8UWAOasWCf5pCj1Svs5BNaw"}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.1.2_1531425086246_0.6607495360899336"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bem/sdk.naming.cell.match","version":"0.1.1","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 8.0"},"main":"cell-match.js","files":["cell-match.js"],"dependencies":{"@bem/sdk.cell":"^0.2.7","@bem/sdk.naming.cell.pattern-parser":"^0.0.6","@bem/sdk.naming.entity.parse":"^0.2.7"},"devDependencies":{"@bem/sdk.naming.presets":"^0.2.0"},"scripts":{"test":"nyc mocha *.test.js"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.1.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"dist":{"integrity":"sha512-RTfyAeZAP6lm8Pc5EINhkfpBLRskT3JDavskEWoIP+ZGrxe8FIDVmb3uybpmBnDzkXg0HuTIY9msuQvAVpPYWw==","shasum":"0c21dffa3845f0b66ea41cbbe3ddeebeeb5b14bf","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.1.1.tgz","fileCount":3,"unpackedSize":6638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbR7F0CRA9TVsSAnZWagAANoAP/RzesKvXNaaLeNYRcL9A\nBDo9fuw7o3MQI3DqSujpAwGKw/LGgufk1YnQwLhmxuuVYyEB8wCNYdn4gfuS\nZvmLGj5XNpfhouqAMuG4Qq6xZHSnEfAnptG3hdlijVansJO19tQgqaEbCHWH\n7Pd0ktG7sVOTDLsQ8zxwrT1lLlQxxcedUUQAO+HtCNwlpjeuRKu+qCnTpu/k\nqp8gdfkhxK3h4H6+5fUl3kufVyrewWZWPdr6Kb7ru/HcS3U26lHEyV+nq0eH\nnYJJvSxf4al4PvYRNJS9ywlbFD0IJM0fTQTQmngZLLSp15tBjCjk32+EFFdF\n5acLmfX85uImLKImFvXNzRZ8ZyZNOlUdepNZAay0RJrgvdxAU4P58TiaVpZ4\nO85WAl5jr3nbQl72+KRAo0FDweub36kw7Hd/t2O80Jlf3CNFVWfmA9RzoDCn\nZAji+RF2+3KGLrtIKSi1fYu9rMPRcgfX942yUEORMiDYZN1UCno/Hq8WkqWz\n/PKoFNn0arGNbf687ipnWKrHxhcSPiVJFtPFzDjXu9XymDx9sZOD/xWuhAQu\nTHNcxXiHJMBkCtMCX2wiiKxOn+GitHAOIlL8EkUrSa0cNRkKCvcp75P8o5vB\n3As5RzAIhUMQpR6nCVZTnAmb+1II9/lS52HTXL0kdiXiqfuguFXAgPAyoMPK\nqmaY\r\n=bwZg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbYygUR67lGuMjouY+KHltFo8A+wWPbzXBbvNmekPsXAiAbMRIIh8WneYGh4x2iWHCLkXCrw7Uu8o5acoHvR1VPUg=="}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.1.1_1531425140694_0.7965920763220873"},"_hasShrinkwrap":false},"0.1.3":{"name":"@bem/sdk.naming.cell.match","version":"0.1.3","description":"BemCell parser","license":"MPL-2.0","author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"engines":{"node":">= 8.0"},"main":"cell-match.js","dependencies":{"@bem/sdk.cell":"^0.2.9","@bem/sdk.naming.cell.pattern-parser":"^0.0.7","@bem/sdk.naming.entity.parse":"^0.2.9"},"devDependencies":{"@bem/sdk.naming.presets":"^0.2.3"},"scripts":{"test":"nyc mocha *.test.js"},"gitHead":"1ec9066d241303e5dc2abc01171f111effffff3a","bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"homepage":"https://github.com/bem/bem-sdk#readme","_id":"@bem/sdk.naming.cell.match@0.1.3","_nodeVersion":"8.6.0","_npmVersion":"lerna/3.10.5/node@v8.6.0+x64 (darwin)","dist":{"integrity":"sha512-rKMx28vvuUM/hWKCz+jWhRsRazwtaQh342mfyDY96b/PNKIvlFcAkRA2TeTiElbRFsnYhsbc+F3Q39GiuUjJTQ==","shasum":"2872926e799c78939a31a581cb85abc6c623c10f","tarball":"https://registry.npmjs.org/@bem/sdk.naming.cell.match/-/sdk.naming.cell.match-0.1.3.tgz","fileCount":4,"unpackedSize":15527,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcVv+BCRA9TVsSAnZWagAArhIP/AzGF5qYP8Wslcx6cKAE\nppaph9e8w5/NW1nkt2HRx4lsJmh4Arg1vTel3+OIEbhQ47UgCeZGafO6UGGq\nzOjogA5iN9gulARm8JnnEgh3k0sqI6WBY0UEBzfvQQOCaEF1c59gz6Rhb54Z\nvGqoTjEIV+q6BnuUi+/uiHwfbD6QZ+lU3u7OHMbuaggS95VcR+44vDTG0Lnr\nhccXVsA8Vi6S0ULCIIKxsBF67flJjYhZ53+4qg8h+44AfBmlaATifSq0QQkk\nPn/VExxSNq7TYne6g2RA6CVnxx8hh4kQLEZ8eJ9FbBCGSLCUXQFhxlam4k2u\nY2XXr4S9gRg6I5SgGqy4u3YXh9irEoE1OMdMYq23/D70te48Nxa87rlOoHB4\nOqfSPigtddVojGqxrF4IJ5C4rMq2GZctOrLkubGOdyRpCTFdgY2eaf0RgCnn\nyZTQx34iSw9W92nSwdvV9vZBCnL7AGdp7B3nv2KObLK3XkgImunxfse5/P6r\nLqmfAkikEhsj+UM945Ze4OzZkSMy5z26Ek2MOS0cjUk2catyOWLttnggNn/3\no36RyZFkQWYqNqG5ph/msemjQYIo+SBpux/kQltb505Dyi4y1HG6DOeBcoNh\nFlv+TFd8uDcWDpdWIm121Dmi9R+9Bnui05L3mQyK2ntV76XE7qgraApeTTrT\nHgvq\r\n=h6W2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF73Oq0rRjBT+sVYipI8wNPK2ZqR4TwESAjDeseUfnyHAiBbMtEY8Nw0XeuuiUWsVwNuVDfB4hVyiXyKsXaSj28H3A=="}]},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"_npmUser":{"name":"qfox","email":"zxqfox@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sdk.naming.cell.match_0.1.3_1549205377420_0.44946468609299073"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-18T13:10:16.043Z","0.0.1":"2018-05-18T13:10:16.265Z","modified":"2022-04-04T18:20:59.855Z","0.0.2-rc.0":"2018-05-18T13:10:35.314Z","0.1.0":"2018-07-01T22:55:37.248Z","0.1.2":"2018-07-12T19:51:26.361Z","0.1.1":"2018-07-12T19:52:20.761Z","0.1.3":"2019-02-03T14:49:37.559Z"},"maintainers":[{"name":"blond","email":"mail@blond.im"},{"name":"qfox","email":"zxqfox@gmail.com"},{"name":"tadatuta","email":"i@tadatuta.com"},{"name":"veged","email":"veged@ya.ru"},{"name":"vithar","email":"vitaly@harisov.name"},{"name":"yeti-or","email":"yeti.or@gmail.com"}],"description":"BemCell parser","homepage":"https://github.com/bem/bem-sdk#readme","keywords":["bem","naming","cell","parse","match"],"repository":{"type":"git","url":"git+https://github.com/bem/bem-sdk.git"},"author":{"name":"Alexey Yaroshevich","email":"zxqfox@gmail.com","url":"github.com/zxqfox"},"bugs":{"url":"https://github.com/bem/bem-sdk/issues"},"license":"MPL-2.0","readme":"# naming.cell.match\n\nParser for the file path of a BEM cell object.\n\n[![NPM Status][npm-img]][npm]\n\n[npm]:          https://www.npmjs.org/package/@bem/sdk.naming.cell.match\n[npm-img]:      https://img.shields.io/npm/v/@bem/sdk.naming.cell.match.svg\n\n* [Introduction](#introduction)\n* [Try match](#try-match)\n* [Quick start](#quick-start)\n* [API reference](#api-reference)\n* [Parameter tuning](#parameter-tuning)\n\n## Introduction\n\nThe tool checks if the specified file path can be a path of a BEM cell. This tool can also be used to parse the file path and create a BEM cell object from it.\n\nYou can choose a preset with a [naming convention](https://en.bem.info/methodology/naming-convention/) for creating a `match()` function. See the full list of supported presets in the `@bem/sdk.naming.presets` package [documentation](https://github.com/bem/bem-sdk/tree/master/packages/naming.presets#naming-conventions).\n\nAll provided presets use the [`nested`](https://en.bem.info/methodology/filestructure/#nested) file structure. To use the [`flat`](https://en.bem.info/methodology/filestructure/#flat) structure that is better for small projects, see [Using a custom naming convention](#using-a-custom-naming-convention).\n\n> **Note.** If you don't have any BEM projects available to try out the `@bem/sdk.naming.cell.match` package, the quickest way to create one is to use [bem-express](https://github.com/bem/bem-express).\n\n## Try match\n\nAn example is available in the [RunKit editor](https://runkit.com/migs911/how-bem-sdk-naming-cell-match-works).\n\n## Quick start\n\n> **Attention.** To use `@bem/sdk.naming.cell.match`, you must install [Node.js 8.0+](https://nodejs.org/en/download/).\n\nTo run the `@bem/sdk.naming.cell.match` package:\n\n1. [Install required packages](#installing-required-packages).\n2. [Create a `match()` function](#creating-a-match-function).\n3. [Create a BEM cell object](#creating-a-bem-cell-object).\n4. [Get a file path](#getting-a-file-path).\n\n### Installing required packages\n\nInstall the following packages:\n\n* [@bem/sdk.naming.cell.match](https://www.npmjs.org/package/@bem/sdk.naming.cell.match), which makes the `match()` function.\n* [@bem/sdk.naming.presets](https://www.npmjs.com/package/@bem/sdk.naming.presets), which contains presets with well-known naming conventions.\n\nTo install these packages, run the following command:\n\n```\n$ npm install --save @bem/sdk.naming.cell.match @bem/sdk.naming.presets\n```\n\n### Creating a `match()` function\n\nCreate a JavaScript file with any name (for example, **app.js**) and do the following:\n\n1. Choose the [naming convention](https://bem.info/methodology/naming-convention/) and import the preset with this convention (for example, origin naming convention).\n    See the full list of supported presets in the `@bem/sdk.naming.presets` package [documentation](https://github.com/bem/bem-sdk/tree/master/packages/naming.presets#naming-conventions).\n1. Import the `@bem/sdk.naming.cell.match` package and create the `match()` function using the imported preset:\n\n```js\nconst originNaming = require('@bem/sdk.naming.presets/origin');\nconst match = require('@bem/sdk.naming.cell.match')(originNaming);\n```\n\n### Check a correct file path\n\nCheck a file path:\n\n```js\nmatch('my-layer.blocks/my-block/my-block.js').isMatch;\n// => true\n```\n\nThis function also converts the path to a BemCell object and returns it.\n\n```js\nmatch('my-layer.blocks/my-block/my-block.js').cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n```\n\n### Check an incorrect file path\n\nIf the file path is incorrect, the `isMatch` value will be `false` but the BemCell object can still be created. This will happen if the file path has some additional text at the end. The extra text will be written in the `rest` value.\n\n```js\nlet incorrectPath = 'my-layer.blocks/my-block/my-block.js_some-text';\nmatch(incorrectPath);\n// => {cell: BemCell, isMatch: false, rest: \"_something\"}\nmatch(incorrectPath).cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n```\n\nIf the file path hasn't been parsed, the `cell` and `rest` values will be `null`.\n\n```js\nincorrectPath = 'some incorrect string';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n```\n\nThe file path may look correct, but it does not match the file structure pattern from the used preset:\n\n```js\nincorrectPath = 'my-block/my-block.js';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n```\n\n**Example:**\n\n```js\nconst originNaming = require('@bem/sdk.naming.presets/origin');\nconst match = require('@bem/sdk.naming.cell.match')(originNaming);\n\n// Examples with correct paths.\n\nlet correctPath = 'my-layer.blocks/my-block/my-block.js';\nmatch(correctPath).isMatch;\n// => true\nmatch(correctPath).cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n\ncorrectPath = 'common.blocks/my-block/_my-modifier/my-block_my-modifier.css';\nmatch(correctPath).isMatch;\n// => true\nmatch(correctPath).cell.valueOf();\n// => {entity: { block: \"my-block\", mod: {name: \"my-modifier\", val: true}}, tech: \"js\", layer: \"my-layer\"}\n\n// Examples with incorrect paths.\n\nlet incorrectPath = 'my-layer.blocks/my-block/my-block.js_some-text';\nmatch(incorrectPath);\n// => {cell: BemCell, isMatch: false, rest: \"_something\"}\nmatch(incorrectPath).cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n\nincorrectPath = 'some incorrect string';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n\nincorrectPath = 'my-block/my-block.js';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n```\n\n[RunKit live example](https://runkit.com/migs911/naming-cell-match-using-origin-naming-convention).\n\n## API reference\n\n### match()\n\nTries to convert the specified path to a BEM cell object and return an object that contains the result.\n\nThe returned object has the follow properties:\n\n* `cell` — converted BEM cell.\n* `isMatch` — `true` if the path matches a BEM cell and `false` if not.\n* `rest` — some additional text at the end of the path. If the value is not `null` then the `isMatch` value will be `false`.\n\n\n```js\n/**\n * @typedef BemCell — Representation of cell.\n * @property {BemEntityName} entity — Representation of entity name.\n * @property {string} tech — Tech of cell.\n * @property {string} [obj.layer] — Layer of cell.\n */\n\n/**\n * @param {string} path — Object representation of the BEM cell.\n * @returns {cell: ?BemCell, isMatch: boolean, rest: ?string}\n */\nmatch(path);\n```\n\n## Parameter tuning\n\n### Using a custom naming convention\n\nTo create a preset with a custom naming convention, use the `create()` function from the `@bem/sdk.naming.presets` package.\n\nFor example, create a preset that uses the [flat](https://en.bem.info/methodology/filestructure/#flat) scheme to describe the file structure organization.\n\nUse the created preset to make your `match()` function.\n\n**Example:**\n\n```js\nconst options = {\n        fs: { scheme: 'flat' }\n    };\nconst originFlatNaming = require('@bem/sdk.naming.presets/create')(options);\nconst match = require('@bem/sdk.naming.cell.match')(originFlatNaming);\n\n// Examples with correct paths.\n\nlet correctPath = 'my-layer.blocks/my-block.js';\nmatch(correctPath).isMatch;\n// => true\nmatch(correctPath).cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n\ncorrectPath = 'common.blocks/my-block_my-modifier.css';\nmatch(correctPath).isMatch;\n// => true\nmatch(correctPath).cell.valueOf();\n// => {entity: { block: \"my-block\", mod: {name: \"my-modifier\", val: true}}, tech: \"js\", layer: \"my-layer\"}\n\n// Examples with incorrect paths.\n\nlet incorrectPath = 'my-layer.blocks/my-block.js_some-text';\nmatch(incorrectPath);\n// => {cell: BemCell, isMatch: false, rest: \"_something\"}\nmatch(incorrectPath).cell.valueOf();\n// => {entity: {block: \"my-block\"}, tech: \"js\", layer: \"my-layer\"}\n\nincorrectPath = 'some incorrect string';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n\nincorrectPath = 'my-block/my-block.js';\nmatch(incorrectPath);\n// => {cell: null, isMatch: false, rest: null}\n```\n\n[RunKit live example](https://runkit.com/migs911/naming-cell-match-using-a-custom-naming-convention).\n\nSee more examples of creating presets in the `@bem/sdk.naming.presets` package [documentation](https://github.com/bem/bem-sdk/tree/master/packages/naming.presets).\n","readmeFilename":"README.md"}