@pythonify/string-expandtabs

0.1.3 • Public • Published

str.expandtabs(tabsize=8)

Python docs str.expandtabs

Usage

const py             = Symbol.for('pythonify');

"Hello\tWorld"[py].expandtabs()              // "Hello   World"
"Hello\tWorld"[py].expandtabs(7)             // "Hello  World"
"Hello\tWorld"[py].expandtabs(4)             // "Hello   World"

"\tHello\n\tWorld"[py].expandtabs(4)         // "    Hello\n    World"
"\tHello\t\n\tWorld"[py].expandtabs(4)       // "    Hello   \n    World"

/@pythonify/string-expandtabs/

    Package Sidebar

    Install

    npm i @pythonify/string-expandtabs

    Weekly Downloads

    4

    Version

    0.1.3

    License

    none

    Last publish

    Collaborators

    • brisebom