{"_id":"balanced-match","_rev":"4123127","name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","dist-tags":{"latest":"4.0.4"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"time":{"modified":"2026-02-24T19:26:42.000Z","created":"2013-10-13T12:26:03.806Z","4.0.4":"2026-02-22T11:38:25.951Z","4.0.3":"2026-02-18T10:08:37.329Z","4.0.2":"2026-02-09T14:50:47.458Z","3.0.1":"2023-10-07T13:34:03.685Z","3.0.0":"2023-10-05T08:11:19.087Z","2.0.0":"2021-04-06T12:53:21.623Z","1.0.2":"2021-04-06T12:51:09.276Z","1.0.1":"2021-04-06T07:41:35.956Z","1.0.0":"2017-06-12T07:18:30.595Z","0.4.2":"2016-07-18T09:43:12.562Z","0.4.1":"2016-05-01T19:07:46.040Z","0.4.0":"2016-04-07T08:46:59.982Z","0.3.0":"2015-11-28T12:37:27.893Z","0.2.1":"2015-10-22T13:13:58.153Z","0.2.0":"2014-11-30T09:50:01.532Z","0.1.0":"2014-04-24T12:44:58.954Z","0.0.1":"2014-01-08T10:12:05.995Z","0.0.0":"2013-10-13T12:26:03.806Z"},"users":{"dantman":true,"scrum":true,"klap-webdevelopment":true,"scottfreecode":true,"arteffeckt":true,"puranjayjain":true},"repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"versions":{"4.0.4":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"4.0.4","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"type":"module","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write .","benchmark":"node benchmark/index.js","typedoc":"typedoc --tsconfig .tshy/esm.json ./src/*.ts"},"devDependencies":{"@types/brace-expansion":"^1.1.2","@types/node":"^25.2.1","mkdirp":"^3.0.1","prettier":"^3.3.2","tap":"^21.6.2","tshy":"^3.0.2","typedoc":"^0.28.5"},"keywords":["match","regexp","test","balanced","parse"],"license":"MIT","engines":{"node":"18 || 20 || >=22"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","_id":"balanced-match@4.0.4","gitHead":"adf286f7c6142102f932c8d7c7066463741a0036","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"homepage":"https://github.com/juliangruber/balanced-match#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"bfb10662feed8196a2c62e7c68e17720c274179a","size":4199,"noattachment":false,"key":"/balanced-match/-/balanced-match-4.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-4.0.4.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/balanced-match_4.0.4_1771760305795_0.22783138922162038"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-22T11:38:25.951Z","publish_time":1771760305951,"_source_registry_name":"default","_cnpm_publish_time":1771760305951},"4.0.3":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"4.0.3","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"type":"module","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write .","benchmark":"node benchmark/index.js","typedoc":"typedoc --tsconfig .tshy/esm.json ./src/*.ts"},"devDependencies":{"@types/brace-expansion":"^1.1.2","@types/node":"^25.2.1","mkdirp":"^3.0.1","prettier":"^3.3.2","tap":"^21.1.0","tshy":"^3.0.2","typedoc":"^0.28.5"},"keywords":["match","regexp","test","balanced","parse"],"license":"MIT","engines":{"node":"20 || >=22"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","_id":"balanced-match@4.0.3","gitHead":"8a7fed428dea3a947dfbc73c7c868f925d38392e","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"homepage":"https://github.com/juliangruber/balanced-match#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"6337a2f23e0604a30481423432f99eac603599f9","size":4194,"noattachment":false,"key":"/balanced-match/-/balanced-match-4.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-4.0.3.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/balanced-match_4.0.3_1771409317176_0.6953458986225476"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-18T10:08:37.329Z","publish_time":1771409317329,"_source_registry_name":"default","_cnpm_publish_time":1771409317329},"4.0.2":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"4.0.2","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}}},"type":"module","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","prepare":"tshy","pretest":"npm run prepare","presnap":"npm run prepare","test":"tap","snap":"tap","format":"prettier --write .","benchmark":"node benchmark/index.js","typedoc":"typedoc --tsconfig .tshy/esm.json ./src/*.ts"},"devDependencies":{"@types/brace-expansion":"^1.1.2","@types/node":"^25.2.1","mkdirp":"^3.0.1","prettier":"^3.3.2","tap":"^21.1.0","tshy":"^3.0.2","typedoc":"^0.28.5"},"keywords":["match","regexp","test","balanced","parse"],"license":"MIT","engines":{"node":"20 || >=22"},"tshy":{"exports":{"./package.json":"./package.json",".":"./src/index.ts"}},"main":"./dist/commonjs/index.js","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","dependencies":{"jackspeak":"^4.2.3"},"_id":"balanced-match@4.0.2","gitHead":"e0ea70da61430e33ba13a9394e0a3d0122095096","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"homepage":"https://github.com/juliangruber/balanced-match#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"shasum":"241591ea634702bef9c482696f2469406e16d233","size":4214,"noattachment":false,"key":"/balanced-match/-/balanced-match-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-4.0.2.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/balanced-match_4.0.2_1770648647330_0.9219850390943709"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-02-09T14:50:47.458Z","publish_time":1770648647458,"_source_registry_name":"default","_cnpm_publish_time":1770648647458},"3.0.1":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"3.0.1","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","exports":"./index.js","type":"module","scripts":{"test":"standard --fix && node--test test/test.js","bench":"matcha test/bench.js","release":"np"},"devDependencies":{"@c4312/matcha":"^1.3.1","np":"^8.0.4","standard":"^17.1.0","test":"^3.3.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"engines":{"node":">= 16"},"gitHead":"bb2612142d2d40f46636319ce50197deb6254425","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@3.0.1","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"shasum":"e854b098724b15076384266497392a271f4a26a0","size":4740,"noattachment":false,"key":"/balanced-match/-/balanced-match-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-3.0.1.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match_3.0.1_1696685643512_0.5915305955862984"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-07T13:34:03.685Z","publish_time":1696685643685,"_source_registry_name":"default","_cnpm_publish_time":1696685643685},"3.0.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"3.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","type":"module","scripts":{"test":"standard --fix && node--test test/test.js","bench":"matcha test/bench.js","release":"np"},"devDependencies":{"@c4312/matcha":"^1.3.1","np":"^8.0.4","standard":"^17.1.0","test":"^3.3.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"engines":{"node":">= 16"},"gitHead":"7faf963591218df292de64f542bccbb5a85de93f","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@3.0.0","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"shasum":"c47006ef8f61f4c7ffbecbd69b2fe9c56fb8773c","size":2684,"noattachment":false,"key":"/balanced-match/-/balanced-match-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-3.0.0.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match_3.0.0_1696493478956_0.8748467054054856"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-10-05T08:11:19.087Z","publish_time":1696493479087,"_source_registry_name":"default","_cnpm_publish_time":1696493479087},"2.0.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"2.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"prettier-standard && standard && tape test/test.js","bench":"matcha test/bench.js","release":"np"},"devDependencies":{"@c4312/matcha":"^1.3.1","np":"^7.4.0","prettier-standard":"^16.4.1","standard":"^16.0.3","tape":"^4.6.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"1c56fa33180a54e0e69a3fae9d60c191e74c4174","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@2.0.0","_nodeVersion":"15.9.0","_npmVersion":"7.7.6","dist":{"shasum":"dc70f920d78db8b858535795867bf48f820633d9","size":2720,"noattachment":false,"key":"/balanced-match/-/balanced-match-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-2.0.0.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match_2.0.0_1617713601488_0.5951607210108762"},"_hasShrinkwrap":false,"publish_time":1617713601623,"_cnpm_publish_time":1617713601623},"1.0.2":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"1.0.2","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"tape test/test.js","bench":"matcha test/bench.js"},"devDependencies":{"matcha":"^0.7.0","tape":"^4.6.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"c7412e09b95d6ad97fd1e2996f6adca7626a9ae8","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@1.0.2","_nodeVersion":"15.9.0","_npmVersion":"7.7.6","dist":{"shasum":"e83e3a7e3f300b34cb9d87f615fa0cbf357690ee","size":2668,"noattachment":false,"key":"/balanced-match/-/balanced-match-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-1.0.2.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match_1.0.2_1617713469141_0.18827857838975826"},"_hasShrinkwrap":false,"publish_time":1617713469276,"_cnpm_publish_time":1617713469276},"1.0.1":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"1.0.1","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"prettier-standard && standard && tape test/test.js","bench":"matcha test/bench.js","release":"np"},"devDependencies":{"@c4312/matcha":"^1.3.1","np":"^7.4.0","prettier-standard":"^16.4.1","standard":"^16.0.3","tape":"^4.6.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"91e65ccc2a89ae0d81bb57e287131011f41a20db","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@1.0.1","_nodeVersion":"15.9.0","_npmVersion":"7.7.6","dist":{"shasum":"4f46cf3183a02a6a25875cf9a4240c15291cf464","size":2720,"noattachment":false,"key":"/balanced-match/-/balanced-match-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-1.0.1.tgz"},"_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"directories":{},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match_1.0.1_1617694895808_0.352537932704025"},"_hasShrinkwrap":false,"publish_time":1617694895956,"_cnpm_publish_time":1617694895956,"deprecated":"this package has been deprecated"},"1.0.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"1.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test","bench":"make bench"},"dependencies":{},"devDependencies":{"matcha":"^0.7.0","tape":"^4.6.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"d701a549a7653a874eebce7eca25d3577dc868ac","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@1.0.0","_shasum":"89b4d199ab2bee49de164ea02b89ce462d71b767","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.8.0","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"89b4d199ab2bee49de164ea02b89ce462d71b767","size":2566,"noattachment":false,"key":"/balanced-match/-/balanced-match-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-1.0.0.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/balanced-match-1.0.0.tgz_1497251909645_0.8755026108119637"},"directories":{},"publish_time":1497251910595,"_hasShrinkwrap":false,"_cnpm_publish_time":1497251910595},"0.4.2":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.4.2","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"^4.6.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"57c2ea29d89a2844ae3bdcc637c6e2cbb73725e2","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.4.2","_shasum":"cb3f3e3c732dc0f01ee70b403f302e61d7709838","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"cb3f3e3c732dc0f01ee70b403f302e61d7709838","size":2550,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.4.2.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/balanced-match-0.4.2.tgz_1468834991581_0.6590619895141572"},"directories":{},"publish_time":1468834992562,"_cnpm_publish_time":1468834992562,"_hasShrinkwrap":false},"0.4.1":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.4.1","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~4.5.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"7004b289baaaab6a832f4901735e29d37cc2a863","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.4.1","_shasum":"19053e2e0748eadb379da6c09d455cf5e1039335","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.0.0","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"19053e2e0748eadb379da6c09d455cf5e1039335","size":2549,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.4.1.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/balanced-match-0.4.1.tgz_1462129663650_0.39764496590942144"},"directories":{},"publish_time":1462129666040,"_cnpm_publish_time":1462129666040,"_hasShrinkwrap":false},"0.4.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.4.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~4.5.0"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"d23ba945af2e80d035dde2a9d7e4ec62efbd440b","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.4.0","_shasum":"84818b70e91d9ac8b4d77df20e9239e80c025089","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.4.1","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"84818b70e91d9ac8b4d77df20e9239e80c025089","size":3061,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.4.0.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/balanced-match-0.4.0.tgz_1460018817576_0.08597791171632707"},"directories":{},"publish_time":1460018819982,"_cnpm_publish_time":1460018819982,"_hasShrinkwrap":false},"0.3.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.3.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~4.2.2"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"a7114b0986554787e90b7ac595a043ca75ea77e5","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.3.0","_shasum":"a91cdd1ebef1a86659e70ff4def01625fc2d6756","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"a91cdd1ebef1a86659e70ff4def01625fc2d6756","size":2895,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.3.0.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1448714247893,"_cnpm_publish_time":1448714247893,"_hasShrinkwrap":false},"0.2.1":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.2.1","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~1.1.1"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"d743dd31d7376e0fcf99392a4be7227f2e99bf5d","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.2.1","_shasum":"7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"dist":{"shasum":"7bc658b4bed61eee424ad74f75f5c3e2c4df3cc7","size":2751,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.2.1.tgz"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1445519638153,"_cnpm_publish_time":1445519638153,"_hasShrinkwrap":false},"0.2.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.2.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~1.1.1"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"gitHead":"ba40ed78e7114a4a67c51da768a100184dead39c","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.2.0","_shasum":"38f6730c03aab6d5edbb52bd934885e756d71674","_from":".","_npmVersion":"2.1.8","_nodeVersion":"0.10.32","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"dist":{"shasum":"38f6730c03aab6d5edbb52bd934885e756d71674","size":2734,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.2.0.tgz"},"directories":{},"publish_time":1417341001532,"_cnpm_publish_time":1417341001532,"_hasShrinkwrap":false},"0.1.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.1.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"make test"},"dependencies":{},"devDependencies":{"tape":"~1.1.1"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.1.0","dist":{"shasum":"b504bd05869b39259dd0c5efc35d843176dccc4a","size":2631,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1398343498954,"_cnpm_publish_time":1398343498954,"_hasShrinkwrap":false},"0.0.1":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.0.1","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"~1.1.1"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","testling":{"files":"test/*.js","browsers":["ie/8..latest","firefox/20..latest","firefox/nightly","chrome/25..latest","chrome/canary","opera/12..latest","opera/next","safari/5.1..latest","ipad/6.0..latest","iphone/6.0..latest","android-browser/4.2..latest"]},"readmeFilename":"README.md","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.0.1","dist":{"shasum":"2c408589c3288fc8a152c535ed853f77763899ae","size":2344,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1389175925995,"_cnpm_publish_time":1389175925995,"_hasShrinkwrap":false},"0.0.0":{"name":"balanced-match","description":"Match balanced character pairs, like \"{\" and \"}\"","version":"0.0.0","repository":{"type":"git","url":"git://github.com/juliangruber/balanced-match.git"},"homepage":"https://github.com/juliangruber/balanced-match","main":"index.js","scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"~1.1.1"},"keywords":["match","regexp","test","balanced","parse"],"author":{"name":"Julian Gruber","email":"mail@juliangruber.com","url":"http://juliangruber.com"},"license":"MIT","readmeFilename":"README.md","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"_id":"balanced-match@0.0.0","dist":{"shasum":"86efc32ae583496c1c1fbb51cd648de0363ebb03","size":2022,"noattachment":false,"key":"/balanced-match/-/balanced-match-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/balanced-match/download/balanced-match-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"juliangruber","email":"julian@juliangruber.com"},"maintainers":[{"name":"juliangruber","email":"julian@juliangruber.com"}],"directories":{},"publish_time":1381667163806,"_cnpm_publish_time":1381667163806,"_hasShrinkwrap":false}},"readme":"# balanced-match\n\nMatch balanced string pairs, like `{` and `}` or `<b>` and\n`</b>`. Supports regular expressions as well!\n\n## Example\n\nGet the first matching pair of braces:\n\n```js\nimport { balanced } from 'balanced-match'\n\nconsole.log(balanced('{', '}', 'pre{in{nested}}post'))\nconsole.log(balanced('{', '}', 'pre{first}between{second}post'))\nconsole.log(\n  balanced(/\\s+\\{\\s+/, /\\s+\\}\\s+/, 'pre  {   in{nest}   }  post'),\n)\n```\n\nThe matches are:\n\n```bash\n$ node example.js\n{ start: 3, end: 14, pre: 'pre', body: 'in{nested}', post: 'post' }\n{ start: 3,\n  end: 9,\n  pre: 'pre',\n  body: 'first',\n  post: 'between{second}post' }\n{ start: 3, end: 17, pre: 'pre', body: 'in{nest}', post: 'post' }\n```\n\n## API\n\n### const m = balanced(a, b, str)\n\nFor the first non-nested matching pair of `a` and `b` in `str`, return an\nobject with those keys:\n\n- **start** the index of the first match of `a`\n- **end** the index of the matching `b`\n- **pre** the preamble, `a` and `b` not included\n- **body** the match, `a` and `b` not included\n- **post** the postscript, `a` and `b` not included\n\nIf there's no match, `undefined` will be returned.\n\nIf the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `['{', 'a', '']` and `{a}}` will match `['', 'a', '}']`.\n\n### const r = balanced.range(a, b, str)\n\nFor the first non-nested matching pair of `a` and `b` in `str`, return an\narray with indexes: `[ <a index>, <b index> ]`.\n\nIf there's no match, `undefined` will be returned.\n\nIf the `str` contains more `a` than `b` / there are unmatched pairs, the first match that was closed will be used. For example, `{{a}` will match `[ 1, 3 ]` and `{a}}` will match `[0, 2]`.\n","_attachments":{},"homepage":"https://github.com/juliangruber/balanced-match#readme","bugs":{"url":"https://github.com/juliangruber/balanced-match/issues"},"license":"MIT"}