1.0.17 • Published 7 days ago

@alwatr/flat-string v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
7 days ago

Flat String

This function simplifies the complex C structures that are part of a combined JavaScript string.

If you're frequently combining strings and then using that combined string somewhere else, you might discover that running your string through flatString significantly enhances performance.

In simpler terms, flatString is a function that optimizes the way strings are stored in memory in JavaScript. When you concatenate strings, JavaScript internally creates a complex structure to save memory. However, when you need to use this string, for example, to write it to a file or send it over the network, this complex structure needs to be flattened, which can take time. By using flatString, you flatten the string right after concatenation, making the subsequent use of the string faster.

Installation

yarn add @alwatr/flat-string

Usage

import {flatString} from '@alwatr/flat-string';

myStr = flatString(myStr);
1.0.17

7 days ago

1.0.16

1 month ago

1.0.15

3 months ago

1.0.14

3 months ago

1.0.13

4 months ago

1.0.12

4 months ago

1.0.11

4 months ago

1.0.9

4 months ago

1.0.10

4 months ago

1.0.2

4 months ago

1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago