routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
/* IMPORT */
|
||||
import fastStringTruncatedWidth from 'fast-string-truncated-width';
|
||||
/* HELPERS */
|
||||
const NO_TRUNCATION = {
|
||||
limit: Infinity,
|
||||
ellipsis: '',
|
||||
ellipsisWidth: 0,
|
||||
};
|
||||
/* MAIN */
|
||||
const fastStringWidth = (input, options = {}) => {
|
||||
return fastStringTruncatedWidth(input, NO_TRUNCATION, options).width;
|
||||
};
|
||||
/* EXPORT */
|
||||
export default fastStringWidth;
|
||||
Reference in New Issue
Block a user