import * as pem from 'pem'
import { URL } from 'url'
import { truncate } from 'lodash'
import * as pem from 'pem'
import { URL } from 'url'
import { truncate } from 'lodash'
const truncatedStr = truncate(str, options)
// The truncated string is okay, we can return it
const truncatedStr = truncate(str, options)
// The truncated string is okay, we can return it
// Lodash takes into account all UTF characters, whereas String.prototype.length does not: some characters have a length of 2
// We always use the .length so we need to truncate more if needed
// Lodash takes into account all UTF characters, whereas String.prototype.length does not: some characters have a length of 2
// We always use the .length so we need to truncate more if needed