{
  "_id": "6a1f012cb401979e7341af85",
  "Package": "fansi",
  "Title": "ANSI Control Sequence Aware String Functions",
  "Description": "Counterparts to R string manipulation functions that\naccount for the effects of ANSI text formatting control\nsequences.",
  "Version": "1.0.7",
  "Authors@R": "c(\nperson(\"Brodie\", \"Gaslam\", email=\"brodie.gaslam@yahoo.com\",\nrole=c(\"aut\", \"cre\")),\nperson(\"Elliott\", \"Sales De Andrade\", role=\"ctb\"),\nperson(given=\"R Core Team\",\nemail=\"R-core@r-project.org\", role=\"cph\",\ncomment=\"UTF8 byte length calcs from src/util.c\"\n),\nperson(\"Michael\",\"Chirico\", role=\"ctb\",\nemail=\"michaelchirico4@gmail.com\", comment = c(ORCID=\"0000-0003-0787-087X\")\n),\nperson(given = \"Unicode, Inc.\",\nrole = c(\"cph\", \"dtc\"),\ncomment = \"Unicode Character Database derivative data in src/width.c\")\n)",
  "License": "GPL-2 | GPL-3",
  "URL": "https://github.com/brodieG/fansi",
  "BugReports": "https://github.com/brodieG/fansi/issues",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE, load = \"installed\")",
  "Encoding": "UTF-8",
  "Collate": "'constants.R' 'fansi-package.R' 'internal.R' 'load.R' 'misc.R'\n'nchar.R' 'strwrap.R' 'strtrim.R' 'strsplit.R' 'substr2.R'\n'trimws.R' 'tohtml.R' 'unhandled.R' 'normalize.R' 'sgr.R'",
  "Repository": "https://brodieg.r-universe.dev",
  "Date/Publication": "2025-11-19 19:40:19 UTC",
  "RemoteUrl": "https://github.com/brodieg/fansi",
  "RemoteRef": "HEAD",
  "RemoteSha": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-18 08:41:23 UTC",
    "User": "root"
  },
  "Author": "Brodie Gaslam [aut, cre],\nElliott Sales De Andrade [ctb],\nR Core Team [cph] (UTF8 byte length calcs from src/util.c),\nMichael Chirico [ctb] (ORCID: <https://orcid.org/0000-0003-0787-087X>),\nUnicode, Inc. [cph, dtc] (Unicode Character Database derivative data in\nsrc/width.c)",
  "Maintainer": "Brodie Gaslam <brodie.gaslam@yahoo.com>",
  "MD5sum": "4144cd3a8dc82e397c45cea8e0fa8818",
  "_user": "brodieg",
  "_type": "src",
  "_file": "fansi_1.0.7.tar.gz",
  "_fileid": "1c182c66fe6af11cbc0eee2a27ec7efc4b5fdb6f3d75b32c47a758e314de021e",
  "_filesize": 960820,
  "_sha256": "1c182c66fe6af11cbc0eee2a27ec7efc4b5fdb6f3d75b32c47a758e314de021e",
  "_created": "2026-05-18T08:41:23.000Z",
  "_published": "2026-06-02T16:13:32.793Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79117659475,
      "time": 128,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7053237241"
    },
    {
      "job": 79117658488,
      "time": 126,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7053236424"
    },
    {
      "job": 79117659933,
      "time": 126,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053236149"
    },
    {
      "job": 79117660414,
      "time": 126,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053236448"
    },
    {
      "job": 79117659835,
      "time": 221,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7053254850"
    },
    {
      "job": 79117659246,
      "time": 366,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7053310424"
    },
    {
      "job": 79117659023,
      "time": 154,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053233944"
    },
    {
      "job": 79117658646,
      "time": 222,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053260488"
    },
    {
      "job": 79117658295,
      "time": 206,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053193041"
    },
    {
      "job": 79117657865,
      "time": 101,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7363397909"
    },
    {
      "job": 79117658745,
      "time": 112,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7053231379"
    },
    {
      "job": 79117659601,
      "time": 142,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7053241520"
    },
    {
      "job": 79117658800,
      "time": 99,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7053227445"
    }
  ],
  "_buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/brodieg/fansi",
  "_commit": {
    "id": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
    "author": "brodieG <brodieG@users.noreply.github.com>",
    "committer": "brodieG <brodieG@users.noreply.github.com>",
    "message": "v1.0.7 CRAN MTN release\n",
    "time": 1763581219
  },
  "_maintainer": {
    "name": "Brodie Gaslam",
    "email": "brodie.gaslam@yahoo.com",
    "login": "brodieg",
    "description": "Hobbyist programmer based on the East Coast of the USA.  Interested in data analysis and visualization.",
    "uuid": 6105908
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.1.0",
      "role": "Depends"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "unitizer",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "brodieg",
  "_selfowned": true,
  "_usedby": 206,
  "_updates": [
    {
      "week": "2025-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v1.0.7",
      "date": "2025-11-19"
    }
  ],
  "_topics": [
    "string-manipulation"
  ],
  "_stars": 55,
  "_contributors": [
    {
      "user": "brodieg",
      "count": 1538,
      "uuid": 6105908
    },
    {
      "user": "michaelchirico",
      "count": 3,
      "uuid": 7606389
    },
    {
      "user": "qulogic",
      "count": 1,
      "uuid": 302469
    }
  ],
  "_userbio": {
    "uuid": 6105908,
    "type": "user",
    "name": "Brodie Gaslam",
    "description": "Hobbyist programmer based on the East Coast of the USA.  Interested in data analysis and visualization."
  },
  "_downloads": {
    "count": 204359,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/fansi"
  },
  "_devurl": "https://github.com/brodieg/fansi",
  "_searchresults": 136,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/fansi.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/brodieg/fansi",
  "_realowner": "brodieg",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.1",
      "date": "2018-03-28"
    },
    {
      "version": "0.2.2",
      "date": "2018-03-31"
    },
    {
      "version": "0.2.3",
      "date": "2018-05-06"
    },
    {
      "version": "0.3.0",
      "date": "2018-08-13"
    },
    {
      "version": "0.4.0",
      "date": "2018-10-05"
    },
    {
      "version": "0.4.1",
      "date": "2020-01-09"
    },
    {
      "version": "0.4.2",
      "date": "2021-01-15"
    },
    {
      "version": "0.5.0",
      "date": "2021-05-25"
    },
    {
      "version": "1.0.0",
      "date": "2022-01-10"
    },
    {
      "version": "1.0.2",
      "date": "2022-01-15"
    },
    {
      "version": "1.0.3",
      "date": "2022-03-24"
    },
    {
      "version": "1.0.4",
      "date": "2023-01-22"
    },
    {
      "version": "1.0.5",
      "date": "2023-10-08"
    },
    {
      "version": "1.0.6",
      "date": "2023-12-08"
    },
    {
      "version": "1.0.7",
      "date": "2025-11-19"
    }
  ],
  "_exports": [
    "close_state",
    "dflt_css",
    "dflt_term_cap",
    "fansi_lines",
    "fansi_unicode_version",
    "fwl",
    "has_ctl",
    "has_sgr",
    "html_code_block",
    "html_esc",
    "in_html",
    "make_styles",
    "nchar_ctl",
    "nchar_sgr",
    "normalize_state",
    "nzchar_ctl",
    "nzchar_sgr",
    "set_knit_hooks",
    "sgr_256",
    "sgr_to_html",
    "state_at_end",
    "strip_ctl",
    "strip_sgr",
    "strsplit_ctl",
    "strsplit_sgr",
    "strtrim_ctl",
    "strtrim_sgr",
    "strtrim2_ctl",
    "strtrim2_sgr",
    "strwrap_ctl",
    "strwrap_sgr",
    "strwrap2_ctl",
    "strwrap2_sgr",
    "substr_ctl",
    "substr_ctl<-",
    "substr_sgr",
    "substr2_ctl",
    "substr2_ctl<-",
    "substr2_sgr",
    "tabs_as_spaces",
    "term_cap_test",
    "to_html",
    "trimws_ctl",
    "unhandled_ctl"
  ],
  "_help": [
    {
      "page": "dflt_term_cap",
      "title": "Default Arg Helper Funs",
      "topics": [
        "dflt_css",
        "dflt_term_cap"
      ]
    },
    {
      "page": "fansi",
      "title": "Details About Manipulation of Strings Containing Control Sequences",
      "topics": [
        "fansi-package",
        "fansi"
      ]
    },
    {
      "page": "fansi_lines",
      "title": "Colorize Character Vectors",
      "topics": [
        "fansi_lines"
      ]
    },
    {
      "page": "fansi_unicode_version",
      "title": "Report Unicode Database Version In-use",
      "topics": [
        "fansi_unicode_version"
      ]
    },
    {
      "page": "has_ctl",
      "title": "Check for Presence of Control Sequences",
      "topics": [
        "has_ctl"
      ]
    },
    {
      "page": "html_code_block",
      "title": "Format Character Vector for Display as Code in HTML",
      "topics": [
        "html_code_block"
      ]
    },
    {
      "page": "html_esc",
      "title": "Escape Characters With Special HTML Meaning",
      "concept": [
        "HTML functions"
      ],
      "topics": [
        "html_esc"
      ]
    },
    {
      "page": "in_html",
      "title": "Frame HTML in a Web Page And Display",
      "concept": [
        "HTML functions"
      ],
      "topics": [
        "in_html"
      ]
    },
    {
      "page": "make_styles",
      "title": "Generate CSS Mapping Classes to Colors",
      "concept": [
        "HTML functions"
      ],
      "topics": [
        "make_styles"
      ]
    },
    {
      "page": "nchar_ctl",
      "title": "Control Sequence Aware Version of nchar",
      "topics": [
        "nchar_ctl",
        "nzchar_ctl"
      ]
    },
    {
      "page": "normalize_state",
      "title": "Normalize CSI and OSC Sequences",
      "topics": [
        "normalize_state"
      ]
    },
    {
      "page": "set_knit_hooks",
      "title": "Set an Output Hook Convert Control Sequences to HTML in Rmarkdown",
      "topics": [
        "set_knit_hooks"
      ]
    },
    {
      "page": "sgr_256",
      "title": "Show 8 Bit CSI SGR Colors",
      "topics": [
        "sgr_256"
      ]
    },
    {
      "page": "state_at_end",
      "title": "Utilities for Managing CSI and OSC State In Strings",
      "topics": [
        "close_state",
        "state_at_end"
      ]
    },
    {
      "page": "strip_ctl",
      "title": "Strip Control Sequences",
      "topics": [
        "strip_ctl"
      ]
    },
    {
      "page": "strsplit_ctl",
      "title": "Control Sequence Aware Version of strsplit",
      "topics": [
        "strsplit_ctl"
      ]
    },
    {
      "page": "strtrim_ctl",
      "title": "Control Sequence Aware Version of strtrim",
      "topics": [
        "strtrim2_ctl",
        "strtrim_ctl"
      ]
    },
    {
      "page": "strwrap_ctl",
      "title": "Control Sequence Aware Version of strwrap",
      "topics": [
        "strwrap2_ctl",
        "strwrap_ctl"
      ]
    },
    {
      "page": "substr_ctl",
      "title": "Control Sequence Aware Version of substr",
      "topics": [
        "substr2_ctl",
        "substr2_ctl<-",
        "substr_ctl",
        "substr_ctl<-"
      ]
    },
    {
      "page": "tabs_as_spaces",
      "title": "Replace Tabs With Spaces",
      "topics": [
        "tabs_as_spaces"
      ]
    },
    {
      "page": "term_cap_test",
      "title": "Test Terminal Capabilities",
      "topics": [
        "term_cap_test"
      ]
    },
    {
      "page": "to_html",
      "title": "Convert Control Sequences to HTML Equivalents",
      "concept": [
        "HTML functions"
      ],
      "topics": [
        "to_html"
      ]
    },
    {
      "page": "trimws_ctl",
      "title": "Control Sequence Aware Version of trimws",
      "topics": [
        "trimws_ctl"
      ]
    },
    {
      "page": "unhandled_ctl",
      "title": "Identify Unhandled Control Sequences",
      "topics": [
        "unhandled_ctl"
      ]
    }
  ],
  "_readme": "https://github.com/brodieg/fansi/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "sgr-in-rmd.Rmd",
      "filename": "sgr-in-rmd.html",
      "title": "ANSI CSI SGR Sequences in Rmarkdown",
      "author": "Brodie Gaslam",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Browsers Do Not Interpret ANSI CSI SGR Sequences",
        "Automatically Convert ANSI CSI SGR to HTML"
      ],
      "created": "2018-08-12 16:07:32",
      "modified": "2022-01-10 01:00:22",
      "commits": 3
    }
  ],
  "_score": 11.975283841814038,
  "_indexed": true,
  "_nocasepkg": "fansi",
  "_universes": [
    "brodieg"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:25.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "13e24ce905ba6aa0b5a28097d121906560fce26b06c623d2284fa46a72f0ed70",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "77023c657aee2826e4126930da96dbd1fffa45c93b65fd436292f81305009f8f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:23.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "27b614b449119d2807a9f25ddc7c06ddc90f591c8fe785debaa3b63d173eba8b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:21.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "e66ceb62fe24736cf8aa652d075573b5356c0c3ec95735c813b2526a68b96f77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.7",
      "date": "2026-05-18T08:44:17.000Z",
      "arch": "aarch64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "8e8717f85e4929d2811b0ba7c4af2a8964c36d182fa8cfa246790b05b47105a0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.7",
      "date": "2026-05-18T08:46:35.000Z",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "069e593db7b2f63ea10c70c9c0158c2370d90f896a88571fca232d82c126e0ab",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:21.000Z",
      "arch": "aarch64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "f67df1bfc8fd79eafdc8bc87aa71c9941ef773941f9a69508803cdef8c0802ac",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.7",
      "date": "2026-05-18T08:44:21.000Z",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "ac302ce5ccf208b56e175b12784169340858badf7c647780173103889bdc8c29",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.7",
      "date": "2026-05-18T08:42:45.000Z",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "db510f1370cd1cc90267ff92a66a96cb9775a6f50bd417869f99735b91cd474b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.7",
      "date": "2026-05-18T08:43:06.000Z",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "3a52f96f9d47b29177da888cfb7e65a4b6ea097ec1d9608231ed3237427766c8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.7",
      "date": "2026-05-18T08:42:33.000Z",
      "arch": "x86_64",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "258147710fe002f178163725c2a6999dfc06b2bd82acdcd558a0020611a780f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.7",
      "date": "2026-06-02T16:13:11.000Z",
      "arch": "emscripten",
      "commit": "292a2de8812b74ad02f1b47d615bf3fdf224adb6",
      "fileid": "d17f0e153520166c190b87b9df5f88d571b4a0a75762a20c6821e05ce664f468",
      "status": "success",
      "buildurl": "https://github.com/r-universe/brodieg/actions/runs/26022683552"
    }
  ]
}