{"_id":"@-ft/mode","_rev":"9-9d50bdda84fd45530d059b4a2b6e5c66","name":"@-ft/mode","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1-pre1":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.1-pre1","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.1-pre1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-wERFtX8IVOaoZjctD+OzfkCgD8lo8j3zAsgyFWr3qKxa2Rj1V9OgONaZalZ3Kax2ejoaunxWAkxsVOIHebpnhA==","shasum":"417c0b2ecc0b347c1a3b911e9ec200a2f5b3b126","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.1-pre1.tgz","fileCount":4,"unpackedSize":3247,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDrNWrmS5ZJI2tRHu2hcmBp+g2SBak01xdvSyt1Qds1RwIhAPLlHyFZ3gfhYFztfKmBYBWXDdko8WI/8VYhQpo16xny"}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.1-pre1_1693927882274_0.9097088107777476"},"_hasShrinkwrap":false},"0.0.1-pre2":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.1-pre2","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.1-pre2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-HiF1f4xiznzgudDj5Irkc4bGMngLCcExM/x4MvnsFbhR2F62I9KoRrgUuKT4momxpDF+yU1V2Jo8vZC4NCkULg==","shasum":"7be2e56fad41a761a535b61d28caff8f924e217f","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.1-pre2.tgz","fileCount":4,"unpackedSize":3246,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8CfXtTHTtU82gShc+jK/sZLRHNeLW2jzrwk/99FRGVQIgfP6seTJQP2JCKbbFz/EBkUiuzw/A4qorwHopNQAGMJo="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.1-pre2_1693928832902_0.8433393827513982"},"_hasShrinkwrap":false},"0.0.1-pre3":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.1-pre3","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"04f4b7391bfd1b19aa6f3b97cac20ec90aba28e1","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.1-pre3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-xpiFrmFOOXPZ+MhszdHqARKa+k+So2Eh7GCKBNuNowMXF2OhqvrIhODDRKa9B+Ed1JfhkQqd47/OaSuoiT6+Sw==","shasum":"f49d616f61da90267b0d55d894a400143e44e9d7","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.1-pre3.tgz","fileCount":4,"unpackedSize":2056,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCmc97qV0yHCLH40++SrVZUZce0ty6XPAEmcghX7sxAgIgAbTJmbbIboeyAR6T5qsqXNJBsl3NcO+GNm2TIssEYp8="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.1-pre3_1693929831243_0.6413737019999934"},"_hasShrinkwrap":false},"0.0.1":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.1","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"3463c4c0222caf891a93c619bb37e8a40d56de14","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.1","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-UhnA/qDlpC2TVfGDmppY/EhdpBRYZhrZvo/V1ItaIeYa/AAshCpGO5g4FI6iFmZ3epu18Rh5UQ2zZC+5949LsA==","shasum":"51335b1e61c4498cc4d6fd1ec33bab086daf135e","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.1.tgz","fileCount":4,"unpackedSize":2061,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDieXOguxM/3F/kvFphGSBG4avU0wdORDcsLDPmL8pJqgIgdHo2s5oGCvE2bLNhCiHOf1JzyuMb4dg8mCLSYFLoDQA="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.1_1693931327681_0.16872586713572857"},"_hasShrinkwrap":false},"0.0.2":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.2","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"c583f072acab9dab5906ce5ed90816eea52554f2","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.2","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-TUZXEh2OsehuwqGs+TGlncoSB2yreGCdoXAdOkk22rhOLC31rC1cUzZ7TisVXv5jcEyo9pQ5Ni6vubc/Qw80mQ==","shasum":"9b3f651bf9e37be8a075de69cce41e736f718836","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.2.tgz","fileCount":4,"unpackedSize":2163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9ihci5wIM9ijn9+CW4+XIurHhYkbCpkmeq3n3E4l33QIhAKYSraphNqkmLD7f7YOCDat4yQRgx6pDBP+goIsDMJZp"}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.2_1694285877440_0.20117283986445078"},"_hasShrinkwrap":false},"0.0.3":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.3","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"e04346a93f0a2f87905b2aa04e27f5300bc5e9aa","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.3","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-FLLHDPUDcfvpw0lsK9xnIB0i25ekRvrVO6OwAnllqBuK3ItsxBFWiij9JZyTl6XUGzRmumLPTgZogIRLPsDwGQ==","shasum":"c748ac86d83cdeaf4edf1adcb6eb345000d1a1ab","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.3.tgz","fileCount":4,"unpackedSize":2554,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcH5Hr0uXQNWxXbf6noNbgxj2LwcFPYM6Ivj2msNcDxQIhAPJpc2OQb25ykb1MqDNkifnwAHUVah+HlH8Est6SNGOi"}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.3_1694286440492_0.8843711949371746"},"_hasShrinkwrap":false},"0.0.4":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.4","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"63f32f112d4a535ea866451dbd5c38af2bab9a96","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.4","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-vEjD6UTNrT2r2msoJTCBSICaGfzXkDltAMifRG4Z8nBdTdeH4VF0MjZS0L1YnImahMLqMBnU+iYAxXAwoENH4g==","shasum":"83ef04d82fb3e057e2feaeadc4e25b522c6c8ca9","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.4.tgz","fileCount":4,"unpackedSize":2592,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDH0FRDl5MkTjeoMqUrSJXEHthS2vDXkiq3f5ObWwSNeAIgMlh8G9lcabev5giB6Kg12CwbTj7/5yjb2rPn0m6pi/Q="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.4_1694287817240_0.20968147060497166"},"_hasShrinkwrap":false},"0.0.5":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.5","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"b0cd592e4b88f05fef795f01c14d35719b840c3a","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.5","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-pGT1TkWEBMUf7TwCag6hR1WeBVHUT0pAtCrhYc69ffbKEOAlwyqyw+XxNwLdXq4wIL9otYPB8VdEK/2cJCnyPg==","shasum":"5fac2bafd641412fdb258b4ca1487c9926f703b2","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.5.tgz","fileCount":4,"unpackedSize":2475,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJCRXyRYPkBolRyThyE5/yLk/G49gPKGf/T+Nr6kbi+gIgRoUz9BVS0B/amac6QcZo3wG+LyTjZSdaZNktJeghPNo="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.5_1694362726434_0.26595143859523707"},"_hasShrinkwrap":false},"0.0.6":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.0.6","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"9a817ca597ad179de195ec22e395983145ce4bff","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.0.6","_nodeVersion":"18.17.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-x358OSg5HBaEbZyb5xpu2kVmL+R1wIUMKtECDJR2RV12fcgfoxNVxw1Q1WzVZKs2mI/BQQBy8JRDM0BV4B5OUw==","shasum":"2674e0fa87a7893bbd7586fc28d5984f7b7f9921","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.0.6.tgz","fileCount":4,"unpackedSize":2399,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8FhogUEYeEiijrTBp1/x+GDEWpjyJhuswIRAYJH3yNAiBLrY5c3Hubpq2E/bYU/l3oZsRTp+BqXqXh4XnmqLl5dg=="}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.0.6_1694363014754_0.92219650953464"},"_hasShrinkwrap":false},"0.1.0":{"description":"Theme mode manager","name":"@-ft/mode","version":"0.1.0","license":"MIT","author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"main":"./index.js","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"types":"./index.d.ts","gitHead":"45d2ee5ca6ab803689d682aae8b89dcaeda76a8e","bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"homepage":"https://github.com/42ts/-ft-mode#readme","_id":"@-ft/mode@0.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-e9upha3XbC3SjBEPmnonzHpVPp1wzJXjgxoE6YjDScOuFs8yG/6/NFQf23MJ7FOBMfQ3ZKhdhV7apeuB4AK7nA==","shasum":"181e1dd3cd57ffae2cf9333fc26515605be0d4e6","tarball":"https://registry.npmjs.org/@-ft/mode/-/mode-0.1.0.tgz","fileCount":4,"unpackedSize":2452,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC71qG+wU9jeKNGK3kkbtwz6hn11lRS3l06N8RoJM3B4QIhAOpiEF7yJjdpcz4haMUx7JKV5YGJmBji129sFnJoaju2"}]},"_npmUser":{"name":"mjy9088","email":"mjy9088@naver.com"},"directories":{},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mode_0.1.0_1694659230009_0.9677268476051049"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-05T15:31:22.177Z","0.0.1-pre1":"2023-09-05T15:31:22.456Z","modified":"2023-09-14T02:40:30.434Z","0.0.1-pre2":"2023-09-05T15:47:13.123Z","0.0.1-pre3":"2023-09-05T16:03:51.386Z","0.0.1":"2023-09-05T16:28:47.846Z","0.0.2":"2023-09-09T18:57:57.577Z","0.0.3":"2023-09-09T19:07:20.637Z","0.0.4":"2023-09-09T19:30:17.421Z","0.0.5":"2023-09-10T16:18:46.599Z","0.0.6":"2023-09-10T16:23:34.947Z","0.1.0":"2023-09-14T02:40:30.201Z"},"maintainers":[{"name":"mjy9088","email":"mjy9088@naver.com"}],"description":"Theme mode manager","homepage":"https://github.com/42ts/-ft-mode#readme","repository":{"type":"git","url":"git+https://github.com/42ts/-ft-mode.git"},"author":{"name":"Juyeong Maing","email":"mjy9088@naver.com"},"bugs":{"url":"https://github.com/42ts/-ft-mode/issues"},"license":"MIT","readme":"# `mode` - Theme mode manager\n\nDark/light theme mode manager for web\n\n## Usage\n\n```ts\nimport { mode } from '@-ft/mode';\n\n// initialize mode manager with persistent settings if available\nconst modeManager = mode(getCookie('mode') ?? 'system');\n\n// apply actual theme when theme is changed\nmodeManager.watchTheme((theme) => {\n  if (theme === 'dark') {\n    document.documentElement.classList.add('dark');\n  } else {\n    document.documentElement.classList.remove('dark');\n  }\n});\n\n// save persistent theme settings when mode is changed\nmodeManager.watchMode((mode) => {\n  document.cookie = 'mode=' + mode;\n});\n```\n","readmeFilename":"README.md"}