{"_id":"@mighty-justice/smart-bool","_rev":"31-1acc89857d6ad410ef3b75a9cd122b3a","name":"@mighty-justice/smart-bool","dist-tags":{"bundle-size-test":"1.0.1","latest":"2.0.2"},"versions":{"0.1.0":{"name":"@mighty-justice/smart-bool","version":"0.1.0","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Robert Kuykendall","email":"robert@mighty.com"},"license":"MIT","_id":"@mighty-justice/smart-bool@0.1.0","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"b4c91ad134021e263941d25154732cb548cdfa86","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-0.1.0.tgz","fileCount":7,"integrity":"sha512-uJ9vnplyTeZLeTTBZQTgpQmcjzjwISeWmkSlAVSadPI6x++la1DPU0pxZGpXiUMoOHYX+60E+NQMTprR61S3/A==","signatures":[{"sig":"MEUCIQDYLNAVXVGKjvVhzHwvpj+HsGc77Mv58XozL/I2UqspvQIgUK1GvmKxQDY2sXE3oZA/BIo1aaWgspxGVOK+4NgIBOo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72692,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG7NyCRA9TVsSAnZWagAAT24P/iJlstZCvCgR2Iq7asES\n+Pee33hS205oLKLmCqHhH48El4ctEjH/XUtt/f7g3irWM5uAU8K4WAROIOVh\nAMpAH9k50efdMcn35dApw31l89mdZGGAJUdZ/YonMzicX91/XwAaU5GW4UNh\nMTix687Tx8EQ3sCYW0xXsIh4J54A3MaW/vcVBpcXo4hmPCdWvWvQ2XGI3Ubn\nzYq0JItIHPAnCWS8XBZlEv+9U9VAQdKHypqbsJ4IFoKXL8/lZo11sdWl4AzD\nx66bMNZQiiAk5M7SzmieEJ9vtu7PmnBIW8T+BabZ5cXdP0r7xqVH7xucvVRf\ngGkJDxjGQ6ouc88LrMYw8vZOS3H6H7xchOrWamuyu6n3Cw+z825nyhN07Tw+\nd8EUrPqBZym+lNZE8m/H9GkoB7ClSK+RCAxUL0JdJUdY9PthHYJBnxIgqddZ\nubczbpaSzePNakaMay1ckz9y398ShsxypK4tUCIQEVJiifDva2S8ZdYxHAl+\n96hFO97wz+Itj1nb0dzhvzRqNmQOc0vK3sU2VCMHUadQVY5luS2iQ0UTH526\njgDvalTrq0X8dNz292jOi8FoX+eSSOG+UdBQ6IErD57CJ4+eWYzk8RzI7Nxv\n8LEz2ndPPEio8yYzSOXq9VhDjfZW+lOsjsae6uiUHOQLZSq+B0rsQyWGbjyx\nmed6\r\n=3u6j\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"moduleFileExtensions":["js","jsx","ts","tsx"],"setupTestFrameworkScriptFile":"./test/setup.js"},"main":"dist/SmartBool.cjs.js","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","gitHead":"cebec97907692a6bc282d53808c80f2715d1c4e0","scripts":{"dev":"rollup -c -w","lint":"tslint src/*.tsx?","test":"jest test/*.js","build":"rollup -c","clean":"rm -r dist/*","deploy":"gh-pages -d _book","prebuild":"npm run lint","predeploy":"npm run build && npm run docs:build","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","test:watch":"npm run test/*.js -- -w","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"_npmVersion":"6.2.0","description":"Eliminate your single-line boolean setting methods","directories":{},"resolutions":{"babel-core":"7.0.0-bridge.0"},"_nodeVersion":"10.8.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^23.6.0","mobx":"^5.8.0","rollup":"^0.68.1","tslint":"^5.11.0","gh-pages":"^2.0.1","coveralls":"^3.0.2","typescript":"^3.2.2","@babel/core":"^7.2.0","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.0.0","@babel/preset-env":"^7.0.0","regenerator-runtime":"^0.13.1","rollup-plugin-babel":"^4.0.3","source-map-explorer":"^1.6.0","jest-environment-jsdom":"^23.4.0","rollup-plugin-commonjs":"^9.2.0","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.1.0","class-autobind-decorator":"^3.0.1","gitbook-plugin-search-plus":"^1.0.4-alpha-3","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-proposal-decorators":"^7.2.2","@babel/plugin-proposal-class-properties":"^7.2.1","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":">=5.8"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_0.1.0_1545319281671_0.3335006455072369","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@mighty-justice/smart-bool","version":"0.2.0","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Robert Kuykendall","email":"robert@mighty.com"},"license":"MIT","_id":"@mighty-justice/smart-bool@0.2.0","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"bf6b444168b43c1ac53f39bdc105b079f0e32139","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-0.2.0.tgz","fileCount":13,"integrity":"sha512-3gGzcAtdqvpU1XwI0q8foBOhPdm8jCV+BPuhZ6PV/mnusjAGCk0QXpZpa3KhKn7/0haSjWPHRUATw5U6LQq1Nw==","signatures":[{"sig":"MEUCIQDOgUG0lekleaPsjtqJKNFhCys8A0OmRXcmwaciWWpj0AIgVOjrLSxppDK6jNXLiPBqcBuF4tdFffMchIO/aU5R/pk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73448,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG+jwCRA9TVsSAnZWagAAlu0P/0o5fG27AkZU6wy2v7F2\nr+sjLVs4kAUzuRa46oqvpYFGIGt5T5EGrhpIzEQ2DPAAakDaenFx2nRM90r7\nN6RfWMST7uMuiUO19wLhNIaKj5c9auIqN+uIAiDDNTCVrerKZLUxqLpW35Gc\nvG8jZgyBSMvHKrILxMo6eZFaFpDGq7eUE6/4dXU87T9cOrJTN8VZ+j0meSQ/\nmq7aMEe/LDvFa0eMaTSIB2KyzB6emsvC0Gt0hYXfyNFOinxCvcDesTccZM56\nkif+VF9Fq8VKnMxl94+fqWP525L/uJFf/Mq7QnEY3eQRTVASYxogeynB96rx\nZt9Cb3z/RSlacfURtrK8slqdq0qrlrkFhRmR9AvxjIH9qj/EZfIhlBKAhG92\noIce+PJobsUXP75uVCldkTOQaSVeON6yOZB7vLT6iH1jmmiU+/izo+fJ9hFD\nwaxNZdoOdiHJD73kDUMqFMyPYRhi3z6iUv0lwSvCIOHDglSdPPTlMcWsf9qI\nNQROzcP0IJQF8qACFhSxcZICA3Xjf8icPHhsZPwYCjD5qrM+dH0CD/at7Zwp\nnMFjy3fD3nrdkazYlp273C4y42y0m0YJUzFUhKTKZcpfwlW2/Jux87Daq4Ov\ni8bIexchZnhsV1E4N/0ADr9EA/jBLiPTcm+ULPzaWe/MC9kVk6OtiHp7g2ej\n6o4T\r\n=zolf\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"],"setupTestFrameworkScriptFile":"./test/setup.js"},"main":"dist/SmartBool.cjs.js","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint src/*.tsx?","test":"jest","build":"npm run build:types && npm run build:js","clean":"rm -r dist/*","deploy":"gh-pages -d _book","release":"np","build:js":"rollup -c","prebuild":"npm run lint","predeploy":"npm run build && npm run docs:build","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","test:watch":"npm run test/*.js -- -w","build:types":"yarn tsc --emitDeclarationOnly","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{"gitbook-plugin-search-plus":"^1.0.4-alpha-3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^3.1.0","jest":"^23.6.0","mobx":"^5.8.0","rollup":"^0.68.1","tslint":"^5.11.0","gh-pages":"^2.0.1","coveralls":"^3.0.2","typescript":"^3.2.2","@babel/core":"^7.2.0","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.2.3","@babel/preset-env":"^7.2.3","regenerator-runtime":"^0.13.1","rollup-plugin-babel":"^4.0.3","source-map-explorer":"^1.6.0","jest-environment-jsdom":"^23.4.0","rollup-plugin-commonjs":"^9.2.0","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.1.0","class-autobind-decorator":"^3.0.1","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-proposal-decorators":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":">=5.8"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_0.2.0_1545332976154_0.22081541972271324","host":"s3://npm-registry-packages"}},"0.3.0":{"name":"@mighty-justice/smart-bool","version":"0.3.0","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Robert Kuykendall","email":"robert@mighty.com"},"license":"MIT","_id":"@mighty-justice/smart-bool@0.3.0","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"1ec0ed04fd10a7a067d59e2c28e972b72b169af7","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-0.3.0.tgz","fileCount":13,"integrity":"sha512-/FPFww0Mc2CzZwUGa5WlLvhWwTlYemMASrnWPs31MltiXgokejkZfzeeP7knmL0R35/QlAvNRMZSOW8fXsPnLQ==","signatures":[{"sig":"MEUCIQDCdEHVhMJHZW0jPvm7nFrF/9CLK6OiWEP4JkUvoZcNAQIgWzKODacXKV65pKyjlAycFcHjPDhIWvU1SdZcsawOpnw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":73292,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcG/HXCRA9TVsSAnZWagAAcAYP/R3vPlRGAprMaKYuV65f\ndgAcefsjRnKocjFisJ0wIZ1hArDTWGVkIiZBCTEG0hMIMsq43OFI5wfaQZGW\nIYM0AYZ63hX52u9mk3WVK0ZAM/YCDdotHXEyAzce44Rae7x2IjLVNPitzSe1\nebvytFcawckO+axCqDcqEaMvam4ch7UOB9vjrTR1aLOAyUYwE20z2R+hyjvm\nCsIDiYP0zgw76lW3eJziuVzfmFvrG1srEpt5ZmSrG/YicWwQ6rTutzYI0reI\ndxKnh4IW1yPz63nrCnLZPrLCDEjvnvYDX9YPvYeykXezr9fDlGJFbrSGCNkM\nX9zuSnl6TOTvzXYtaw9k45gWztgdVoZ6XKKIny5PcTecmXMEtVpqT6a0Wzin\nhPXjoi8s/7bbRyVoqZiorRLgf6Idhe7H+/WqPMAQbeDun4rKW3hYdKYjayzh\nustTB6GM8k4mP1ciGqHPzBDsQ1ZB7NLalFz6uPX7q4OBxW/FNgaG/4+TnSsx\nSpwy4rfJ5ede0titWwNzDqy/8cmo08dYnABvAXJsiKJNsRhP0GQpLu5R3fW9\nMIIMHltg0MRB0CbiUGlISXKihZbUd6hbc4yckLD0WrQGloIbX1d2PUvn2x5l\nys7boGUu9TKt/rOesYe3Z+ycja3c0fECg85kr/FULtZ6cHx9eF0nldhm4bbe\nqSp5\r\n=gyuU\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"],"setupTestFrameworkScriptFile":"./test/setup.js"},"main":"dist/SmartBool.cjs.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint src/*.tsx?","test":"jest","build":"npm run build:types && npm run build:js","clean":"rm -r dist/*","deploy":"gh-pages -d _book","release":"np","build:js":"rollup -c","prebuild":"npm run lint","predeploy":"npm run build && npm run docs:build","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","test:watch":"npm run test/*.js -- -w","build:types":"yarn tsc --emitDeclarationOnly","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^3.1.0","jest":"^23.6.0","mobx":"^5.8.0","rollup":"^0.68.1","tslint":"^5.11.0","gh-pages":"^2.0.1","coveralls":"^3.0.2","typescript":"^3.2.2","@babel/core":"^7.2.0","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.2.3","@babel/preset-env":"^7.2.3","regenerator-runtime":"^0.13.1","rollup-plugin-babel":"^4.0.3","source-map-explorer":"^1.6.0","jest-environment-jsdom":"^23.4.0","rollup-plugin-commonjs":"^9.2.0","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.1.0","class-autobind-decorator":"^3.0.1","gitbook-plugin-search-plus":"^1.0.4-alpha-3","rollup-plugin-node-resolve":"^4.0.0","@babel/plugin-proposal-decorators":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":">=5.8"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_0.3.0_1545335254416_0.9644591941982028","host":"s3://npm-registry-packages"}},"0.3.1":{"name":"@mighty-justice/smart-bool","version":"0.3.1","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@0.3.1","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"26cbd5dd162cb6ecb742c86a05cdad240f863428","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-0.3.1.tgz","fileCount":11,"integrity":"sha512-OMmJxOpwjnkbcl8aGeT9K2GNMUE1+iTy2bax0hcsNNr0lZ1yHngDly66x/AuRbicIG5w92B4i+ZxzRybfLy/3Q==","signatures":[{"sig":"MEUCICy8qwli+Pxr2CuetDiBWkuOIoRdIGhBejiQ/F6VK24aAiEAlL1rZHoXufj9jhKjpmRA5BPaZsIcLzpZ/xQbBqtBaW4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHThbCRA9TVsSAnZWagAAov8P/1O7PNk52PxIEgBJ7mSr\niJqOjkcmSTc5taQ+Yc33QAKiUsz0m0ZjLUsLvAL+pNMVigIo5P5srbjGAqEO\n1ekYBuKZ3jxpoae7AG8Jrzo7m5caG7G36WELMlpWSJ03B/dGKHp+RiZ1vr+m\nkzs5+Uc8cTcBLc/72nVaqUAcvO7rKeqFXXfAD3ddFYvALYnwoOrl4yvbetNM\nqyIf3H0q7d8O82vswH19L88zT3z+keHBjqlLixJB/l7QOJgsL+8vAEbQ+xph\nyuNXUiAwEU09VTIeG90G820jXy7WPEBNrqrt3T3V8vqQJKYxRYCX10tG13dQ\n18gGi2TozzMKx0lQY18YOo78YbSAs59oTjbsJkzUWsCnmusJIaQs3HL+0abz\n+d58Uw0UgUhvR/fjrDqSdOyW52W82jBxyn1uhyY2/auudpZR28rl1Vc/xyR9\n4O3lQnyMRDDJnXLWEZRxfxZS5v0kTcKJqyxYDh6sS/+5Mwg/aI6hdKOnYZ/3\n5XGHc3YH6eAjshvbdsNyASmxsBfgLk6zpR27CsdwMzv6r4VEyFkn1FiyY3iE\njFp3dv5ehnMfnJz7WEVfFyOi8/FGNcfzE/zEUlfYtHoZs2ll9ehyrHDxDKRh\nwaklsoQLqIE6sYMeXxxR9Mh2lpomFcMzwspEl6qiUzxFX66Tti/DPWxP7Sw1\nvGN8\r\n=80oO\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"],"setupTestFrameworkScriptFile":"./test/setup.js"},"main":"dist/SmartBool.cjs.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint --project .","test":"jest","build":"npm run build:types && npm run build:js","clean":"rm -r dist/*","deploy":"gh-pages -d _book","release":"np","build:js":"rollup -c","prebuild":"npm run lint","predeploy":"npm run build && npm run docs:build","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","test:watch":"npm run test/*.js -- -w","build:types":"yarn tsc --emitDeclarationOnly","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{"class-autobind-decorator":"^3.0.1","gitbook-plugin-search-plus":"^1.0.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^3.1.0","jest":"^23.6.0","mobx":"^5.8.0","rollup":"^0.68.1","tslint":"^5.11.0","gh-pages":"^2.0.1","coveralls":"^3.0.2","typescript":"^3.2.2","@babel/core":"^7.2.0","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.2.3","@babel/preset-env":"^7.2.3","regenerator-runtime":"^0.13.1","rollup-plugin-babel":"^4.0.3","source-map-explorer":"^1.6.0","jest-environment-jsdom":"^23.4.0","rollup-plugin-commonjs":"^9.2.0","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.1.0","rollup-plugin-node-resolve":"^4.0.0","@mighty-justice/tslint-config":"^0.3.0","@babel/plugin-proposal-decorators":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":">=5.8"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_0.3.1_1545418842953_0.992862696885322","host":"s3://npm-registry-packages"}},"0.3.2":{"name":"@mighty-justice/smart-bool","version":"0.3.2","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@0.3.2","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"7df667f1c3a93428fa3395d9d1dbd12542079454","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-0.3.2.tgz","fileCount":11,"integrity":"sha512-2BBsbiUul/x0KlIll67PrmFhO0ssToDsrILWLA5vSe0C+ySwNb8blV7WbLt8q+jBQtS7R12ry3LaqnfszbPL2g==","signatures":[{"sig":"MEUCIQDwmCe2x9X6DJL+a3YykM4l9gVAMGQRYeIuF3AwNjZz+gIgW7IZAvq0heYHwfeFy/RfnsPcJAgDUX6YuNZmpx66/1w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":72337,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcHTqGCRA9TVsSAnZWagAAZ1YP/A5TXIBnRskPnG464Qhe\nL56y2iPzKDUuTh5ZDidZ5Xl3829hKpD3oeeMbczpiJVLmdmbOPVz/hF+p0ii\nIEHOrpTqiDkIm2QD5i+GxlTySk4sdYv/o6FQrMY0Jww+6fojlvIgVd3a3QyR\n3GCUsPw52PNhEteP+meScYLppSI5tJOqBZzlvUypBNhZmdqGr3zDxahixBiw\nIaqY1VZSq81Ek78YSRpiBi7L/YDltFDCK1A/hVC6aO6H0FjGd/8+3crFJ8NN\n0zNvc1apHdlkJmUa9ibQwvS1kQa+jIrAUbk6YOHhOB3n8sssdGMK33HVl3EU\ntCR/2SI6aVKeWEVAShLGMO4r8stZ7RYxf8WQxirBKrkMzBxtMwDHUCpJGe8g\nIdDMmXSz/7/5kiJ+NqQGRA3rOQjAzghF3RpK8Wkoa4txCUA9AniXpYsrZhFi\nmGXDDafMeBhC3uBNEXp3toRQD7tYtWItTz+1w7u8b5kv2brbcRK6j/Vbrhir\n/E5FOYpquVtPp5S+Z5Xnk/o1y8yxZt2YsA5tRjE9nmFzPpNBddddn2dU7bHv\nMDoVA6DasSabt0GlMr740q5CJH/czDV2gH2c1gLrdej69LEfGHRW1LbQ7t6Q\n7+raQVXxnLM+9fvK0nNAxp/erv8jMs1CtWAQ6F9m+iQbYIuH5UZKFWZKFhKC\nzHlU\r\n=RjKD\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"],"setupTestFrameworkScriptFile":"./test/setup.js"},"main":"dist/SmartBool.cjs.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint --project .","test":"jest","build":"npm run build:types && npm run build:js","clean":"rm -r dist/*","deploy":"gh-pages -d _book","release":"np","build:js":"rollup -c","prebuild":"npm run lint","predeploy":"npm run build && npm run docs:build","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","test:watch":"npm run test/*.js -- -w","build:types":"yarn tsc --emitDeclarationOnly","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{"class-autobind-decorator":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^3.1.0","jest":"^23.6.0","mobx":"^5.8.0","rollup":"^0.68.1","tslint":"^5.11.0","gh-pages":"^2.0.1","coveralls":"^3.0.2","typescript":"^3.2.2","@babel/core":"^7.2.0","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.2.3","@babel/preset-env":"^7.2.3","regenerator-runtime":"^0.13.1","rollup-plugin-babel":"^4.0.3","source-map-explorer":"^1.6.0","jest-environment-jsdom":"^23.4.0","rollup-plugin-commonjs":"^9.2.0","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.1.0","gitbook-plugin-search-plus":"^1.0.4-alpha-3","rollup-plugin-node-resolve":"^4.0.0","@mighty-justice/tslint-config":"^0.3.0","@babel/plugin-proposal-decorators":"^7.2.3","@babel/plugin-proposal-class-properties":"^7.2.3","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":">=5.8"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_0.3.2_1545419397331_0.5915893739454496","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@mighty-justice/smart-bool","version":"1.0.0","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@1.0.0","maintainers":[{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"},{"name":"ronaldzuniga","email":"ronald@ronaldzuniga.com"},{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"12e74e770d0f11b466b4bf1f0ce1cb1b6b8b5280","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-1.0.0.tgz","fileCount":10,"integrity":"sha512-vWvB6vEvmPdFg4Qrv2lALFR0Bz/EG1X604xRVsyQ2oYUV7twwkmA24UQsfrhPXGrs0KWTJJo2GOlgCLONbk8kg==","signatures":[{"sig":"MEUCIEm7ZkfNVye5OrGr8OuOeZfYo5r9r+A703eq7hYUXiFbAiEA1D0WchcmFDjx+8wS9QdEfUr8GH645FEUG+0zuHQDQMs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":66405,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcrRCrCRA9TVsSAnZWagAAyigP/jayhrAvTQstbKnocEZq\nRbkpRbtsdbTJwnAd24ObcA+9q1Ja41yKAOs6dNXVySpGQAgmELhITw8ZNYHh\nr9Ap+mZOQGkOU7a0z8PO+ZvBIMvJYJGsC4GZPUstvmNOIfeea2h+oe+qQ3EM\n5+BTrnTZdEny7l4McwOw+IIXkksJY5W0Ks5PboLx8FGeG9jzW5OizhmUdn7x\nKCsjLiZe9oY60LeJFzdtX41XLjTRykT+tEMvnCOIoA1TG7iJMbABrtzLHPYm\nReHWyx308EiC8u1NYI8hNCQF2sT+9/bDOItKYZZsQV1eW9NNYlzzWMDW/0sL\nXv0SyGBUdIQRHdayTDTopsXee4QYaoDYm++BF1qjaQv1nXhBM400kREUaeok\nQsLmiGlT9nfEZU6G7VbG0TIrchGEY4+9JOlL44vDl14XD2JA6tvLLKdxgWRk\nGpts1n79ommGxn230ROch5BhM9DACPuNUKbsUxCCjJyX+dLg67eIPiehjh/i\nVbtyeGGqAyN/QxRX0GhYjexR7mg29PjUxtt7HKc/NLTx5Pwan250oo05pX6N\n+51mGfM+vjBtjJ+LFp8J+QSLIFXospnLisYzrTGcVa99OhqAzbu2odFgY3pB\nLbLG04b5QaaoawV6CM3vdrehPiK3fMmhcmBC3TUnz3vm/GCc6uwobJSHqYrz\nMM/f\r\n=alqk\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"setupFilesAfterEnv":["./test/setup.js"],"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"]},"main":"dist/SmartBool.cjs.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint --project .","test":"jest","build":"npm run build:clean && npm run build:types && npm run build:js","deploy":"np","version":"npm run build && git add dist","build:js":"rollup -c","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","preversion":"npm run lint","test:watch":"npm run test/*.js -- -w","build:clean":"rm -r dist/* || true","build:types":"tsc --emitDeclarationOnly","docs:deploy":"gh-pages -d _book","postpublish":"npm run docs:build && npm run docs:deploy","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{"class-autobind-decorator":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^4.0.2","jest":"^24.7.1","mobx":"^5.9.4","rollup":"^1.9.0","tslint":"^5.15.0","gh-pages":"^2.0.1","coveralls":"^3.0.3","typescript":"^3.4.2","@babel/core":"^7.4.3","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.4.3","@babel/preset-env":"^7.4.3","regenerator-runtime":"^0.13.2","rollup-plugin-babel":"^4.3.2","source-map-explorer":"^1.8.0","jest-environment-jsdom":"^24.7.1","rollup-plugin-commonjs":"^9.3.4","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.3.3","gitbook-plugin-search-plus":"^1.0.4-alpha-3","rollup-plugin-node-resolve":"^4.2.1","@mighty-justice/tslint-config":"^0.3.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_1.0.0_1554845866191_0.5281077961900218","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@mighty-justice/smart-bool","version":"1.0.1","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@1.0.1","maintainers":[{"name":"ekatsuta","email":"emi@mighty.com"},{"name":"karen-ka","email":"karen925@gmail.com"},{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"},{"name":"ronaldzuniga","email":"ronald@ronaldzuniga.com"},{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"},{"name":"sha-4","email":"npmthrowaway@gmail.com"},{"name":"will_saffran","email":"willh.saffran@gmail.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"9a7725723fed08f86781dcf86e2059ae30ad9b9e","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-1.0.1.tgz","fileCount":10,"integrity":"sha512-9gL1VBWLwkDOeHgAqwQxZcSRa6Rq6gRZUp4Gel2fs8j821KxkeaP/PZ1boRKB2DUAx/7DRq29BG/PCLVZXQe/w==","signatures":[{"sig":"MEQCIEW7kXIfoO3Y61llo1YV4iTMJFP0mGjFkNyFcc3cGW5qAiAhqJpbIvmT5t5DqUFWLrdQFr3yjKPuaoU2RmvqB36w0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":39249,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEk2iCRA9TVsSAnZWagAAPsoP/jXwG1RQ6Lm2AtLDCuxz\nzRZ/PQe6TDXgqqk0aYuIxUdcG8vt7S7P3xdbM6qzylqU9XSZtvrXDDZ+gapN\nVTs/uM7AAyNmzv77o82TaBiG/zIwzPl7ucES/mq7gdpOX4WtjaLIF7GnY4Js\nx5HZe3o74QY9lDhGhJCpW3ccQ+TgzckW9NF2R7VWncEboDO9YKzcgrzuKsBU\n+X8vv4FwWnDBubxFCcSdYYmVHoKtKdRgTq3jEOn6bcNS77E+n5vSdi6JcdCR\nsBWL2bmaD/qv9vQTblxsP67oxQC5gIGt0uzsrdwBQ0dc6C2A3Fb54N83Zux9\nVB/3P06ZJ4/6Xj0zxwylX7kSxJN2zhiaGHSz5FfPXgVwvcQ0hJ8TTpmBUjZD\nkcReAMYjE+dul3EYGdf6H5cucPSgfpFU//QJ+NtBTveQrLenJu3Aq1VC8FdP\nfDSExI5D0ixERfT3oK4iSgB3S0FkOA4fUVDwowcl+hn6Rlj/qz4PANwjCqn4\n8FPXrP2A8SXWlOrjFDSrkCxajONVlrt7ZaJ+3P87e8jGfEEoYatIya6Lv+MW\n09PoqJXOr+P2KsshaAgIjFA4shyyfbx8lllaxM7Y1nN1SRbXH445yXGmSLpP\nijoGKVfpHiF8jUbXvnBf+enfKpCyiyBMIGHoaLDCOp5oc6ZJFijOyo/4cNsu\nfz/Y\r\n=OQ2b\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost/","transform":{"^.+\\.(js|jsx|ts|tsx)$":"babel-jest"},"setupFilesAfterEnv":["./test/setup.js"],"moduleFileExtensions":["js","jsx","ts","tsx"],"testPathIgnorePatterns":["/_book/","/node_modules/"]},"main":"dist/SmartBool.cjs.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","readme":"# SmartBool\n\n[![npm Version](https://img.shields.io/npm/v/@mighty-justice/smart-bool.svg)](https://www.npmjs.com/package/@mighty-justice/smart-bool) [![Build Status](https://travis-ci.org/mighty-justice/smart-bool.svg?branch=master)](https://travis-ci.org/mighty-justice/smart-bool) [![Coverage Status](https://coveralls.io/repos/github/mighty-justice/smart-bool/badge.svg?branch=master)](https://coveralls.io/github/mighty-justice/smart-bool?branch=master)\n\n## Installation\n#### dependencies\n```\n\"mobx\": \">=5.8\"\n```\n#### npm\n`npm install --save-dev @mighty-justice/smart-bool`\n\n#### yarn\n`yarn add --dev @mighty-justice/smart-bool`\n\n### Helpers\n```ts\nget isTrue // Value\nset(value: boolean) // Sets new value\nsetTrue() // Sets value to true\nsetFalse() // Sets value to false\ntoggle() // Toggles value\nuntil(promise) // Waits for promise, then sets value to true and returns promise\nsaving(label: string) // Returns label is false, 'Saving...' if true. Useful for buttons.\n```\n\n### Usage\n\n```jsx\nimport React, { Component } from 'react';\nimport axios from 'axios';\nimport { observer } from 'mobx-react';\nimport SmartBool from '@mighty-justice/smart-bool';\n\n@observer\nclass Autofac extends Component<{}> {\n  private isLoading = SmartBool(true);\n  private isMilkPizzled = SmartBool(); // Defaults to false\n\n  constructor (props: {}) {\n    super(props);\n    this.waitForTrain();\n  }\n\n  private async waitForTrain () {\n    //  this.isLoading.isTrue == true;\n    //  this.isMilkPizzled.isTrue == false;\n\n    // Sets bool to true until a promise returns.\n    const request = axios.get('/train/');\n    // this.isLoading.isTrue == true;\n    const response = await this.isLoading.until(request);\n    // this.isLoading.isTrue == false;\n\n    // Simple setter\n    this.isMilkPizzled.set(true);\n\n    // Helper method useful for JSX props\n    this.isMilkPizzled.setTrue();\n  }\n\n  public render () {\n    return (\n      <div>\n        <p>Waiting for train: {this.isLoading.isTrue}</p>\n        <p>Claiming is pizzled: {this.isMilkPizzled.isTrue}</p>\n      </div>\n    )\n  }\n}\n```\n","browser":"dist/SmartBool.umd.js","scripts":{"dev":"rollup -c -w","lint":"tslint --project .","test":"jest","build":"npm run build:clean && npm run build:types && npm run build:js","deploy":"np","version":"npm run build && git add dist","build:js":"rollup -c","docs:build":"npm run docs:prepare && gitbook build","docs:watch":"npm run docs:prepare && gitbook serve","preversion":"npm run lint","test:watch":"npm run test/*.js -- -w","build:clean":"rm -r dist/* || true","build:types":"tsc --emitDeclarationOnly","docs:deploy":"gh-pages -d _book","postpublish":"npm run docs:build && npm run docs:deploy","docs:prepare":"gitbook install","view-source-map":"source-map-explorer --html dist/index.js dist/index.map > source.html && open source.html"},"_npmUser":{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","resolutions":{"babel-core":"7.0.0-bridge.0"},"dependencies":{"class-autobind-decorator":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"np":"^4.0.2","jest":"^24.7.1","mobx":"^5.9.4","rollup":"^1.9.0","tslint":"^5.15.0","gh-pages":"^2.0.1","coveralls":"^3.0.3","typescript":"^3.4.2","@babel/core":"^7.4.3","gitbook-cli":"^2.3.2","babelrc-rollup":"^3.0.0","@babel/polyfill":"^7.4.3","@babel/preset-env":"^7.4.3","regenerator-runtime":"^0.13.2","rollup-plugin-babel":"^4.3.2","source-map-explorer":"^1.8.0","jest-environment-jsdom":"^24.7.1","rollup-plugin-commonjs":"^9.3.4","gitbook-plugin-anchorjs":"^2.1.0","@babel/preset-typescript":"^7.3.3","gitbook-plugin-search-plus":"^1.0.4-alpha-3","rollup-plugin-node-resolve":"^4.2.1","@mighty-justice/tslint-config":"^0.3.0","@babel/plugin-proposal-decorators":"^7.4.0","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/plugin-proposal-export-default-from":"^7.2.0"},"peerDependencies":{"mobx":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_1.0.1_1595035041703_0.6895615329287603","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@mighty-justice/smart-bool","version":"2.0.0","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@2.0.0","maintainers":[{"name":"will_saffran","email":"willh.saffran@gmail.com"},{"name":"ekatsuta","email":"emi@mighty.com"},{"name":"karen-ka","email":"karen925@gmail.com"},{"name":"sha-4","email":"npmthrowaway@gmail.com"},{"name":"ronaldzuniga","email":"ronald@ronaldzuniga.com"},{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"},{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"582bd28310e5e3f9eb1953c75ec45c23933a0ea7","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-2.0.0.tgz","fileCount":14,"integrity":"sha512-3XhkIsDU4z8rZCKFHfqoQ4wfr2LQ8xvnj8bM1J9TILVGb94V8ydTKfDGuhPvR0wsX40eOAOrwhikGYASCfdiDw==","signatures":[{"sig":"MEQCIFekMsFC8C/LP4p3iMMah9tMfqmwIsVDl9GiVmYDe4QCAiBBYeLDCvCggdgJz0ZsvmqHuBvk494s0clDrQ5eewx7UQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfnEq0CRA9TVsSAnZWagAAABMQAIq3Kj246v6o1uTcxdV/\no1BUnqdHXSrKJXyEyxlcyWa5jpuI1g+1XImC3g5bWoaVgenpoibeIFR0hzZJ\nPPgdM2M3aLxPce7g/Cxpd4xDht+jpMRK+M4Hc/kk+44f6xIFtczPLjrUkuaZ\nUuwwaS/M3ElBIN6h4+fEUXOtxIJ/hFeuTMeyQTV9fTgpAt97BmNS755DOurK\n56r+jbMH97DeXtGZN0v8GbcfSz2ZWR7khUoQr6I3jgemvNGG14ZFayYZ2J82\nnMIpEJdRx4sqd7CQa5O1QuBQK8T4lu5Ynmy/b6jPxpOgQIMZ5z3pMqIACmFA\nwY1VMrZtdgDfqrQfta55CjWmYWap1XiMUZKz8WODSMx15hlbzHnWx1eeklO+\nw2acnYu1CZho05+7nExR2KL/H6dkI49dMue6+L7HeIXh/jnPG+YNN9z4+aND\ndZKeaECz9Im+HWMB9FKqxOmPkeNG5xfd9oDt92xX84waZy8w4S35te/yWXPx\nQk641kGrahoYyfPCPqngtc1r1rkeOhMgZvyNVySEjc91x8JIyAKP/RjU8AEN\nKn8VYBl3C4XBSCLQt6u25XXi/91qLDrGhnzu9FFymIx4q4xqGYFIHrabUaKb\ncpd1c7JeAwy3PN5WlmViMP5/7EcuMz3+X2GQZymBqAyTBvtNYuovXW8EiBJy\nVgxU\r\n=R/lr\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"collectCoverage":true,"setupFilesAfterEnv":["./test/setup.ts"],"collectCoverageFrom":["src/**/*.tsx","src/**/*.ts"]},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","scripts":{"dev":"rollup -c -w","lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","deploy":"np","format":"tsdx lint --fix","analyze":"source-map-explorer 'dist/*.js'","prepare":"tsdx build","version":"npm run build && git add dist","preversion":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"prettier":{"semi":true,"proseWrap":"always","printWidth":120,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","browserslist":["> 5%"],"dependencies":{"class-autobind-decorator":"^3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^4","mobx":"^5","tsdx":"^0","coveralls":"^3","typescript":"^3","source-map-explorer":"^2.5.0"},"peerDependencies":{"mobx":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_2.0.0_1604078260498_0.6625056691249793","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@mighty-justice/smart-bool","version":"2.0.1","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@2.0.1","maintainers":[{"name":"will_saffran","email":"willh.saffran@gmail.com"},{"name":"ekatsuta","email":"emi@mighty.com"},{"name":"karen-ka","email":"karen925@gmail.com"},{"name":"sha-4","email":"npmthrowaway@gmail.com"},{"name":"ronaldzuniga","email":"ronald@ronaldzuniga.com"},{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"},{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"961693b4830d0a6c549985074c3a75ed84557555","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-2.0.1.tgz","fileCount":14,"integrity":"sha512-tbi42l9dSt4k9eovcLairiNP7wy7O3vp0p270oj7u6Ux5r0leEk3+SgAD/8Rok8e8GlHVwrjvCORV+efAWZk9g==","signatures":[{"sig":"MEUCIQDplbIUIOpegl6CcGJ4eyO6csj2ZWj8g/1qjR8wUr9cwgIgBKm8jaShNYTleXfBJL7WN6XvLwVjA26SJb1ZZkCA8ik=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":205461,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoXSjCRA9TVsSAnZWagAA7yYP/izfQbevpP0ar16ZlCpY\nj8fWjg4WIQCS40NX1Cw4r/592crmTjLCtEdkm9v/bP+GRJWQufBU6S3MIBvu\nqbkJcs1VJRCyprxvvzJZwut5/SJ3gtBNelbTRBHzlp0MlIrd0Tv54eRdB3y1\n9mfzNhZW3Ieog9L8xuOtKD29vz018Hj4N1Zrdkua+Edpjn3GECKRBBFTEafW\nFu1ACZpvIJ2QzgEC/V6Mpa2hiPiZcMR3Upa9mekriPLmfw0LirSP9DTpV+fQ\nQJYOm2j87gAn3cmk+lHtf1CB7QwbWkyLXRpZF3J27Hr56+6C+SDoA/8+gnhp\ntqL2dk2gI6872VSJNFbgMP4yBULvp8WbnQ2o/RYw8D2vEzO3hTD966WlUa4Q\n0Bp+pUdQn+ZcpSIL4ssLtQAYFSxeXdDujVrjdV97lT9twUQJcU3No59Rq39E\nnECIDVUoPQCubCb6Q9QFWtl2CgIz4ehuvyHJ9WvgwiQ5XPJXLzlJLSLoFMAt\n7vzDJpMHuR4AaMgZk3rNewMonNR+xzZxYh8x+X9RArkHzgFlu/WgQN/oCDOt\n5xat4xJCL3LIc5yY2l3i9Z32AEzzfGNAK1vlDTtOAJheY2O/SNPi1IYVUinV\n1B3Z4/tUlnGyuqs3NwKGN2r9K5AxqKuZzLHArpXuFshkmMt0Z3A35k3rgEK1\nFv58\r\n=4oJm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"collectCoverage":true,"setupFilesAfterEnv":["./test/setup.ts"],"collectCoverageFrom":["src/**/*.tsx","src/**/*.ts"]},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/SmartBool.esm.js","scripts":{"dev":"rollup -c -w","lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","deploy":"np","format":"tsdx lint --fix","analyze":"source-map-explorer 'dist/*.js'","prepare":"tsdx build","version":"npm run build && git add dist","preversion":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"prettier":{"semi":true,"proseWrap":"always","printWidth":120,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","dependencies":{"class-autobind-decorator":"^3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^4","mobx":"^5","tsdx":"^0","coveralls":"^3","typescript":"^3","source-map-explorer":"^2.5.0"},"peerDependencies":{"mobx":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_2.0.1_1604416675170_0.5991708376080014","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@mighty-justice/smart-bool","version":"2.0.2","keywords":["javascript","typescript","mobx","utils"],"author":{"name":"Mighty"},"license":"MIT","_id":"@mighty-justice/smart-bool@2.0.2","maintainers":[{"name":"will_saffran","email":"willh.saffran@gmail.com"},{"name":"ekatsuta","email":"emi@mighty.com"},{"name":"karen-ka","email":"karen925@gmail.com"},{"name":"sha-4","email":"npmthrowaway@gmail.com"},{"name":"ronaldzuniga","email":"ronald@ronaldzuniga.com"},{"name":"rpalermodrums","email":"rpalermodrums@gmail.com"},{"name":"kbouchard","email":"peckgfx@gmail.com"},{"name":"rkuykendall","email":"robert@rkuykendall.com"}],"homepage":"https://mighty-justice.github.io/smart-bool/","bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"dist":{"shasum":"b081a644ffd42c6aba24c257fe350e01e90c3905","tarball":"https://registry.npmjs.org/@mighty-justice/smart-bool/-/smart-bool-2.0.2.tgz","fileCount":14,"integrity":"sha512-7yUB1fhrXShn0pF3XpSz/CqNzIEiBNWc0RChdwSRQ5hd40ksT0Lw7gn9TDZryy1+0/oJo6RWe9Dq9ZNCVRLPnw==","signatures":[{"sig":"MEQCIE5qUERiWeJOh+1Z2XYvcGifKN1BlbSKfasDQdNBN+sEAiAtNF5v7RC0kb0E7OuoLb5+ZEMAZbDw4Yukz0VaAR6GAQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":205462,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfpAdtCRA9TVsSAnZWagAAu00P/2XR81olyASQTS7IYin1\nMTZ0DMRVPOKn+coR97miGX+Mbsp2m8qGr63dZvupcyJOiqiW58Vdl1N4BIkn\n8+3TiYE22SsH9ugcuQBan6XpGjQTPoZq4W8FavX0Xp7O/PPxYlelMu6zo/ar\nZ1BToE8815JhXI/pF+xGLe3h7TwEEp5/tuiNQD1j6IGrfCjKwmuhQQhh+RiL\n5wQEtCqa/rgZSmJKy2QaFEluuBAy5GRmE5EcJztblGthO8UD6oOxsWE2xWQP\nu7Zke2+l5KssCFN+E00ROX9r5S3NanXaBlt2BLYNihEYqF6BBN3r9xx04pPv\ndqc08msaxucZkFEq35wPFDRLJYOo+YV/sQ4jDUedY9EsRJ9mmDvRIopeidTC\n4o3Tw1S3ngTifXoZCMAZ+RYC/PH2Xuq/2mvoVwe5iDAealymJjVYVpCFZcx0\nxbcslyGojy+BOfXO8zJVMOzzE/rJla5TS6YiPoLlmoMH2+l1uRECLXKWMh5o\n32s3UZq1mXShspH4Kc4avgx2BJQ6rk4twgttCNf2RaMl98pKG1NCIgdcrPHd\nieO1n5WTIgU3pjIHMd4mk5AQlcokMIZUqG1bzO1MeDpt0YnMaTKUePV4sYJ9\ntUsG9iHlGTN3JcW3cwnTxufcY07+27xNrKNqezjpnrUTpqZL76nPfU/PbTbk\nREry\r\n=7Tq0\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"collectCoverage":true,"setupFilesAfterEnv":["./test/setup.ts"],"collectCoverageFrom":["src/**/*.tsx","src/**/*.ts"]},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/smart-bool.esm.js","scripts":{"dev":"rollup -c -w","lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","deploy":"np","format":"tsdx lint --fix","analyze":"source-map-explorer 'dist/*.js'","prepare":"tsdx build","version":"npm run build && git add dist","preversion":"npm run lint"},"typings":"dist/index.d.ts","_npmUser":{"name":"rkuykendall","email":"robert@rkuykendall.com"},"prettier":{"semi":true,"proseWrap":"always","printWidth":120,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2018\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","dependencies":{"class-autobind-decorator":"^3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"np":"^4","mobx":"^5","tsdx":"^0","coveralls":"^3","typescript":"^3","source-map-explorer":"^2.5.0"},"peerDependencies":{"mobx":"^4.0.0 || ^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/smart-bool_2.0.2_1604585324693_0.6390191964284264","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-12-20T15:21:21.485Z","modified":"2025-02-06T17:07:13.092Z","0.1.0":"2018-12-20T15:21:21.842Z","0.2.0":"2018-12-20T19:09:36.314Z","0.3.0":"2018-12-20T19:47:34.586Z","0.3.1":"2018-12-21T19:00:43.134Z","0.3.2":"2018-12-21T19:09:57.484Z","1.0.0":"2019-04-09T21:37:46.425Z","1.0.1":"2020-07-18T01:17:21.877Z","2.0.0":"2020-10-30T17:17:40.648Z","2.0.1":"2020-11-03T15:17:55.324Z","2.0.2":"2020-11-05T14:08:44.803Z"},"bugs":{"url":"https://github.com/mighty-justice/smart-bool/issues"},"author":{"name":"Mighty"},"license":"MIT","homepage":"https://mighty-justice.github.io/smart-bool/","keywords":["javascript","typescript","mobx","utils"],"repository":{"url":"git+https://github.com/mighty-justice/smart-bool.git","type":"git"},"description":"Eliminate your single-line boolean setting methods","maintainers":[{"email":"jeff@mighty.com","name":"mumuwuwu"},{"email":"aaron@mighty.com","name":"aaron-mighty"}],"readme":"# SmartBool\n\n[![npm Version](https://img.shields.io/npm/v/@mighty-justice/smart-bool.svg)](https://www.npmjs.com/package/@mighty-justice/smart-bool) [![Build Status](https://travis-ci.org/mighty-justice/smart-bool.svg?branch=master)](https://travis-ci.org/mighty-justice/smart-bool) [![Coverage Status](https://coveralls.io/repos/github/mighty-justice/smart-bool/badge.svg?branch=master)](https://coveralls.io/github/mighty-justice/smart-bool?branch=master)\n\n## Installation\n#### dependencies\n```\n\"mobx\": \">=5.8\"\n```\n#### npm\n`npm install --save-dev @mighty-justice/smart-bool`\n\n#### yarn\n`yarn add --dev @mighty-justice/smart-bool`\n\n### Helpers\n```ts\nget isTrue // Value\nset(value: boolean) // Sets new value\nsetTrue() // Sets value to true\nsetFalse() // Sets value to false\ntoggle() // Toggles value\nuntil(promise) // Waits for promise, then sets value to true and returns promise\nsaving(label: string) // Returns label is false, 'Saving...' if true. Useful for buttons.\n```\n\n### Usage\n\n```jsx\nimport React, { Component } from 'react';\nimport axios from 'axios';\nimport { observer } from 'mobx-react';\nimport SmartBool from '@mighty-justice/smart-bool';\n\n@observer\nclass Autofac extends Component<{}> {\n  private isLoading = SmartBool(true);\n  private isMilkPizzled = SmartBool(); // Defaults to false\n\n  constructor (props: {}) {\n    super(props);\n    this.waitForTrain();\n  }\n\n  private async waitForTrain () {\n    //  this.isLoading.isTrue == true;\n    //  this.isMilkPizzled.isTrue == false;\n\n    // Sets bool to true until a promise returns.\n    const request = axios.get('/train/');\n    // this.isLoading.isTrue == true;\n    const response = await this.isLoading.until(request);\n    // this.isLoading.isTrue == false;\n\n    // Simple setter\n    this.isMilkPizzled.set(true);\n\n    // Helper method useful for JSX props\n    this.isMilkPizzled.setTrue();\n  }\n\n  public render () {\n    return (\n      <div>\n        <p>Waiting for train: {this.isLoading.isTrue}</p>\n        <p>Claiming is pizzled: {this.isMilkPizzled.isTrue}</p>\n      </div>\n    )\n  }\n}\n```\n","readmeFilename":"README.md"}