Indietro

#formatting

7 APIs con questa etichetta

Truncate API

Truncate text cleanly. Cut a string to a maximum number of characters — at the end, the start or the middle — breaking on word boundaries so words are never chopped in half, and adding an ellipsis (which counts toward the limit). Middle truncation keeps the start and end and elides the centre, ideal for long file paths and IDs. A words endpoint trims to a number of whole words instead. Everything is emoji- and Unicode-safe (it counts code points, not bytes), so multi-byte characters and emoji are never split. Perfect for previews and teasers, table cells and cards, meta descriptions, breadcrumbs and CLI output. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. Distinct from word wrapping, case conversion and text statistics.

api.oanor.com/truncate-api

Title Case API

Convert a heading to proper headline (title) case the way editors do — not a naive capitalise-every-word. It capitalises the first and last words and all the major words, while keeping articles (a, an, the), coordinating conjunctions (and, but, or…) and prepositions lowercase, and always capitalises the word right after a colon. Choose AP style (lowercases short prepositions, capitalises longer ones) or Chicago style (lowercases prepositions of any length). Hyphenated compounds such as well-known and state-of-the-art are handled correctly. Perfect for article and blog titles, headings, SEO meta titles, product and section names, and CMS tooling. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. Distinct from a plain title/sentence case converter, which capitalises every word.

api.oanor.com/titlecase-api

Word Wrap API

Reflow plain text to a fixed column width on word boundaries — the classic word-wrap you need for terminal and CLI output, email and plain-text formatting, code comments, README and changelog blocks, and fixed-width reports. The wrap endpoint breaks text to a chosen width while preserving paragraphs (blank-line separated), with optional left indentation and the option to hard-break words longer than the line; the unwrap endpoint does the reverse, collapsing a wrapped block back into single-line paragraphs. Pure local computation — no key, no third-party service, instant; up to 200,000 characters via POST. Live, nothing stored. 3 endpoints. Distinct from case conversion, slugs and text statistics.

api.oanor.com/wordwrap-api

Table API

Преобразуйте данные в готовую к вставке таблицу. Передайте JSON — либо массив объектов (столбцы берутся из ключей), либо массив массивов (первая строка — заголовок) — или сырой CSV, и получите чистую таблицу в стиле GitHub Markdown или моноширинную ASCII-таблицу (с рамками) с автоматически подогнанными столбцами. Вывод Markdown поддерживает выравнивание столбцов по левому/центру/правому краю и экранирует вертикальные черты; парсер CSV соответствует RFC-4180 (поля в кавычках, встроенные запятые и новые строки). Идеально подходит для README и генерации документации, вывода CLI и логов, списков изменений, чат-ботов и комментариев к пул-реквестам. Чисто локальные вычисления — без ключа, без сторонних сервисов, мгновенно; отправляйте большие наборы данных через POST. Работает в реальном времени, ничего не хранится. 3 конечные точки. Отличается от парсинга/анализа CSV и от рендеринга Markdown.

api.oanor.com/table-api

Bytes API

Humanize, parse and convert byte sizes. Turn a raw byte count into a human-readable string (1610612736 → 1.5 GiB or 1.61 GB), parse a human size back into bytes ("1.5 GiB", "2GB", "500 kB" → the exact integer), and convert an amount between any two units. Handles both the IEC binary units (KiB, MiB, GiB, TiB — powers of 1024) and the SI decimal units (kB, MB, GB, TB — powers of 1000), with configurable decimal places and case-insensitive unit names. Perfect for dashboards and admin UIs, file-upload limits, storage and bandwidth reporting, logs and CLI output. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 4 endpoints. Distinct from file-type detection and from number/unit measurement conversion.

api.oanor.com/bytes-api

Name API

Clean up and parse personal names. The case endpoint applies proper name-casing that ordinary title-casing gets wrong — McDonald, MacLeod, O'Brien, D'Angelo, hyphenated double-barrelled names, lower-case particles (van, von, de, la, der) and Roman-numeral suffixes (II, III, IV). The parse endpoint splits a full name into salutation, first, middle and last name and suffix, and also returns a properly-cased version of each part. Perfect for tidying user sign-ups, CRM and mailing lists, deduplicating contacts, formatting names on documents and normalising imported data. Pure local computation — no key, no third-party service, instant. Live, nothing stored. 3 endpoints. Parsing is tuned for Western (given-name-first) order. Distinct from baby-name popularity data and locale display-name lookups.

api.oanor.com/name-api

Number Words API

Format numbers in human-readable forms as an API. Spell any number in English words — handling thousands through quintillions, negatives and decimals (e.g. 1,234,567 → "one million two hundred thirty-four thousand five hundred sixty-seven", 12.56 → "twelve point five six"). Turn a whole number into its ordinal, both short (21 → 21st, 113 → 113th) and written out (twenty-first, one hundred thirteenth). And convert any whole number from 1 to 3999 to Roman numerals and back (2024 ⇄ MMXXIV), with strict validation. Everything runs locally, so it is fast and always available. Ideal for invoices, cheques and accounting, legal documents, internationalisation, accessibility (screen readers), education and any UI that turns digits into words.

api.oanor.com/numberwords-api