{"name":"smol-toml","version":"1.4.2","keywords":["toml","parser","serializer"],"author":{"name":"Cynthia","email":"cyyynthia@borkenware.com"},"license":"BSD-3-Clause","_id":"smol-toml@1.4.2","maintainers":[{"name":"cyyynthia","email":"cynthia@cynthia.dev"}],"homepage":"https://github.com/squirrelchat/smol-toml#readme","bugs":{"url":"https://github.com/squirrelchat/smol-toml/issues"},"dist":{"shasum":"46c4dcc71f982040085ee54b22377c96a4597ce3","tarball":"http://registry-npm.ywwl.com/smol-toml/download/smol-toml-1.4.2.tgz","fileCount":22,"integrity":"sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g==","signatures":[{"sig":"MEUCIAwEbdGblTeALCf4ckCoTqC2HQGrL2iHzZ6GWPNVK+ChAiEA0jGCKjNrfo01pZEGD46QP/27ySKWKSICnkJwjE5kITc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/smol-toml@1.4.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":104029,"size":19747,"noattachment":false,"key":"/smol-toml/-/smol-toml-1.4.2.tgz"},"main":"./dist/index.cjs","type":"module","_from":"file:smol-toml-1.4.2.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">= 18"},"exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"funding":"https://github.com/sponsors/cyyynthia","scripts":{"test":"vitest","bench":"vitest bench","build":"pnpm run build:mjs && pnpm run build:cjs && node test/package/package-test.mjs","test-ui":"vitest --ui","build:cjs":"esbuild dist/index.js --bundle --platform=node --target=node18 --format=cjs --outfile=dist/index.cjs","build:mjs":"tsc","update-gha":"pin-github-action .github/workflows"},"_npmUser":{"name":"cyyynthia","email":"cynthia@cynthia.dev"},"_resolved":"/tmp/7dd22159d39546367416ac33d2ce7623/smol-toml-1.4.2.tgz","_integrity":"sha512-rInDH6lCNiEyn3+hH8KVGFdbjc099j47+OSgbMrfDYX1CmXLfdKd7qi6IfcWj2wFxvSVkuI46M+wPGYfEOEj6g==","repository":{"url":"git+https://github.com/squirrelchat/smol-toml.git","type":"git"},"_npmVersion":"10.9.3","description":"A small, fast, and correct TOML parser/serializer","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.2.4","esbuild":"^0.25.5","fast-toml":"^0.5.4","@vitest/ui":"^3.2.4","typescript":"^5.8.3","@iarna/toml":"3.0.0","@ltd/j-toml":"^1.38.0","@types/node":"^24.0.7","pin-github-action":"^3.4.0","@tsconfig/node-lts":"^22.0.2","@tsconfig/strictest":"^2.0.5"},"_npmOperationalInternal":{"tmp":"tmp/smol-toml_1.4.2_1754756267723_0.5722536515020691","host":"s3://npm-registry-packages-npm-production"},"readme":"# smol-toml\n[![TOML 1.1.0](https://img.shields.io/badge/TOML-1.1.0-9c4221?style=flat-square)](https://toml.io/en/v1.1.0)\n[![License](https://img.shields.io/github/license/squirrelchat/smol-toml.svg?style=flat-square)](https://github.com/squirrelchat/smol-toml/blob/mistress/LICENSE)\n[![npm](https://img.shields.io/npm/v/smol-toml?style=flat-square)](https://npmx.dev/smol-toml)\n[![Build](https://img.shields.io/github/actions/workflow/status/squirrelchat/smol-toml/build.yaml?style=flat-square&logo=github)](https://github.com/squirrelchat/smol-toml/actions/workflows/build.yaml)\n\n[![GitHub Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-support%20me-EA4AAA?style=flat-square)](https://github.com/sponsors/cyyynthia)\n[![Weekly downloads](https://img.shields.io/npm/dw/smol-toml?style=flat-square)](https://npmx.dev/smol-toml)\n[![Monthly downloads](https://img.shields.io/npm/dm/smol-toml?style=flat-square)](https://npmx.dev/smol-toml)\n\nA small, fast, and correct TOML parser and serializer. smol-toml is fully(ish) spec-compliant with TOML v1.1.0.\n\nWhy yet another TOML parser? Well, the ecosystem of TOML parsers in JavaScript is quite underwhelming, most likely due\nto a lack of interest. With most parsers being outdated, unmaintained, non-compliant, or a combination of these, a new\nparser didn't feel too out of place.\n\n*[insert xkcd 927]*\n\nNowadays, smol-toml is the most downloaded TOML parser on npm thanks to its quality. From frameworks to tooling, it\nhas been battle-tested and is actively used in production systems.\n\nsmol-toml passes most of the tests from the [`toml-test` suite](https://github.com/toml-lang/toml-test); use the\n`run-toml-test.bash` script to run the tests. Due to the nature of JavaScript and the limits of the language,\nit doesn't pass certain tests, namely:\n- Invalid UTF-8 strings (and comments) are not rejected\n- Certain invalid dates are not rejected\n  - For instance, `2023-02-30` would be accepted and parsed as `2023-03-02`. While additional checks could be performed\n\tto reject these, they've not been added for performance reasons.\n\nPlease also note that by default, the behavior regarding integers doesn't preserve type information, nor does it allow\ndeserializing integers larger than 53 bits. See [Integers](#integers).\n\nYou can see a list of all tests smol-toml fails (and the reason why it fails these) in the list of skipped tests in\n`run-toml-test.bash`. Note that some failures are *not* specification violations per-se. For instance, the TOML spec\ndoes not require 64-bit integer range support or sub-millisecond time precision, but are included in the `toml-test`\nsuite. See https://github.com/toml-lang/toml-test/issues/154 and https://github.com/toml-lang/toml-test/issues/155\n\n## Installation\n```\n[pnpm | yarn | npm] i smol-toml\n```\n\n## Usage\n```js\nimport { parse, stringify } from 'smol-toml'\n\nconst doc = '...'\nconst parsed = parse(doc)\nconsole.log(parsed)\n\nconst toml = stringify(parsed)\nconsole.log(toml)\n```\n\nAlternatively, if you prefer something similar to the JSON global, you can import the library as follows\n```js\nimport * as TOML from 'smol-toml'\n\nTOML.stringify({ ... })\n```\n\nA few notes on the `stringify` function:\n- `undefined` and `null` values on objects are ignored (does not produce a key/value).\n- `undefined` and `null` values in arrays are **rejected**.\n- Functions, classes and symbols are **rejected**.\n- By default, floats will be serialized as integers if they don't have a decimal part. See [Integers](#integers)\n  - `stringify(parse('a = 1.0')) === 'a = 1'`\n- JS `Date` will be serialized as Offset Date Time\n  - Use the [Temporal API] for representing other types (or alternatively the legacy [`TomlDate` object](#dates)).\n\n### Integers\nWhen parsing, both integers and floats are read as plain JavaScript numbers, which essentially are floats. This means\nloss of type information, and makes it impossible to safely represent integers beyond 53 bits.\n\nWhen serializing, numbers without a decimal part are serialized as integers (except if they're outside of the safe\nrange; i.e. they cannot be represented as a signed 53-bit integer). This allows in most cases to preserve\nwhether a number is an integer or not, but fails to preserve type information for numbers like `1.0`.\n\n#### Enabling BigInt support and type preservation\nTo parse integers beyond 53 bits, it's possible to tell the parser to return all integers as BigInt. This will\ntherefore preserve the type information at the cost of using a slightly more expensive container.\n\n```js\nimport { parse } from 'smol-toml'\n\nconst doc = '...'\nconst parsed = parse(doc, { integersAsBigInt: true })\n```\n\nIf you want to keep numbers for integers that can safely be represented as a JavaScript number, you can pass\n`\"asNeeded\"` instead.\n\nTo get end-to-end type preservation, you can tell the serializer to always treat numbers as floating point numbers.\nThen, only BigInts will be serialized as integers and numbers without a decimal part will still be serialized as float.\n\n```js\nimport { stringify } from 'smol-toml'\n\nconst obj =  { ... }\nconst toml = stringify(obj, { numbersAsFloat: true })\n```\n\n### Dates\n`smol-toml` uses an extended `Date` object to represent all types of TOML Dates. In the future, `smol-toml` will emit\nobjects from the Temporal API, but for now it only supports `Date` when parsing. When stringifying, `smol-toml` does\nsupport objects from the [Temporal API] and will output the appropriate TOML type.\n\n> [!IMPORTANT]\n> If you create a `ZonedDateTime` with a timezone, it will be turned into an offset date-time; losing its precise timezone.\n>\n> For instance, if you create one with the timezone `Europe/Paris`, it'll be turned into an offset date-time `+02:00`\n> or `+01:00`, depending on the offset observed at the instant referred to by the date-time.\n>\n> ```js\n> Temporal.ZonedDateTime.from({ year: 2001, month: 9, day: 21, hour: 10, minute: 17, second: 0, timeZone: 'Europe/Paris' }).toString({ timeZoneName: 'never' })\n> // 2001-09-21T10:17:00+02:00\n> Temporal.ZonedDateTime.from({ year: 2012, month: 3, day: 19, hour: 8, minute: 0, second: 0, timeZone: 'Europe/Paris' }).toString({ timeZoneName: 'never' })\n> // 2012-03-19T08:00:00+01:00\n> ```\n\n```js\nimport { TomlDate } from 'smol-toml'\n\n// Offset Date Time\nconst date = new TomlDate('1979-05-27T07:32:00.000-08:00')\nconsole.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> true, false, false, false\nconsole.log(date.toISOString()) // ~> 1979-05-27T07:32:00.000-08:00\n\n// Local Date Time\nconst date = new TomlDate('1979-05-27T07:32:00.000')\nconsole.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> true, false, false, true\nconsole.log(date.toISOString()) // ~> 1979-05-27T07:32:00.000\n\n// Local Date\nconst date = new TomlDate('1979-05-27')\nconsole.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> false, true, false, true\nconsole.log(date.toISOString()) // ~> 1979-05-27\n\n// Local Time\nconst date = new TomlDate('07:32:00')\nconsole.log(date.isDateTime(), date.isDate(), date.isTime(), date.isLocal()) // ~> false, false, true, true\nconsole.log(date.toISOString()) // ~> 07:32:00.000\n```\n\nYou can also wrap a native `Date` object and specify using different methods depending on the type of date you wish\nto represent:\n\n```js\nimport { TomlDate } from 'smol-toml'\n\nconst jsDate = new Date()\n\nconst offsetDateTime = TomlDate.wrapAsOffsetDateTime(jsDate)\nconst localDateTime = TomlDate.wrapAsLocalDateTime(jsDate)\nconst localDate = TomlDate.wrapAsLocalDate(jsDate)\nconst localTime = TomlDate.wrapAsLocalTime(jsDate)\n```\n\n## Performance\nThe benchmark is ran using [mitata](https://github.com/evanwashere/mitata).\n\nParsers and serializers are tested in 2 scenarios: using the example from TOML's homepage and specification, and\nusing a ~5MB randomly generated[^generator] file.\n\n[^generator]: The TOML generator used can be found [here](https://gist.github.com/cyyynthia/e77c744cb6494dabe37d0182506526b9)\n\nWhile `fast-toml` is included as it's a challenging candidate, it takes a lot of shortcuts that makes it very fast,\nbut at the expense of correctness (it has significant defects and does not pass the TOML test suite). `smol-toml` is\nalmost as fast, without sacrificing correctness. 😎\n\n| **Parse**      | smol-toml@1.7.2    | @iarna/toml@3.0.0 | @ltd/j-toml@1.38.0 | fast-toml@0.5.4   | @std/toml@1.0.11 | toml@5.0.0     | js-toml@2.0.1  | @decimalturn/toml-patch@3.0.2 |\n|----------------|--------------------|-------------------|--------------------|-------------------|------------------|----------------|----------------|-------------------------------|\n| Spec example   | **4.16 µs/iter**   | 12.13 µs/iter     | 30.44 µs/iter      | 5.01 µs/iter      | 22.34 µs/iter    | 32.28 µs/iter  | 24.71 µs/iter  | 17.07 µs/iter                 |\n| ~5MB test file | *113.76 ms/iter*   | *DNF*             | 189.89 ms/iter     | **92.24 ms/iter** | 419.95 ms/iter   | 549.86 ms/iter | 336.03 ms/iter | 186.32 ms/iter                |\n\n| **Stringify**  | smol-toml@1.7.2    | @iarna/toml@3.0.0 | @ltd/j-toml@1.38.0 | fast-toml@0.5.4 | @std/toml@1.0.11 | toml@5.0.0     | js-toml@2.0.1  | @decimalturn/toml-patch@3.0.2 |\n|----------------|--------------------|-------------------|--------------------|-----------------|------------------|----------------|----------------|-------------------------------|\n| Spec example   | **2.29 µs/iter**   | 8.58 µs/iter      | 89.59 µs/iter      | N/A             | 3.96 µs/iter     | N/A            | 3.69 µs/iter   | N/A[^toml-patch-note]         |\n| ~5MB test file | **45.33 ms/iter**  | 130.01 ms/iter    | 928.19 ms/iter     | N/A             | 68.58 ms/iter    | N/A            | 110.26 ms/iter | N/A[^toml-patch-note]         |\n\n[^toml-patch-note]: Stringify performance is not included here, as the library is not meant to be fast, but rather\ncapable of doing precise non-destructive edits that preserve the entire document's shape and format. Putting it here\nwouldn't be fair.\n\n<details>\n<summary>Detailed benchmark data</summary>\n\n```\nnode --expose-gc bench/parse.bench.ts\nclk: ~5.52 GHz\ncpu: AMD Ryzen 9 9950X3D 16-Core Processor\nruntime: node 26.5.0 (x64-linux)\n\nbenchmark                   avg (min … max) p75 / p99    (min … top 1%)\n------------------------------------------- -------------------------------\n• spec document\n------------------------------------------- -------------------------------\nsmol-toml                      4.16 µs/iter   4.14 µs   █\n                       (3.99 µs … 91.94 µs)   4.95 µs  ▂█▃\n                    (  1.41 kb … 417.70 kb)   9.63 kb ▁███▅▃▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   4.01 ipc ( 99.54% cache)   19.70 branch misses\n         23.81k cycles  95.44k instructions   3.05k c-refs   14.12 c-misses\n\n@iarna/toml                   12.13 µs/iter  12.04 µs  █\n                     (11.59 µs … 133.43 µs)  15.94 µs  █▄\n                    (  0.00  b … 677.01 kb)  24.08 kb ▃██▄▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.97 ipc ( 99.63% cache)   75.32 branch misses\n         68.16k cycles 270.90k instructions  10.39k c-refs   38.82 c-misses\n\n@ltd/j-toml                   30.44 µs/iter  29.57 µs  █\n                       (28.19 µs … 1.18 ms)  44.30 µs  █▅\n                    (432.00  b … 692.05 kb)  27.57 kb ▂██▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.42 ipc ( 99.37% cache)  284.51 branch misses\n        169.50k cycles 579.61k instructions  25.59k c-refs  162.02 c-misses\n\nfast-toml                      5.01 µs/iter   4.98 µs   ▄█\n                       (4.75 µs … 90.47 µs)   5.84 µs   ██▃\n                    (336.00  b … 302.06 kb)  12.56 kb ▁▅███▆▅▃▂▂▁▁▁▁▁▁▁▁▁▁▁\n                   4.40 ipc ( 99.53% cache)   25.73 branch misses\n         28.21k cycles 124.23k instructions   3.76k c-refs   17.82 c-misses\n\ndeno's @std/toml              22.34 µs/iter  22.15 µs  █▅\n                     (20.78 µs … 155.43 µs)  36.68 µs  ██\n                    (  1.52 kb … 547.05 kb)  64.73 kb ▂██▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.80 ipc ( 99.53% cache)  111.24 branch misses\n        124.05k cycles 471.06k instructions  21.13k c-refs  100.20 c-misses\n\nnode-toml                     32.28 µs/iter  31.78 µs  █\n                     (30.33 µs … 221.49 µs)  53.65 µs  █\n                    (  2.00 kb … 968.27 kb) 109.52 kb ▆█▄▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.89 ipc ( 99.18% cache)  193.02 branch misses\n        178.72k cycles 695.61k instructions  29.40k c-refs  240.75 c-misses\n\njs-toml                       24.71 µs/iter  23.17 µs  ▅█\n                     (21.20 µs … 731.20 µs)  39.47 µs  ██\n                    (744.00  b … 861.36 kb)  92.95 kb ▂██▅▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.79 ipc ( 98.12% cache)  205.75 branch misses\n        134.81k cycles 510.43k instructions  19.00k c-refs  357.65 c-misses\n\n@decimalturn/toml-patch       17.07 µs/iter  16.85 µs  █▆\n                     (15.93 µs … 224.97 µs)  23.30 µs  ██\n                    (632.00  b … 635.14 kb)  55.51 kb ▂██▇▃▂▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁\n                   3.56 ipc ( 99.37% cache)   73.96 branch misses\n         95.58k cycles 339.88k instructions  18.52k c-refs  116.43 c-misses\n\nsummary\n  smol-toml\n   1.2x faster than fast-toml\n   2.92x faster than @iarna/toml\n   4.1x faster than @decimalturn/toml-patch\n   5.37x faster than deno's @std/toml\n   5.94x faster than js-toml\n   7.31x faster than @ltd/j-toml\n   7.76x faster than node-toml\n\n• 5MB document\n------------------------------------------- -------------------------------\nsmol-toml                    113.76 ms/iter 115.67 ms      █     █   █\n                    (106.25 ms … 121.53 ms) 118.63 ms ▅    █   ▅ █ ▅ █ ▅  ▅\n                    ( 37.31 mb …  49.50 mb)  43.97 mb █▁▁▁▁█▁▁▁█▁█▁█▁█▁█▁▁█\n                   2.47 ipc ( 98.58% cache)   3.12M branch misses\n        606.38M cycles   1.50G instructions  78.32M c-refs   1.11M c-misses\n\n@iarna/toml                  error: Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z at row 5, col 45, pos 569:\n4: NfF6LuAerfn5mDPI7Cp 2qsrB4vGmJTyb5jNubOIBYYWrWlAsrw PX93S57gjb5GEhR8qOU5blDQmwfVJTA YvmJ9cE3cUZU NAJQgAbIdpZLhc4lOs4ZhMEWehhZqXCsVD1YP1vN2GEoM2WX''', 1986-05-27T18:36:13Z, -5460, \"2ZAV3fYlb23hf7r7QoftVlicWE2iuwp\", 4790.2253 ]\n5> SzeC4Me8T = [ 5928.9340, 1991-04-28 19:24:24, 7807, -782.4516, 0b1000011111, \"YvXRZKBGle9d51sqE90t8hP\" ]\n                                               ^\n6: SLMvBirT.pmpX1D.9PivpfFBo = 2010-09-29\n\n\n\n@ltd/j-toml                  189.89 ms/iter 197.10 ms    ██        █\n                    (172.17 ms … 237.08 ms) 210.60 ms ▅ ▅██ ▅  ▅   █      ▅\n                    ( 19.71 mb …  56.03 mb)  36.30 mb █▁███▁█▁▁█▁▁▁█▁▁▁▁▁▁█\n                   2.41 ipc ( 97.92% cache)   3.88M branch misses\n          1.03G cycles   2.49G instructions 143.96M c-refs   3.00M c-misses\n\nfast-toml                     92.24 ms/iter  95.41 ms █      █\n                      (88.83 ms … 96.21 ms)  96.00 ms █ ▅  ▅▅█▅         ▅▅▅\n                    ( 13.32 mb …  34.90 mb)  24.06 mb █▁█▁▁████▁▁▁▁▁▁▁▁▁███\n                   2.90 ipc ( 98.44% cache)   2.44M branch misses\n        495.57M cycles   1.44G instructions  56.61M c-refs 881.60k c-misses\n\ndeno's @std/toml             419.95 ms/iter 428.09 ms        █\n                    (408.44 ms … 434.51 ms) 431.58 ms █      █\n                    (182.20 mb … 203.81 mb) 188.26 mb ██▁▁▁█▁█▁▁▁▁▁▁█▁▁██▁█\n                   3.28 ipc ( 97.22% cache)   6.72M branch misses\n          2.27G cycles   7.46G instructions 215.21M c-refs   5.98M c-misses\n\nnode-toml                    549.86 ms/iter 559.64 ms    █         █\n                    (527.73 ms … 574.83 ms) 571.47 ms ▅▅ █ ▅   ▅   █ ▅   ▅▅\n                    ( 21.62 mb …  74.99 mb)  46.84 mb ██▁█▁█▁▁▁█▁▁▁█▁█▁▁▁██\n                   4.24 ipc ( 96.62% cache)   6.29M branch misses\n          2.95G cycles  12.49G instructions 236.46M c-refs   7.99M c-misses\n\njs-toml                      336.03 ms/iter 328.58 ms  █\n                    (310.28 ms … 431.93 ms) 379.93 ms ▅█   ▅\n                    (267.75 mb … 279.44 mb) 273.42 mb ██▁▁▇█▁▁▁▁▁▁▁▁▁▇▁▁▁▁▇\n                   2.02 ipc ( 94.74% cache)   5.08M branch misses\n          1.65G cycles   3.33G instructions 113.18M c-refs   5.95M c-misses\n\n@decimalturn/toml-patch      186.32 ms/iter 185.91 ms          █  █\n                    (178.55 ms … 209.69 ms) 190.20 ms ▅  ▅▅    █ ▅█▅ ▅    ▅\n                    ( 22.18 mb …  62.13 mb)  26.09 mb █▁▁██▁▁▁▁█▁███▁█▁▁▁▁█\n                   2.90 ipc ( 97.50% cache)   3.72M branch misses\n        999.99M cycles   2.90G instructions 120.73M c-refs   3.01M c-misses\n\nsummary\n  fast-toml\n   1.23x faster than smol-toml\n   2.02x faster than @decimalturn/toml-patch\n   2.06x faster than @ltd/j-toml\n   3.64x faster than js-toml\n   4.55x faster than deno's @std/toml\n   5.96x faster than node-toml\nnode --expose-gc bench/stringify.bench.ts\nclk: ~5.52 GHz\ncpu: AMD Ryzen 9 9950X3D 16-Core Processor\nruntime: node 26.5.0 (x64-linux)\n\nbenchmark                   avg (min … max) p75 / p99    (min … top 1%)\n------------------------------------------- -------------------------------\n• spec document\n------------------------------------------- -------------------------------\nsmol-toml                      2.29 µs/iter   2.30 µs      ▅   █\n                        (2.26 µs … 2.33 µs)   2.33 µs ▆▆ ▃▆█  ██▃ ▃\n                    (  4.28 kb …   4.65 kb)   4.54 kb █████████████▄▆▄▄▁▄▆▄\n                   4.45 ipc ( 99.40% cache)    5.23 branch misses\n         12.67k cycles  56.39k instructions  909.08 c-refs    5.43 c-misses\n\n@iarna/toml                    8.58 µs/iter   8.57 µs    █\n                        (8.54 µs … 8.79 µs)   8.63 µs  ████  █\n                    (509.76  b …   1.39 kb) 574.04  b █████▁██▁▁▁▁▁▁▁█▁▁▁▁█\n                   3.99 ipc ( 99.30% cache)   24.95 branch misses\n         48.05k cycles 191.70k instructions   6.20k c-refs   43.23 c-misses\n\n@ltd/j-toml                   89.59 µs/iter  89.41 µs       █\n                     (70.85 µs … 242.29 µs) 127.85 µs       █\n                    (  4.02 kb … 375.16 kb)  37.41 kb ▁▁▂▂▁▁█▇▃▁▁▁▁▁▁▁▁▁▁▁▁\n                   4.16 ipc ( 99.69% cache)  721.33 branch misses\n        495.22k cycles   2.06M instructions  28.23k c-refs   88.81 c-misses\n\ndeno's @std/toml               3.96 µs/iter   3.96 µs    █   ▄ ▄\n                        (3.91 µs … 4.43 µs)   4.01 µs  ▅██ █▅█ █\n                    (803.91  b …   3.95 kb) 965.01  b ▅███▅███▅█▅▅▅▅▁▁▁▁▅▁▅\n                   3.85 ipc ( 99.45% cache)   11.59 branch misses\n         22.20k cycles  85.43k instructions   3.02k c-refs   16.58 c-misses\n\njs-toml                        3.69 µs/iter   3.71 µs   █ ▄\n                        (3.65 µs … 3.82 µs)   3.77 µs  ▅█▅██  █▅█\n                    (  6.46 kb …   7.23 kb)   7.10 kb ██████▅████▅▁█▁▁▁▅▁▁▅\n                   4.14 ipc ( 98.79% cache)   11.99 branch misses\n         20.62k cycles  85.48k instructions   1.97k c-refs   23.80 c-misses\n\n@decimalturn/toml-patch       48.60 µs/iter  48.28 µs  █\n                     (45.59 µs … 296.88 µs)  81.95 µs  █\n                    (128.00  b … 703.46 kb)  93.31 kb ▆█▇▃▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁\n                   4.05 ipc ( 99.26% cache)  533.40 branch misses\n        270.34k cycles   1.09M instructions  37.72k c-refs  278.17 c-misses\n\nsummary\n  smol-toml\n   1.61x faster than js-toml\n   1.73x faster than deno's @std/toml\n   3.75x faster than @iarna/toml\n   21.25x faster than @decimalturn/toml-patch\n   39.18x faster than @ltd/j-toml\n\n• 5MB document\n------------------------------------------- -------------------------------\nsmol-toml                     45.33 ms/iter  46.14 ms         █    █\n                      (42.89 ms … 48.08 ms)  47.97 ms ▅▅ ▅ ▅  █▅   █ ▅    ▅\n                    (  9.41 mb …  35.68 mb)  12.98 mb ██▁█▁█▁▁██▁▁▁█▁█▁▁▁▁█\n                   1.98 ipc ( 94.06% cache)   1.62M branch misses\n        234.88M cycles 464.38M instructions  12.57M c-refs 746.25k c-misses\n\n@iarna/toml                  130.01 ms/iter 130.79 ms █   █\n                    (127.84 ms … 135.01 ms) 132.06 ms █  ▅█ ▅▅     ▅▅   ▅ ▅\n                    ( 23.69 mb …  51.95 mb)  41.55 mb █▁▁██▁██▁▁▁▁▁██▁▁▁█▁█\n                   2.54 ipc ( 96.96% cache)   4.31M branch misses\n        707.33M cycles   1.80G instructions  73.12M c-refs   2.22M c-misses\n\n@ltd/j-toml                  928.19 ms/iter 933.90 ms                     █\n                    (903.30 ms … 940.61 ms) 934.55 ms               █     █\n                    (  1.89 mb …  32.62 mb)  12.57 mb █▁▁▁▁▁▁▁▁▁▁█▁▁██▁████\n                   4.02 ipc ( 99.15% cache)   7.29M branch misses\n          5.09G cycles  20.45G instructions 194.29M c-refs   1.66M c-misses\n\ndeno's @std/toml              68.58 ms/iter  70.20 ms      █\n                      (63.51 ms … 78.12 ms)  75.83 ms ▅    █\n                    ( 29.19 mb …  62.19 mb)  33.69 mb █▁▁▇▁█▇▁▁▁▁▇▁▁▇▁▁▁▁▁▇\n                   2.14 ipc ( 94.82% cache)   1.78M branch misses\n        341.59M cycles 731.18M instructions  26.60M c-refs   1.38M c-misses\n\njs-toml                      110.26 ms/iter 111.58 ms    █\n                    (106.23 ms … 118.30 ms) 116.43 ms    █\n                    ( 31.58 mb …  62.06 mb)  43.79 mb ▇▁▇█▇▇▁▁▁▁▇▁▁▁▁▁▁▇▁▁▇\n                   2.29 ipc ( 96.17% cache)   3.09M branch misses\n        596.81M cycles   1.36G instructions  41.90M c-refs   1.60M c-misses\n\n@decimalturn/toml-patch      933.72 ms/iter 950.61 ms █               █   █\n                    (898.60 ms … 969.27 ms) 955.92 ms █    ▅ ▅▅  ▅    █ ▅ █\n                    (119.41 mb … 147.95 mb) 122.51 mb █▁▁▁▁█▁██▁▁█▁▁▁▁█▁█▁█\n                   3.20 ipc ( 93.32% cache)  12.50M branch misses\n          5.05G cycles  16.18G instructions 694.63M c-refs  46.41M c-misses\n\nsummary\n  smol-toml\n   1.51x faster than deno's @std/toml\n   2.43x faster than js-toml\n   2.87x faster than @iarna/toml\n   20.48x faster than @ltd/j-toml\n   20.6x faster than @decimalturn/toml-patch\n```\n\n</details>\n\n[Temporal API]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Temporal\n","publish_time":1754756267907,"_cnpm_publish_time":1754756267907,"dist-tags":{"latest":"1.9.1"}}