pohy / py-util

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About


Languages

Language:TypeScript 100.0%