New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

text-store

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

text-store

Super performant text container built upon caches

latest
Source
npmnpm
Version
1.3.1
Version published
Maintainers
1
Created
Source

Super performant text container built upon caches

Usage

Install

npm i text-store

Light it up

import TextStore from 'text-store';

const bigA$$File = new TextStore('really big file');

Documentation

You might want it if:

  • You're working with really massive text files, and you will be doing frequent content manipulations here and there

  • You need to frequently convert between line:col based addressing and index based addressing

  • You will be doing both of above, thats the best use case, as TextStore uses caches, and re-computes only whats really needed

  • You have two libraries/apps where one uses line:col based addressing and other uses index based, TextStore can act as glue code

TextStore really shines when an instance is used frequently and not just once or twice. First call to, for example indexToPosition will be significantly slower as that's when TextStore will build it's internal cache, which is used to serve subsequent calls at lightning speeds

Keywords

text

FAQs

Package last updated on 11 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts