{"_id":"truncate-json","_rev":"10-fdea356751ef25a71082ef3305a6aa3b","name":"truncate-json","dist-tags":{"latest":"3.0.1"},"versions":{"1.0.0":{"name":"truncate-json","version":"1.0.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"Apache-2.0","_id":"truncate-json@1.0.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"7dc0dc89c82aa11118f9b83e4c6bb874c2568edb","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.0.0.tgz","fileCount":24,"integrity":"sha512-AaLv3MJL2qYKJHU4rzrwKpzJh/FHt+XlPot8NA1U3kU67Qel9tT11n5YGAeyJyT3h73W9X2S63FBjg+UvXZjZg==","signatures":[{"sig":"MEUCIAJHvgkuZO11UHftXtWWbyUb7bfovhrYFW7qHF5xl7aWAiEA482N/SHtnZeKpp+yLc0j7XewGq6OZkCKGcHh8HAqlNM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9SUtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoR6A//SRYSFqcWjQwHHRrebnjErjhaUkpM98m03VjpiRa1Yfvimcdg\r\nBtY/g2kQyUi4U4f0PzC/FFGmOvTCopLp/EirBj2O+wxUkBJaEQpzknP30qrn\r\nTVhPhrHDmf3w3ltHfTgUtsaIanaNScWzrDL0C7Mf9H/xRfOoBjolXU8QfLDd\r\nM4zGxug+g4mNnWV3vfZ5qrDCKzr4iuVLMXk2yC3syiX9qFhLk8chqFuF2Ixu\r\neTwo7XKKbMaxQJZ4fmssXUz1mpVnrUl6zyr+MieztNTOHDrsDPGBo5xLnIYR\r\nUrZeUcJnjjFJdhNY62zgcJN+MjUUr0xjLNJdNCB1+OJi9YPt1oELNzpnodsr\r\nAFOTsfkRVouftxzozO+Wi5Gq48vWkZp1Fsud2TpiOK7j9b8Iq82FUw46XTlW\r\nYjiKLr6W8kwNmmnQ7p04lOunZ7crpkz/BmTrknwQ0/S7GQbXpXbmMQC0pvBY\r\n7+9FRdo7DZMXpaoTdJ336lh5wNaJZEeSR5eOU4c362vDcb2yicXYZmpVZMyG\r\nkIaYYPcU3aMgIbX8oxnA6BHvpnjpIuI2fatTA+93sGmVpjEukAqmAHwylXEY\r\n3NBPrAL5hYGvbV0XZgxThitAp5MR5sjP+801ounynVuQ8nNAnVEUewsN1eXZ\r\nwyg3pqZhZ2y/OhYIJTM73Namv2KRbeQCVtM=\r\n=sCo+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=14.18.0"},"exports":"./build/src/main.js","gitHead":"d94f86ad1385c4d3f3f4c043e20970d40176b034","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.17.0","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"18.7.0","dependencies":{"guess-json-indent":"^1.1.0","string-byte-slice":"^1.2.0","string-byte-length":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.1.1","@ehmicky/dev-tasks":"^1.0.84"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.0.0_1660233004903_0.1995231162562341","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"truncate-json","version":"1.1.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"Apache-2.0","_id":"truncate-json@1.1.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"d936e28f55c88ec5cc473027d2a19693d9483c57","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.1.0.tgz","fileCount":24,"integrity":"sha512-SBd2zWw6WHlwicdzW6o5J+GECchehxKNLOgEp8wHe4+oTYnZbQGBkrjhBhMC3Za7yQN+DWVud8bUyciq9MMj7Q==","signatures":[{"sig":"MEQCIBffD7d7dU4XxleID4uNlqZFsr7lFpbJRD+4wo8uipejAiBevSyVC9XF7Z6bOhyJtwMJk2jYWqE6Avnchq87zXGnPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":58040,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9SVQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmol+xAAkmCA7iRh/lN+rms7KcqAtYAcSOiMXvAJZHII7Fd9D9CluLer\r\nJqiwUONe1mT0/vAqMZvrmje9yMhydlk7HBx5p+aj6I7gdNjk1tGll6r4rlUj\r\nPXLTf7d8OreQ1yjTNGZbkMC4sNAISR86mNwDT1Jsysn5VIXOitTnaT9uNa7i\r\n37AOhMWn6L/ljZDTIgaknifdbJPaXF9YlB8f0G4w8Y9RqCprq4ze2XkJHgcs\r\nYBouhQcPrX8Mx7nFlegdn2L+4gUy9leMLVXk22mSq10izxqGPONJmMvh1xC2\r\n1QQczU4lNU50fl7o2VQqfqFbVlFFuzXyr01llga60EhRB/1alD2NrgyFBTvQ\r\nPM5kWJWNtaCAapWTYc/7fg5kVUHJHGzVCI690tex+kDhrJONi3G6SbKBeodd\r\nbc05VKZBCgVdLcji8QXSo4Rr9Hxug2UOzsfyFXYcRhj1s5aN4beQNQKWCe1Q\r\n6TJif0m1lCFXerQJPKSQbHK/kF8Wi68ruXn25xePSYZen6VcVc6Gq/V+4eJb\r\nk/zJhckke7OWNbjzeIHPNW9djDoYHo3NNdpDyQ4XUzckDmmCo2kWeVxXT6gf\r\n+T1rfj7EUwR83By79DYHNSbLHcw/mC2q4rZQ+18oX98liHqn739nPzVHnW3h\r\ncdINUkheUGqEqNb5QBMY86+eqysHS0OlOu8=\r\n=8n9H\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=14.18.0"},"exports":"./build/src/main.js","gitHead":"2bb4d69631c54329e212a37b19f99a22de45716b","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.17.0","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"18.7.0","dependencies":{"guess-json-indent":"^1.1.0","string-byte-slice":"^1.2.0","string-byte-length":"^1.2.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.1.1","@ehmicky/dev-tasks":"^1.0.84"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.1.0_1660233040445_0.41633094146119465","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"truncate-json","version":"1.2.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"Apache-2.0","_id":"truncate-json@1.2.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"8d9f6dbebaecdfde948855d301dfdae781825f16","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.2.0.tgz","fileCount":14,"integrity":"sha512-9i6ZZxYugq0OoyaNftnXiKmteMTDx9dREd8yL+wiXoSEotl4JZ4r1Ni3IklYFg1hRQgLv9SO9MKdKIv4jU67Xg==","signatures":[{"sig":"MEUCIAb+n7gwBfJKnsJZ26ncVuTiagz1xP65HLYtofbi4yuIAiEAhqp+qIuZLpQ2FOEmOud2r1HH0Lbuqy/joFMCMZHN2Lo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29259,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi++zUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5oA//Rdgewoa+9PiTQ7HYWQssqQ2EnlLOvKzeuaicYTSASabaPbUB\r\nFrLJuUpAdHqhBTu3WUWmW9PeSG57vR1qrGWKmHRNMauJI5EnODodahahfipA\r\nYSZiHJF4AZTUTbqQJqMnsxA8l/EsNAUboghI2aYefNDQ/gTK2XM2eZoCKYff\r\nHCBScnSti3vsuPz2AXzVddmS5tzgZ16t7cUlg036t8rwe3pxS39BCy3vW/vI\r\nIOS7p/VwaDk9QLbN6vOdoJrtTjIhg1rRKcOmT4Fgz76AcjunJ95iijohpQg+\r\nADFfqh+IfF98WSkiuolZpHgYfUwzaZPdi8Dvscx5ywJdhFRN47R/zHxEAseB\r\njh2/D8irRAgL7XvgTFBlpeyznkFMhBeNpeiS/AYjMKyxEEK+Ia09XsMwe3kc\r\nEBoXRV6O2UtCUt53KAghnl0Bn5V9qYlXAwZdEV7KgG99Pp+MEVErUQMio05P\r\nFjdOK4ivuD2IhrIPt3eXax71rY3gL4IXhqcy1Yh+SJFTiVHgfkI4v5ZTzdWi\r\nPspaI4ClL/Ao3qH2UukCe8hQxbRbadwMhpPn0f/h9/GxFHzdJxiUuXlGjav+\r\nfyWcOxMxW7i90USgZTcpfOznsisVocQJa8mrXXlQ7ORhEUEERWd8sWHYyx1B\r\nR9qbPdc30lB0FmQ4OF18YZeZ9quWd6p0S80=\r\n=gLD1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=14.18.0"},"exports":"./build/src/main.js","gitHead":"9a6e0f2ce4fb59ccc2ffa21403e7809667b9ce63","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.17.0","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"18.7.0","dependencies":{"guess-json-indent":"^1.2.0","string-byte-slice":"^1.3.0","string-byte-length":"^1.3.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.2.0","@ehmicky/dev-tasks":"^1.0.84"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.2.0_1660677332170_0.7300358826882767","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"truncate-json","version":"1.3.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"Apache-2.0","_id":"truncate-json@1.3.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"0b1d5815267e5021e080141953cd0fd4b9078b50","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.3.0.tgz","fileCount":14,"integrity":"sha512-MibuqhDmBu+SI/YDbNgcz7vQwtPI5umJQXqw61cwPBYABXgj1VSs7k2EbcPRmaEEHasEL0ovA3dJWMdaT9F0pQ==","signatures":[{"sig":"MEUCIQDk17x6pPqalMRCd0X1Y6rUbBa/5Zcu+nyA9lMevxkCtwIgVuZQYyaZctuBcGpd2vBNSqAwBft+9wMUo4UHE1vI81Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSFxfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqbag//Z39kWLy/wzGmtLFZJk1M0hoHAK+oJ4RA8oJ9OqylybeneeJ2\r\nC/+M8feVyG7oqlmKEKwLw3aqjDjWTP4c8A2v0xY9mDhN0Ihwshgz4ZN5c1PZ\r\ntIlXShyvNNXBp8m/VHOwvvoI1U8/aR6J3ergZNRihD+i2fF0mWERYIYfOzFL\r\npCej4mxrt6rxq3t4QHzejNCOMZucy44qRPj2NFoUA5/tBxTlRsUt6qOsY71t\r\n4msGvuzEckJ3BDEedTILkyCSqaeYMP87FcJembAaYHPC9t5t+3/9CbwT/RhY\r\nGizb/Pifx/ZUd7qYFnxyfjuGJI6U7tbfgATTN5uEjy+7i8eSBcNbpDzjSJ6E\r\nBE+hAE6u4Pqv4S25bI0jkgXUFxVjVFwh7s5XX+Ud8exB/bXAaF/nt7v4kDUK\r\npl/IcoNmHB8uO9+ZlidJ0NiRfpCzVk3FvPO+21yC7hmtWcmpRav94fHEqPoW\r\nXvfY/K25TtfjYZaq8F1oaSos8UXJbCgyHNgwEoL1SQvCViHNDxhKg75Y4d96\r\nkuDAHVuNZQdVB4DimK6Yp7NhUMrdi2RJPIMAMfuErNdoQBlFsMJBXtIvO8Be\r\nKK4SsgeOVM+M+Nu7fzCy/Jpgyi4iB9qIoJMYU8m0iceyAXKKtAJtCuMuFewI\r\nBcZG0kFQcHnMR8FVR6ybh7Ne+w732zo5mE4=\r\n=xsTV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=14.18.0"},"exports":"./build/src/main.js","gitHead":"2a91b9f08ff59b9b6be47656d2e33095910f0caa","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.19.2","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"18.10.0","dependencies":{"guess-json-indent":"^1.3.0","string-byte-slice":"^1.4.0","string-byte-length":"^1.4.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.4.1","@ehmicky/dev-tasks":"^1.0.94"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.3.0_1665686623050_0.4618161463030914","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"truncate-json","version":"1.3.1","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"MIT","_id":"truncate-json@1.3.1","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"d59c0bb28c0f8a3d88e8ee73aac41539cc1129ac","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.3.1.tgz","fileCount":14,"integrity":"sha512-SuEseceY67zyBfBslwVcWNrAvdGv/p/O+T9LxKY7a4Rep2Qg2etxI/uoOeO5rK8mcAXl4UJtjl46JSQWL1u2gQ==","signatures":[{"sig":"MEYCIQDXUNM4zjCv/9+Ao1OFnKMxURvo6H7hLS0xdugxVt4pbQIhALdmV8oxokUkvDNvsWzdGFHziLcV58wWlv9PdS7a/+me","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSHDEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpOtg/5AQyDFNU6CZiQDJ9lYOvt7Gadal5icJxSo8EVgxlTuGeNBlvZ\r\nCpZnHVKQfTB222VrbGv37khb7qPZxqKo+mvTD4BDJxcECVlOfTWbT0NxT1YZ\r\nNWhUrNuMZl6cxJfB7F6Y6ZkjIFdwXQZpToddxSZS/8+CAcOK7ox9puMNiqkF\r\n3J4jdvM1fp2TI6Jt0ynZ9mR1cpHM85EER1pjYXaQ57wHJjHyTKFtmZU1JORh\r\n7Sz52AFzLRC5vH2yd6Nixwpu3w4kWEyaCgN7iXFC6QBGUrIHKqSkvlrLZ0bI\r\nhUioecLlxy9xRTL4iyBtGCcOxeFWsLTGogTET7pvmeTesn/KnEgmBfsGb7Pi\r\nfGnw197nHtMoOZLXqA18vjTX7ZhheWVfieCnv2vcgZZ7s+9e19weFDlBYHgu\r\njA93y3hO4mxTQoy2KvJltQByLS7HN/n8SCxZ56O4YO+UgU18GMJ8b7ThiN/J\r\nFEPVnmawlTH/q3YbjhfUeSTVze40+/hSMoeUdsg6QUQVnj+xPiByFkzCh4Mp\r\n03zR6IYN8uVnGOG73cmcA9ClytljcTaFp2MIfZ8J0DNWaQRoFyk3y19WWs6a\r\nyLxS3waahOwR+gtHpq0x0WX6S3htA6TCyBTSnM7Gl5K46GmgGwGoO1dNPJBf\r\nQfru6qhlxFyDUfyT735YPqgfaNwGcT2sITg=\r\n=lZXu\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=14.18.0"},"exports":"./build/src/main.js","gitHead":"278c3b4571d77d38141f6cf3a020459a4dbcdc6d","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.19.2","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"18.10.0","dependencies":{"guess-json-indent":"^1.3.1","string-byte-slice":"^1.4.1","string-byte-length":"^1.4.1"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.4.1","@ehmicky/dev-tasks":"^1.0.94"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.3.1_1665691844763_0.4132728282369367","host":"s3://npm-registry-packages"}},"1.4.0":{"name":"truncate-json","version":"1.4.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"MIT","_id":"truncate-json@1.4.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"03c8f5caa7896e70c3e829d821a5b1f38cf36d93","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.4.0.tgz","fileCount":14,"integrity":"sha512-rP/H7AEvMB59gwJk3a4fcHygBlJHpW4pr16DyXkKkN1KLw9KJYszLv2Qj+OolPQF8+p+RF7cfjBMybDIYIEi4w==","signatures":[{"sig":"MEYCIQC1JhVtzRJXSSFnIwvIC0h7NHE2ZlcoeOvqSSsaoDjBiwIhAIfP99eagIHGhV0N/5ruFX+DNOr9/mZPFYUzHX2Cnxeb","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19421,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjaYTEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpFSw//b2KL+frzxSlBRq8eH0KiS33OwVNyYboUbLJiJcm3RpgyK9jv\r\n5d6TAB2CTtgLBZQ/oT1c2lUrE9Eixquwpgmna8Ym4UklY48ENHMhzIaFbCP9\r\nMMVt+YPXGzYiV/h3lpwgN8Dg+4KBjmH8wSOftVF9+pj0ihV0dG2BM3ha4Axm\r\nGl2NAKr8bFdj8apyKhe+jljm/bWA5OWKrXFPxeHUqT7yM68Svw/WCyd2MiUz\r\nlIb07BhsIgltry582e+0VMrjy4539AzttpAkE9Ecq7DejxkKGjNP5wuJTCxd\r\nXTezRMQqqYdgQdL/nET0Vs6Tb8XodlWbg3gxomrli77PzcHtBL1U5KaWhlg1\r\njg/3q2a+XxrYpZUVavvX9nLBqe+ScPXuPOvCEYltqLE8Ta4fSJamHQAHSE5w\r\n/UevTFDHnMTK8mTxbkbAYiwDHU6KjSgEbd/4NoVooti03XDEC49CvuFCqTEd\r\nWeAzCU/EUl05tbtFlLRaelIt6GpR30HO8xu/odSv0toKwgk6YEGBEXEirtn4\r\ne16L0yMpQR/Rwk1CmJvyRBPlT1sOr0AIjOGNiCrMjiFGv8awIcsIVV/DF1KB\r\npflJe8ULyQclPreuV6yJ364ODhx+1Q+uCmP3YpBq7NMMuOgrcW3gtqfHYF3I\r\nD5qMJfGmNMWOjssxBfJ4+lKU21Jw+3GFRwk=\r\n=5PRG\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/types/main.d.ts","engines":{"node":">=14.18.0"},"exports":{"types":"./build/types/main.d.ts","default":"./build/src/main.js"},"gitHead":"11608e4d6615e8b34c7f1b4ce33ab5546e7219b9","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"8.19.3","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"_nodeVersion":"19.0.1","dependencies":{"guess-json-indent":"^1.4.0","string-byte-slice":"^1.5.0","string-byte-length":"^1.5.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.5.0","@ehmicky/dev-tasks":"^1.0.99"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.4.0_1667859652483_0.40427722198448457","host":"s3://npm-registry-packages"}},"1.5.0":{"name":"truncate-json","version":"1.5.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"MIT","_id":"truncate-json@1.5.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"ffb444cd520cd74eeb83b1d289ec92b9d225a584","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-1.5.0.tgz","fileCount":14,"integrity":"sha512-MegVQFZkA8silLelWzVGoUUMc2UOnmqR2Bjc5pfH5mEbHzxs9/Z/fxxRLulQ8bZszETUjA2KWTOrq1hwHMd2lA==","signatures":[{"sig":"MEUCICoiP6dkYPWQ6io5klXqLk/hOKrCwpj7ZUy0kxq6rlp0AiEAntWRri/hK6NSg57RQatvWLJG5urGWOsujCHF4G8H7xg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbpRmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPyQ//bCB70UxP6HT7pvFk63Cgizu1TWJVRL/0+MuEmPjTl01aG616\r\ncHUpP+ejZymNTGAOCzhh6OSjZmZ57aPJVWW+9SVYX5wSKqUXbbnuQkw198C0\r\nCmXBeGtBiiL99yZrElB4Kc7f6N9pqfIv4bEqqFBrfCPH3dOKA3hc9QV25dyv\r\nG0i34bR5naNmY8tJlZV22ykPZiiOmHwcSXx3d1o74Tal5CbAioJBpiB3uYyc\r\nPs+p4LQZiRApfHn++diYWUlbk8z07Sb+ZjSe74Euy8vtOEMY3tCkJ+SywuPL\r\nMVZcNjfL6yh2xxBqtBhKxrMuEvHOvXCTbpFd7Pe8ea1QuhCA5QqF6VQ141Vz\r\nTSOqvEdWTyzCeyAZzeDQ0vsU/VwtQadz8aOpRH40ODqbMon69Hxof1zkPDCO\r\n1yBVJLH8S4puo6sNp+6QHJyqxSIcL4/N0dmUnK5z1yXfI3rRa7lJp7Da+J6X\r\nnoGdbJbJxWn37wzzU/OePfJjqxqrgYH5slFKzcBDS9Uu0oywoOEGb1zKkUDW\r\nv4ifHqG9u5Fvv87m0VgEM9lTJlzlsH3ODRobzu88xuSJawDM187VO5nwTuPW\r\nUqAxB1TOhPn2UV+K/L5Zfuvd82WFjN74LJcqjcGkbzs/lypuV5OYw3fJI6pQ\r\nBJ3+eclzjLZyRc8/OR4sXFnTUZqy7yH6WLU=\r\n=nfww\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/src/main.js","type":"module","types":"./build/types/main.d.ts","engines":{"node":">=14.18.0"},"exports":{"types":"./build/types/main.d.ts","default":"./build/src/main.js"},"gitHead":"8dea587a29d1eb680d5e9e8e6a6d5a361ef7fe67","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"9.1.1","description":"Truncate a JSON string","directories":{"lib":"src","test":"test"},"sideEffects":false,"_nodeVersion":"19.0.1","dependencies":{"guess-json-indent":"^1.4.0","string-byte-slice":"^1.6.0","string-byte-length":"^1.6.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^5.5.0","@ehmicky/dev-tasks":"^1.0.102"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_1.5.0_1668191334183_0.3411474090418156","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"truncate-json","version":"2.0.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"MIT","_id":"truncate-json@2.0.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"390b60b47a1e71708e6ce80b7dd0050d179db604","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-2.0.0.tgz","fileCount":14,"integrity":"sha512-E19JmyQTnJSUFtN4fTNVjxlO48oMrfAknTntIltnAnks9ha5yLy1SpGk5k08SfxjuUJZT7ynW+sIDzy4tWaH6g==","signatures":[{"sig":"MEYCIQCNQjz5yvRp/I4TgrZ7l+V6gypU7O8uqc1oPJOqwjSJpAIhANrEDedDXcZVq/n5szlzesJ3ALcf/t8QyCt3sjuW6ofZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19096},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=16.17.0"},"exports":{"types":"./build/src/main.d.ts","default":"./build/src/main.js"},"gitHead":"dc347df3d6a0e585302d99e2cf8ce7793fbd8473","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"9.6.6","description":"Truncate a JSON string","directories":{"lib":"src"},"sideEffects":false,"_nodeVersion":"20.1.0","dependencies":{"guess-json-indent":"^2.0.0","string-byte-slice":"^2.0.0","string-byte-length":"^2.0.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^6.0.0","@ehmicky/dev-tasks":"^2.0.80"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_2.0.0_1684021595839_0.833309047134887","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"truncate-json","version":"3.0.0","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"author":{"url":"https://github.com/ehmicky","name":"ehmicky","email":"ehmicky@gmail.com"},"license":"MIT","_id":"truncate-json@3.0.0","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"homepage":"https://www.github.com/ehmicky/truncate-json","bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"dist":{"shasum":"f2279a9097c4407d6444a38cb28d72c3218df724","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-3.0.0.tgz","fileCount":14,"integrity":"sha512-CkSXeOifycZuzTOxY6v/mCRnHrtOsb9ccL5GW6qOFBTfVDXW+zPgaV8BJZzFgi88DnVjgnSZupzAxNsdXcmHCA==","signatures":[{"sig":"MEUCIQDLQKJHEWUdPfeMiPz7+1BP3oN0LC+lTYOLlroiYIBlvwIgVa2w3XvsBoxFFpFixfs3kz8CR4v4JCrDgOdxSRCfGsk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":19571},"main":"./build/src/main.js","type":"module","types":"./build/src/main.d.ts","engines":{"node":">=18.18.0"},"exports":{"types":"./build/src/main.d.ts","default":"./build/src/main.js"},"gitHead":"b42832f13945113d172fbbff4362ad6a5048abb7","scripts":{"test":"gulp test"},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"repository":{"url":"git+https://github.com/ehmicky/truncate-json.git","type":"git"},"_npmVersion":"10.2.1","description":"Truncate a JSON string","directories":{"lib":"src"},"sideEffects":false,"_nodeVersion":"21.1.0","dependencies":{"guess-json-indent":"^3.0.0","string-byte-slice":"^3.0.0","string-byte-length":"^3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"test-each":"^7.0.0","@ehmicky/dev-tasks":"^2.0.102"},"_npmOperationalInternal":{"tmp":"tmp/truncate-json_3.0.0_1698533127779_0.02361087091263303","host":"s3://npm-registry-packages"}},"3.0.1":{"name":"truncate-json","version":"3.0.1","type":"module","exports":{"types":"./build/src/main.d.ts","default":"./build/src/main.js"},"main":"./build/src/main.js","types":"./build/src/main.d.ts","sideEffects":false,"scripts":{"test":"gulp test"},"description":"Truncate a JSON string","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"license":"MIT","homepage":"https://www.github.com/ehmicky/truncate-json","repository":{"type":"git","url":"git+https://github.com/ehmicky/truncate-json.git"},"bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"directories":{"lib":"src"},"dependencies":{"guess-json-indent":"^3.0.1","string-byte-length":"^3.0.1","string-byte-slice":"^3.0.1"},"devDependencies":{"@ehmicky/dev-tasks":"^3.0.33","@ehmicky/eslint-config":"^20.0.31","@ehmicky/prettier-config":"^1.0.6","test-each":"^7.0.1"},"engines":{"node":">=18.18.0"},"_id":"truncate-json@3.0.1","gitHead":"020298574d1a0938079fb319199f665ac342c18a","_nodeVersion":"23.10.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-QVsbr1WhGLq2F0oDyYbqtOXcf3gcnL8C9H5EX8bBwAr8ZWvWGJzukpPrDrWgJMrNtgDbo74BIjI4kJu3q2xQWw==","shasum":"e19fe19b26647a400f895df8fb7295e9f0913c75","tarball":"https://registry.npmjs.org/truncate-json/-/truncate-json-3.0.1.tgz","fileCount":14,"unpackedSize":19243,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDq6tLytwPSuLy+dPHZMt/MP0FFEFWlL0cN9oD+Z+viIQIhAO8uxo/cGSNDcq5xpC5IE/n0w1zskCNJWUSmxjMedWWt"}]},"_npmUser":{"name":"ehmicky","email":"ehmicky@gmail.com"},"maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/truncate-json_3.0.1_1743217539178_0.4416452121049921"},"_hasShrinkwrap":false}},"time":{"created":"2022-08-11T15:50:04.843Z","modified":"2025-03-29T03:05:39.534Z","1.0.0":"2022-08-11T15:50:05.132Z","1.1.0":"2022-08-11T15:50:40.602Z","1.2.0":"2022-08-16T19:15:32.373Z","1.3.0":"2022-10-13T18:43:43.319Z","1.3.1":"2022-10-13T20:10:44.953Z","1.4.0":"2022-11-07T22:20:52.617Z","1.5.0":"2022-11-11T18:28:54.437Z","2.0.0":"2023-05-13T23:46:36.023Z","3.0.0":"2023-10-28T22:45:27.980Z","3.0.1":"2025-03-29T03:05:39.356Z"},"bugs":{"url":"https://github.com/ehmicky/truncate-json/issues"},"author":{"name":"ehmicky","email":"ehmicky@gmail.com","url":"https://github.com/ehmicky"},"license":"MIT","homepage":"https://www.github.com/ehmicky/truncate-json","keywords":["javascript","json","json-parser","length","library","limit","maximum","nodejs","parse","parsing","serialization","serialize","shortener","size","size-calculation","string","stringify","truncate","types","typescript"],"repository":{"type":"git","url":"git+https://github.com/ehmicky/truncate-json.git"},"description":"Truncate a JSON string","maintainers":[{"name":"ehmicky","email":"ehmicky@gmail.com"}],"readme":"[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/truncate-json)\n[![Browsers](https://img.shields.io/badge/-Browsers-808080?logo=firefox&colorA=404040)](https://unpkg.com/truncate-json?module)\n[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/src/main.d.ts)\n[![Codecov](https://img.shields.io/badge/-Tested%20100%25-808080?logo=codecov&colorA=404040)](https://codecov.io/gh/ehmicky/truncate-json)\n[![Minified size](https://img.shields.io/bundlephobia/minzip/truncate-json?label&colorA=404040&colorB=808080&logo=webpack)](https://bundlephobia.com/package/truncate-json)\n[![Mastodon](https://img.shields.io/badge/-Mastodon-808080.svg?logo=mastodon&colorA=404040&logoColor=9590F9)](https://fosstodon.org/@ehmicky)\n[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium&colorA=404040)](https://medium.com/@ehmicky)\n\nTruncate a JSON string.\n\n# Examples\n\n```js\nimport truncateJson from 'truncate-json'\n\n// Object properties and array items beyond `maxSize` are omitted.\nconst maxSize = 15\nconst jsonString = JSON.stringify({ a: 'one', b: 'two' })\nconsole.log(jsonString)\n// '{\"a\":\"one\",\"b\":\"two\"}' (21 bytes)\nconsole.log(truncateJson(jsonString, maxSize).jsonString)\n// '{\"a\":\"one\"}' (11 bytes)\n```\n\n```js\n// Works deeply inside objects and arrays\nconst jsonString = JSON.stringify([\n  'one',\n  { a: 'two', b: { c: 'three', d: 'four' } },\n  'five',\n])\nconsole.log(jsonString)\n// '[\"one\",{\"a\":\"two\",\"b\":{\"c\":\"three\",\"d\":\"four\"}},\"five\"]' (55 bytes)\nconst returnValue = truncateJson(jsonString, 40)\nconsole.log(returnValue.jsonString)\n// '[\"one\",{\"a\":\"two\",\"b\":{\"c\":\"three\"}}]' (37 bytes)\n\n// Omitted/truncated properties are returned\nconsole.log(returnValue.truncatedProps)\n// [\n//   { path: [ 1, 'b', 'd' ], value: 'four' },\n//   { path: [ 2 ], value: 'five' }\n// ]\nconst isTruncated = returnValue.truncatedProps.length !== 0\nconsole.log(isTruncated) // true\n```\n\n```js\n// Indentation is automatically detected and preserved\nconst jsonString = JSON.stringify({ a: 'one', b: 'two' }, undefined, 2)\nconsole.log(jsonString)\n// '{\n//   \"a\": \"one\",\n//   \"b\": \"two\"\n// }' (30 bytes)\nconsole.log(truncateJson(jsonString, 25).jsonString)\n// '{\n//   \"a\": \"one\"\n// }' (16 bytes)\n```\n\n```js\n// The top-level value can be any JSON type, not only objects or arrays\nconst jsonString = JSON.stringify('This is an example top-level string')\nconsole.log(truncateJson(jsonString, 25).jsonString)\n// '\"This is an example t...\"' (25 bytes)\n```\n\n# Install\n\n```bash\nnpm install truncate-json\n```\n\nThis package works in both Node.js >=18.18.0 and\n[browsers](https://raw.githubusercontent.com/ehmicky/dev-tasks/main/src/browserslist).\n\nThis is an ES module. It must be loaded using\n[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c),\nnot `require()`. If TypeScript is used, it must be configured to\n[output ES modules](https://www.typescriptlang.org/docs/handbook/esm-node.html),\nnot CommonJS.\n\n# API\n\n## truncateJson(jsonString, maxSize)\n\n`jsonString` `string`\\\n`maxSize` `number`\\\n_Return value_: [`object`](#return-value)\n\nTruncates a JSON string to `maxSize` bytes.\n\nAny object property or array item beyond the `maxSize` limit is completely\nomitted. Strings are not truncated, except when at the top-level.\n\n### Return value\n\nThe return value is an object with the following properties.\n\n#### jsonString\n\n_Type_: `string`\n\n`jsonString` after truncation has been applied.\n\n#### truncatedProps\n\n_Type_: `object[]`\n\nList of properties having been truncated/omitted.\n\n##### truncatedProps[*].path\n\n_Type_: `Array<string | number>`\n\nProperty path. This is an array of property keys and/or array indices.\n\n##### truncatedProps[*].value\n\n_Type_: `JsonValue`\n\nProperty value.\n\n# Related projects\n\n- [`is-json-value`](https://github.com/ehmicky/is-json-value): Check if a value\n  is valid JSON\n- [`safe-json-value`](https://github.com/ehmicky/safe-json-value): ⛑️ JSON\n  serialization should never fail\n- [`guess-json-indent`](https://github.com/ehmicky/guess-json-indent): Guess the\n  indentation of a JSON string\n- [`string-byte-length`](https://github.com/ehmicky/string-byte-length): Get the\n  UTF-8 byte length of a string\n- [`string-byte-slice`](https://github.com/ehmicky/string-byte-slice): Like\n  `string.slice()` but bytewise\n\n# Support\n\nFor any question, _don't hesitate_ to [submit an issue on GitHub](../../issues).\n\nEveryone is welcome regardless of personal background. We enforce a\n[Code of conduct](CODE_OF_CONDUCT.md) in order to promote a positive and\ninclusive environment.\n\n# Contributing\n\nThis project was made with ❤️. The simplest way to give back is by starring and\nsharing it online.\n\nIf the documentation is unclear or has a typo, please click on the page's `Edit`\nbutton (pencil icon) and suggest a correction.\n\nIf you would like to help us fix a bug or add a new feature, please check our\n[guidelines](CONTRIBUTING.md). Pull requests are welcome!\n\n<!-- Thanks go to our wonderful contributors: -->\n\n<!-- ALL-CONTRIBUTORS-LIST:START -->\n<!-- prettier-ignore -->\n<!--\n<table><tr><td align=\"center\"><a href=\"https://fosstodon.org/@ehmicky\"><img src=\"https://avatars2.githubusercontent.com/u/8136211?v=4\" width=\"100px;\" alt=\"ehmicky\"/><br /><sub><b>ehmicky</b></sub></a><br /><a href=\"https://github.com/ehmicky/truncate-json/commits?author=ehmicky\" title=\"Code\">💻</a> <a href=\"#design-ehmicky\" title=\"Design\">🎨</a> <a href=\"#ideas-ehmicky\" title=\"Ideas, Planning, & Feedback\">🤔</a> <a href=\"https://github.com/ehmicky/truncate-json/commits?author=ehmicky\" title=\"Documentation\">📖</a></td></tr></table>\n -->\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n","readmeFilename":"README.md"}