@pohy/py-util
TypeScript icon, indicating that this package has built-in type declarations

1.1.2Β β€’Β PublicΒ β€’Β Published

Python utils

For when you need to work with string indices calculated in python. If the strings contain emojis, you'll know what I mean. πŸ‘©β€β€οΈβ€πŸ’‹β€πŸ‘©

See the following threads for more details:

import {pyLen, pySlice} from '@pohy/py-util'

const length = pyLen(textWithEmojis)
const substring = pySlice(textWithEmojis, pythonCalculatedStartIndex, pythonCalculatedEndIndex)

Package Sidebar

Install

npm i @pohy/py-util

Weekly Downloads

2

Version

1.1.2

License

MIT

Unpacked Size

18.1 kB

Total Files

13

Last publish

Collaborators

  • pohy