@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"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.3
    1
  • 0.1.2
    1
  • 0.1.1
    1
  • 0.1.0
    1

Package Sidebar

Install

npm i @pythonify/string-expandtabs

Weekly Downloads

4

Version

0.1.3

License

none

Last publish

Collaborators

  • brisebom