Files
Seasoned/.npm/_cacache/content-v2/sha512/76/ff/4dfd0aaec5d89e5114767de57282a31039ed19b704893901b55eb2acccd9f444f29c1eeedf5f8109da9f6010bcfe509324cbfc69de902cda4c1b5f7e8f45

1 line
19 KiB
Plaintext

{"_id":"muggle-string","_rev":"7-4f586c294b49e34166557d6e2cac86ad","name":"muggle-string","dist-tags":{"latest":"0.4.1"},"versions":{"0.1.0":{"name":"muggle-string","version":"0.1.0","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"devDependencies":{"typescript":"latest"},"types":"./out/index.d.ts","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-Tr1knR3d2mKvvWthlk7202rywKbiOm4rVFLsfAaSIhJ6dt9o47W4S+JMtWhd/PW9Wrdew2/S2fSvhz3E2gkfEg==","shasum":"1fda8a281c8b27bb8b70466dbc9f27586a8baa6c","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.1.0.tgz","fileCount":5,"unpackedSize":4426,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBQ+JH8zXfMMxA/LJXaWLpvl6qnAj/c249KS9+RLbGXAiEA8CEg+NkAY1f1yCiEvUNp49xD2B2SZO7m29duX+tqiJU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNZzzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjQQ//UROt0gY7R6YeKjhxJPLHUwLWNVMzeahtwYOwpLO2JBDvxvF2\r\nGOKAeo9JnMQtJ8+7U5vg4y10O5Gc0emBf+jXgpN3LWMuB9RJ+pOWkLthNc+0\r\nqCPKUBf0+Dpt5kW4YWSXO2wCnDcigaKf1IJIhR7zNK6QHSofZDddu2I11X0i\r\noCoubF6221jG9jgNOEvPxvT82Q7VNeXzaLOSNNwMAFaxwB13FtGoex3DYUD4\r\nm0L0roWNl/opWWdmW3naNTlALVVMX9bbwZtKfEF4oPfwCIgbw61vOmYZ5mzg\r\nAH3uqv756olFDefS0mGDW74wmOSWlKpd6iPTt1xbewuU0Z929D6nezse6MUC\r\ncLK9EYrMryLBbPrRkRKNSUT3ZCDc+IvCPaRKPk/3AO04aIqw9I1Fh4gFHJqL\r\nDOttNTvAGavDDhR0uQPMbCcMLwWl2QSW72Fz6/4Sq2x+ad3zYMdS8+TTiVFr\r\nJm6Kp35qtgmd7L5lv6rhv3wgil1DsgH0jS+C4mn5L5ytsZsHmh4hkaljQFEw\r\ntkOA6GWHK0Iu/hysmfZhc1Jy2P/JbtT6STgT8mAs5EPM6/dQ89ehezR9S0/u\r\n3CxaudZ0XJCzlh/Oduz2Ra8+ydvQuQ/2l2JBqx8TejpnryGcPc4E5poTYZG4\r\nStD6cpndlbMVZV+6oPMwIn7LZhsJWgm/doo=\r\n=eMGX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.1.0_1664457971600_0.7064659334938932"},"_hasShrinkwrap":false},"0.2.0":{"name":"muggle-string","version":"0.2.0","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"types":"./out/index.d.ts","gitHead":"7ee979299811ba06d9fc425733af1892a011694d","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.2.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-n8edLIzrH2NTuxLuAUKsKtAFaaY0LAdox7QE02aBebjkp/5tzmGBZHstW4gvTRbbbAv23w5CbqxIz/SRe55AXg==","shasum":"97809f3def50ca44a615e4086c92aa6b115fd6df","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.2.0.tgz","fileCount":5,"unpackedSize":8513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAecufrEHdvnQ97fT1Cc0RFGFSb5t1FtpVJa/i4BlJlAAiEA2FVnBDxYfLhcPTshccWxbTIyx2WgF2yDLHkdxtGMDxM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqbCDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprxBAAitztIBh7wZnquE9piQCS748Rvhav/eMXQ/fbLIa9GkcfkUaU\r\n606IUoJ6TktiOBE2kUw/WD8cwkxJDR9zMFPFsKlVeUc4fmrEtitt3wuZx3//\r\nLHT7GKCeeRLzvAlrAh9i1GOzFPxAkDe2V41rZhIlW6U6v9CqIvAJE7i1V0Hk\r\nekxG2p5ig2Z3UBQGAKxk6EkgGjnTSqlgiBtcvBqvwSAo8Ar6YtQhN4DtmCq5\r\nVA9swlv4iBtb98hZECg+5anwkFAt39zoAjFSRcBXgbFiQO7gWHnygH/47RBE\r\ndJ/t0+/9BzWkJ+2IGBb4d0/+h+zLYyLWno0CXPNxP6oK8z7kjnwlAfiw+Ygl\r\ntq0QYY1JSg2yEX02vatVP68BKnB1M25Dg8DflT2ezEhgvXHESD0F6yya6c5A\r\nvKDIbZ/asgHVbnSnJn5zoMADaBCpCRN4dOkbpY9gzWBRBKvOb9G5QkbEXtTI\r\n0kWTtl7GapqDdjLH+X4WT3JlLmBv7GCazYBXqgrY1avvt/BSKRH/+GeHYxvd\r\n4LgD7SUiVNwBfmlYaIH6RwsfxROQTYxgPBo7A4+Fry7D8XlXr0ML+JHuRarW\r\nmuv46T2uvnlfsdtifpR1R0q2NRzngQR3xMJz2yK2o1noGypaIkGwP2TBLVwo\r\n5MjPGXHnAAlucAuC2+qKIDNse3T/a0vbOEo=\r\n=skqW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.2.0_1672065155041_0.1315905920945959"},"_hasShrinkwrap":false},"0.2.1":{"name":"muggle-string","version":"0.2.1","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"types":"./out/index.d.ts","gitHead":"b89866d9ab15ea3635b8c374d8be3e4d1159cf27","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.2.1","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-XVKGP/QTuZQ7y1++6sNLeAALtUSc1nwbupotemZizerLeTCyxrvPRXGfWIIITZaVqrwfIskwawWE0CSHC10X7w==","shasum":"a4d295a62fff363f70273aed502580c5c55cd530","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.2.1.tgz","fileCount":7,"unpackedSize":11519,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0BjDU6qN+cSyr5HT2qX9I6/Vvq0FWU0m3QnbCS9oqYQIgPMmeXI9B2p4vUjmCEXge7Osfk5hCvEmdi6GMeOT3VWU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqhRMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2GQ/9GDULaUeDcelmxsoER9FzLXT7UIkHfRcklbRncV4ARxofAAl3\r\noKjvhNZDC5j80wimJN5wSX5c2QnFWWgRzLl2NEYDhrgbiGRlVLTZK6mKr2uF\r\nvbtvPkyTkyifDhuBpCWfDnqDlecmao80oVQUU0wcYTSwre2NCpXkV28fpE1I\r\nQsWoXbI8aPuHyNNwhpSjKwl1B7MMuJVcm0xXP0cFRbqM2d2wjLAvCrxEoSKf\r\nzOgsHgZ/Kmf1S6JGqy6B2RVtTCYL6k58F0+7k2qJoFf03Y6mS8P21Ahf4IAT\r\n+rfYqLuir1ATedRg0VnXJCj+/dOz8LSaomO8vuwaj0D6bM5pMun3IJC3VshT\r\njsB2SRIckhLrMfAJj5P/4Y3/A1erXPXHdJfute6XX8B5aek70p7JhGRVAxD9\r\n2MXWS6X7edhqFe8YmRQGP2aCOWf3IL3FG/vCzv6dz9GBY/Zbc0wURoJ2l1VH\r\nqqePEoNFtAPw4iqazIvdvnGoCMB2dS2tTC5ZakOU2kzdI0RiTavvsllXb9m2\r\nOW+VIMrYEXWKzY3HQ9G7UMe9VlYUDDAm8dAr1FbZ2tduzq9yBhVA6yOK+tJF\r\nq3xUzrmNXHjG8ah5czP5jREEbiMz+MS3MDxAHeyknZxETfy7pOY1utAjLG7K\r\n/kB1gFxU8bDZ0fgM77yB1yQjUTY5eayrWIQ=\r\n=s/6W\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.2.1_1672090700646_0.8716538372543767"},"_hasShrinkwrap":false},"0.2.2":{"name":"muggle-string","version":"0.2.2","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"types":"./out/index.d.ts","gitHead":"d530d37c96a51a1eb528f234b1596b69900a8fca","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.2.2","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-YVE1mIJ4VpUMqZObFndk9CJu6DBJR/GB13p3tXuNbwD4XExaI5EOuRl6BHeIDxIqXZVxSfAC+y6U1Z/IxCfKUg==","shasum":"786aa53fea1652c61c6a59e1f839292b262bc72a","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.2.2.tgz","fileCount":7,"unpackedSize":11175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHLyzWwL5PEEXv9GVr6LuO8MfyTzG8SlQvIEsBhgFLmNAiARD7jmm9vq1YaB2nG9BA/h+U9eObUb78aZvEADBtldug=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjx9bcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0ixAAh9SKVqCkid+j583KL28uo9njyyyFYYFdJFUnyh7EUrB0AK0F\r\npAiw7W5ymMzi/amU4BtbltHq9H2J4t91gk6tsMj4KRVkAAX26vC1h7gNGN3Y\r\n7iJkBLfGhGMRWg/XQ1R/vGZKN1HAQPKIVdqq0DAKfvszVz+k+eSUUQr9g5mb\r\nxFyF1WRZe5uPeIJ/8rdESWBkucLUzH/+L3mah3usmrxeZPXYKF6/69Zxy4+e\r\nZ3I/mFlxJHXyyEVIE5NkIe2Ho5RWhhFMhSNmsotkSEfCfLiXaK242omwwnOO\r\ni3OM9Vl1rgdzz8H+02V8jU04S6+ZoAvNMV9Xge21OaPhw0UNZLUHi+ZAUB1x\r\n1T5NX1ksxPAjee47iB3GuIg4s5nEQiRNOBdzT1yMFoZxKibvo+um+s7M4gmA\r\npfc9tqDYSM5HhHpG9CYYayQL7rZSLpv/bkL5hmSk/z6NgQ/Bqn2iPze57gvT\r\nJUo89Org8Vp8NiH2MovYDwV+JWyo9aXjfSMk+lZh/QV+dRSCYIzkTC3Rsw1l\r\nYTQMWefTC2TO8Av8ofpLttPnXfGkkBqiuHDcMTl47n0kzqG6rXQyLGuaetdJ\r\n7xtEo7GhSoo8BZUi2xPZ37zdpap6IUKabcdSlKSYLejy6LbmWBZ5rpw1u4vU\r\nLWuPyF4huQJAkitd5Rm2FA+nprH5r77LA2k=\r\n=Nb90\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.2.2_1674041051880_0.7661828421121994"},"_hasShrinkwrap":false},"0.3.0":{"name":"muggle-string","version":"0.3.0","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"types":"./out/index.d.ts","gitHead":"73dc9e2b7bf4b16a826a7dfcb6ad5be4a79d9a28","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.3.0","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-JX80YWnbOlip3LsTVg2J017aBz0TtiyfnGcckGCbLl/Xg9Ps/nlrW/emVK8G+mfy3rOn6dfhSla9xDSqse9Xyw==","shasum":"4d4872ae6b43a792d654607bc6d1ac91f3581ee5","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.0.tgz","fileCount":11,"unpackedSize":16806,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtuI27+5T5lvC2RS8FrDoh+QnxFWGRvVAQeEwsvRtmmgIgOTbXvKfPen0aVtO2miOveQhebjE/KQlqekHZR2v2H84="}]},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.3.0_1683538154927_0.3902439602045278"},"_hasShrinkwrap":false},"0.3.1":{"name":"muggle-string","version":"0.3.1","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"types":"./out/index.d.ts","gitHead":"4e7bee5a85f4a68e7e3bd2f7b26173f31ea2b177","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_id":"muggle-string@0.3.1","_nodeVersion":"18.13.0","_npmVersion":"8.19.3","dist":{"integrity":"sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==","shasum":"e524312eb1728c63dd0b2ac49e3282e6ed85963a","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.3.1.tgz","fileCount":11,"unpackedSize":17226,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/P1WadSATA7OtGHBiD3Nmcd1Vy6Gio+NgSXjSU4UTgQIgC8EQ9NSea0oxaj3jtIsz4MCDQfJdiO4mK6PYediKvBg="}]},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.3.1_1683645896169_0.9480032942348682"},"_hasShrinkwrap":false},"0.4.0":{"name":"muggle-string","version":"0.4.0","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"_id":"muggle-string@0.4.0","gitHead":"d42eac330e238624f6472147cb21157ed9dcbc2a","types":"./out/index.d.ts","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-ymN6exGtXrNnDb0ae4VP34y5bSKmBm6+TMGHmKoFDE5saXxtszv1EHs4Tt3glo61rCA/Zum4AwM19pCOGAjjRQ==","shasum":"7dfe57b1a0cbfab08d0b9451d2a08e5c20d17c15","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.0.tgz","fileCount":31,"unpackedSize":44655,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCMfr9jubh2EHjTDArOhzyHKVcJy6+LB43bI/SrGwF6sQIgP9Z622cSTULxL+iS80LTD9Uwxt+tKMbbOR64yByoy/o="}]},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.4.0_1700984022455_0.21032135233769678"},"_hasShrinkwrap":false},"0.4.1":{"name":"muggle-string","version":"0.4.1","main":"out/index.js","license":"MIT","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"scripts":{"test":"vitest run"},"devDependencies":{"typescript":"latest","vitest":"latest","vite":"latest"},"_id":"muggle-string@0.4.1","gitHead":"2953aa8b6cc15cd024b3bfe4c1749dbf56b1e2f9","types":"./out/index.d.ts","description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"homepage":"https://github.com/johnsoncodehk/muggle-string#readme","_nodeVersion":"20.6.1","_npmVersion":"9.8.1","dist":{"integrity":"sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==","shasum":"3b366bd43b32f809dc20659534dd30e7c8a0d328","tarball":"https://registry.npmjs.org/muggle-string/-/muggle-string-0.4.1.tgz","fileCount":31,"unpackedSize":44703,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH2UjCGVo/JLDzpBn5UbFIsaulHd9yd/nXaQc3Fe2r/3AiEAxVuk5bY0K1oFx1GVV8gkYsR4uH4nDqZGfSNc/w47Izw="}]},"_npmUser":{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"},"directories":{},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/muggle-string_0.4.1_1701833353972_0.9618119350296348"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-29T13:26:11.465Z","0.1.0":"2022-09-29T13:26:11.724Z","modified":"2023-12-06T03:29:14.355Z","0.2.0":"2022-12-26T14:32:35.240Z","0.2.1":"2022-12-26T21:38:20.799Z","0.2.2":"2023-01-18T11:24:12.038Z","0.3.0":"2023-05-08T09:29:15.122Z","0.3.1":"2023-05-09T15:24:56.312Z","0.4.0":"2023-11-26T07:33:42.617Z","0.4.1":"2023-12-06T03:29:14.162Z"},"maintainers":[{"name":"johnsoncodehk","email":"johnsoncodehk@gmail.com"}],"description":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.","homepage":"https://github.com/johnsoncodehk/muggle-string#readme","repository":{"type":"git","url":"git+https://github.com/johnsoncodehk/muggle-string.git"},"bugs":{"url":"https://github.com/johnsoncodehk/muggle-string/issues"},"license":"MIT","readme":"This library aims to provide codegen helpers and data structure for Vue language plugin API v1.x that does not depend on Volar runtime.\n\n## Why \"Muggle\"?\n\nA better situation is Volar can use magic-string on the Vue plugin API, but currently can't do this easily.\n\nThis solution is just for Vue language plugin API v1.x and planned to be deprecate in v2.\n\n## Usage\n\nThe example is base-on [magic-string readme](https://github.com/rich-harris/magic-string#usage).\n\n```html\n<script>problems = 99</script>\n\n<more-script lang=\"js\">console.log( answer )</more-script>\n```\n\n```ts\nimport {\n\ttoString,\n\treplace,\n} from 'muggle-string';\n\n/** @type {import('@volar/vue-language-core').VueLanguagePlugin} */\nconst plugin = () => {\n\treturn {\n\t\tname: 'example-vue-language-plugin',\n\t\tversion: 1,\n\t\tresolveEmbeddedFile(fileName, sfc, embeddedFile) {\n\t\t\tif (embeddedFile.fileName.replace(fileName, '').match(/^\\.(js|ts|jsx|tsx)$/)) {\n\n\t\t\t\tconst s = embeddedFile.content;\n\t\t\t\ttoString(s); // 'problems = 99'\n\n\t\t\t\treplace(s, 'problems', 'answer');\n\t\t\t\ttoString(s); // 'answer = 99'\n\n\t\t\t\treplace(s, '99', '42');\n\t\t\t\ttoString(s); // 'answer = 42'\n\n\t\t\t\t// add string by Array method directly\n\t\t\t\ts.unshift('var ');\n\t\t\t\ts.push(';');\n\t\t\t\ttoString(s); // 'var answer = 42;'\n\n\t\t\t\tfor (const block of sfc.customBlocks) {\n\t\t\t\t\tif (block.type === 'more-script') {\n\t\t\t\t\t\ts.push([\n\t\t\t\t\t\t\tblock.content, // text to add\n\t\t\t\t\t\t\tblock.name, // source\n\t\t\t\t\t\t\t0, // content offset in source\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// language capabilities to enable in this segment\n\t\t\t\t\t\t\t\thover: true,\n\t\t\t\t\t\t\t\treferences: true,\n\t\t\t\t\t\t\t\tdefinition: true,\n\t\t\t\t\t\t\t\tdiagnostic: true,\n\t\t\t\t\t\t\t\trename: true,\n\t\t\t\t\t\t\t\tcompletion: true,\n\t\t\t\t\t\t\t\tsemanticTokens: true,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t]);\n\t\t\t\t\t\ttoString(s); // 'var answer = 42;console.log( answer )'\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n};\nmodule.exports = plugin;\n```\n","readmeFilename":"README.md"}