15 个仓库
Utilities for handling special characters within string literals.
Explore 15 awesome GitHub repositories matching programming languages & runtimes · String Escapers. Refine with filters or upvote what's useful.
Typst is a programmable, markup-based typesetting engine designed for professional document creation. It functions as a scriptable publishing toolchain that transforms plain text and code into complex, paginated outputs. By utilizing a high-performance compiler, the system automates document assembly, mathematical rendering, and dynamic content generation, providing a unified workflow for academic and technical authoring. The engine distinguishes itself through a declarative layout framework that uses cascading rules to manage document structure and visual styling. Unlike traditional systems,
Handles special characters like newlines and quotes within text literals using standard escape sequences for accurate rendering.
Toon is a data serialization library and toolkit designed to convert complex objects into compact, human-readable formats optimized for large language models. By focusing on token efficiency, the library minimizes the context window footprint of structured data through techniques like key folding and tabular layout optimization. It provides a streaming-capable processor that handles the encoding and decoding of hierarchical data while maintaining structural integrity. The project distinguishes itself through its path-aware transformation pipeline and configurable serialization logic, which al
Provides utilities for handling special characters and control symbols within serialized string data to ensure parsing integrity.
simdjson is a high-performance, header-only C++ library designed for parsing, querying, and serializing JSON data with minimal memory overhead. It functions as a hardware-aware data processing engine that leverages vector instructions to achieve gigabyte-per-second parsing speeds. By detecting host processor capabilities at runtime, the library automatically selects the most efficient instruction sets to accelerate structural analysis and validation. The library distinguishes itself through a focus on extreme efficiency and resource management. It utilizes memory mapping and padded buffer ali
Ensures special characters are correctly escaped and encoded to maintain valid JSON string syntax.
Crystal is a statically typed, compiled programming language designed for high performance and memory safety. It leverages an LLVM-based compiler to translate source code into optimized machine-executable binaries, while its type-inference-based static analysis enforces strict safety rules during the build process. The language distinguishes itself through a fiber-based concurrent runtime that manages lightweight execution units for asynchronous input and output without blocking the main process. It also features a powerful compile-time macro system that allows for the inspection and transfor
Encodes non-printable characters and backslashes within string literals using backslash-prefixed sequences.
Hammerspoon is a programmable automation engine for macOS that enables deep system-level control through a Lua scripting environment. By bridging high-level scripts with native Objective-C APIs, it allows users to interact with the operating system's accessibility tree, intercept hardware input streams, and manage the lifecycle of running applications. The project distinguishes itself through an event-driven architecture that registers asynchronous hooks for system notifications and hardware events. This allows for real-time automation, such as remapping keyboard and mouse inputs, managing wi
Converts non-printable characters to hexadecimal sequences for readable console output.
pq is a PostgreSQL driver for Go that implements the standard database/sql interface. It serves as a connection library and protocol implementation that translates application data types into the binary and text formats required by PostgreSQL. The project provides specialized utilities for high-performance data ingestion using bulk data loading and a dedicated bulk data importer. It also features an implementation for listening to asynchronous server notifications and provides tools for connection load balancing across multiple hosts and ports. The driver covers a broad surface of database i
Provides utilities to escape special characters in string literals to prevent SQL injection and syntax errors.
pyTelegramBotAPI is a Python framework and API wrapper designed for building bots that interact with the Telegram Bot API. It provides a toolkit for managing bot lifecycles through both synchronous and asynchronous request patterns. The framework is distinguished by a routing system that uses custom filters and middleware pipelines to direct incoming updates to specific handlers. It includes a finite state machine manager to track user progress through multi-step conversations and a retry-based system to handle server-side rate limiting. The library covers a broad range of capabilities, incl
Includes a utility to sanitize strings by escaping reserved characters to prevent formatting errors in messages.
Execa is a promise-based process execution library that serves as a wrapper for the Node.js child process module. It functions as a shell command runner and subprocess management tool, simplifying the execution of external commands and binaries. The library distinguishes itself through automatic argument escaping to prevent shell injection and the use of abort signals for graceful process termination. It also provides an inter-process communication wrapper for exchanging structured JSON data and messages between parent and child processes. Its capabilities cover a broad range of process I/O
Automatically quotes and escapes shell arguments to prevent command injection and ensure literal string interpretation.
This is an interactive Python tutorial delivered as a collection of Jupyter notebooks. It is designed as a structured learning path for beginners, teaching fundamental language concepts through a sequence of lessons that combine explanatory text with runnable code cells and embedded practice exercises. Each notebook is a self-contained unit that introduces a topic, demonstrates it with a minimal code example, and then asks the learner to write code themselves, receiving immediate feedback from the browser-based execution environment. The curriculum is built on a progressive concept-stacking mo
Teaches escape sequences for including special characters like newlines and tabs in strings.
The Rust RFCs repository is the formal home for the Rust language evolution process, housing the structured design documents and community review mechanisms that govern changes to the Rust programming language, its compiler, and its standard library. It defines the complete lifecycle for proposing, discussing, and implementing substantial changes through RFC documents, from initial submission and community feedback through final comment periods and sub-team sign-offs. The repository codifies the governance and collaboration processes that shape Rust's development, including mechanisms for com
Specifies the escaping rules for format strings in the standard library's formatting macros.
Timber is a PHP library that integrates the Twig template engine into WordPress themes, providing an object-oriented framework for theme development. It wraps WordPress data — posts, terms, users, menus, and comments — in structured PHP classes, allowing developers to work with objects instead of raw arrays while keeping HTML markup separate from PHP logic through Twig templates. The library distinguishes itself by offering a complete set of tools for modern WordPress theme building. It includes a file-based template hierarchy with fallback chains, dynamic image manipulation with resizing, cr
Escapes text for safe insertion into inline JavaScript contexts like onclick attributes or script variables.
Melody 是一个正则表达式转译器和模式编译器,将高级、人类可读的语法转换为标准正则表达式。它作为简化复杂匹配模式创建和维护的工具。 该项目提供了一种专用语法,用于定义可重用变量和宏,以减少表达式中的重复。它包括对将专用标签映射到 Unicode 类别属性的原生支持,并自动处理字面文本的转义。 该系统可通过多种接口访问,包括用于编译和测试字符串或文件模式的命令行工具、用于实时评估的有状态交互式 REPL,以及用于将语法转换集成到 JavaScript 构建流水线中的 Babel 插件。它还提供了一个基于浏览器的接口,无需本地安装即可测试语法。 该编译器支持标准正则表达式功能,如捕获组、环视断言、字符类和量词。
Automatically escapes reserved regular expression symbols to ensure literal matching of plain text.
Scriban 是一个用于动态文本生成的文本模板库和 .NET 脚本引擎。它既是一个模板处理器,也是一个安全的脚本沙箱,通过限制对象暴露来提供安全的执行环境,从而防止未经授权的代码执行。该项目还包含一个抽象语法树模板解析器,支持对模板进行程序化分析和修改。 该引擎内置了专门的 Liquid 模板引擎及兼容模式,能够解析、执行并转换以 Liquid 语法编写的模板。其独特之处在于成员暴露过滤系统,允许开发者重命名、隐藏或过滤对象属性,从而控制模板内的数据访问方式。 该库涵盖了广泛的功能,包括异步模板渲染、条件逻辑和集合迭代。它提供了用于数据操作的内置工具,如数学运算、JSON 转换、日期时间算术,以及基于正则表达式的强大文本处理功能。开发者还可以通过定义自定义函数和集成外部类来进一步扩展引擎功能。 该项目提供了一个安全的 API 接口,支持通过 Native AOT 发布为原生二进制文件。
Includes functions to escape special metacharacters so they are treated as literal text within regular expressions.
Scriban 是一个 .NET 文本模板引擎和嵌入式脚本语言,用于动态文本生成。它作为一个抽象语法树 (AST) 操作工具和模板解析器,允许将脚本转换为可遍历的树结构,以便进行分析、修改和渲染。 该引擎专为 Native AOT 兼容性而设计,利用无反射 API 在裁剪后的环境中执行模板。它还为 Liquid 模板提供了专门的解析器和转换系统,支持在 .NET 中迁移和执行 Liquid 脚本。 该项目涵盖了广泛的功能,包括用于安全运行脚本的沙箱代码执行,以及用于数据转换的管道系统。它包含用于操作字符串、数组、日期和数学运算的全面工具,并支持 JSON 数据转换和正则表达式。 开发者可以通过自定义函数绑定、对象集成和可自定义的成员名称映射来扩展引擎功能。
Replaces regular expression metacharacters with escape codes to treat them as literal characters.
fast-json-stringify is a high-performance JSON serialization library that uses JSON Schema to compile optimized functions for converting JavaScript objects into strings. It serves as a schema-based JSON serializer that generates specialized serialization logic to outperform standard stringification methods. The project provides capabilities to export standalone serialization code to files for direct execution and supports schema reference resolution to eliminate logic duplication. It allows for the deactivation of character escaping for trusted data to reduce overhead and includes specific op
Allows disabling character escaping for trusted strings to reduce serialization overhead and increase throughput.