🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@alwatr/flat-string

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alwatr/flat-string - npm Package Compare versions

Comparing version

to
1.0.1

10

CHANGELOG.md

@@ -6,2 +6,8 @@ # Change Log

## [1.0.1](https://github.com/Alwatr/nanolib/compare/@alwatr/flat-string@1.0.0...@alwatr/flat-string@1.0.1) (2023-12-21)
### Features
* **prettier-config:** new package for prettier share configs ([a6fdee3](https://github.com/Alwatr/nanolib/commit/a6fdee34591abb1d19e7ea7e431bd6624e2ea6d4)) by @AliMD
# 1.0.0 (2023-12-20)

@@ -11,6 +17,6 @@

* build process ([83fc4e6](https://github.com/Alwatr/nanolib/commit/83fc4e609f86c25291e5f89016d6777bf197ffcb)) by @AliMD
- build process ([83fc4e6](https://github.com/Alwatr/nanolib/commit/83fc4e609f86c25291e5f89016d6777bf197ffcb)) by @AliMD
### Features
* **flat-string:** add new package for simplifies the complex C structures that are part of a combined JavaScript string ([ebfdcb3](https://github.com/Alwatr/nanolib/commit/ebfdcb368bc111e59d6b920f572d6365eef62144)) by @AliMD
- **flat-string:** add new package for simplifies the complex C structures that are part of a combined JavaScript string ([ebfdcb3](https://github.com/Alwatr/nanolib/commit/ebfdcb368bc111e59d6b920f572d6365eef62144)) by @AliMD

2

dist/main.d.ts

@@ -8,3 +8,3 @@ /**

* ```typescript
* flatString(myStr);
* myStr = flatString(myStr);
* ```

@@ -11,0 +11,0 @@ */

{
"name": "@alwatr/flat-string",
"version": "1.0.0",
"version": "1.0.1",
"description": "The `flat-string` function flattens the underlying C structures of a concatenated JavaScript string.",

@@ -44,2 +44,3 @@ "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",

},
"prettier": "@alwatr/prettier-config",
"scripts": {

@@ -60,7 +61,8 @@ "b": "yarn run build",

"devDependencies": {
"@alwatr/nano-build": "^1.0.0",
"@alwatr/tsconfig-base": "^1.0.0",
"@alwatr/nano-build": "^1.0.1",
"@alwatr/prettier-config": "^1.0.1",
"@alwatr/tsconfig-base": "^1.0.1",
"typescript": "^5.3.3"
},
"gitHead": "1896de798973e9de67df6d20e8451a957b985636"
"gitHead": "e6e833d520bf19e616113916a23af8c11282cb50"
}

@@ -8,1 +8,15 @@ # Flat String

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
```bash
yarn add @alwatr/flat-string
```
## Usage
```typescript
import flatString from '@alwatr/flat-string';
myStr = flatString(myStr);
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet