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

unique-ngram

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unique-ngram

This is unique ngram to prevent repeated array element to reduce data size less size means more performance

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

unique-ngram

This is unique ngram to prevent repeated array element to reduce data size less size means more performance

Any query

contact me on Linkedin kundan kumar .

Installation

Use the package manager unique-ngram to install.


npm i unique-ngram

Example


  
  

const {UniqueNGram}=require('unique-ngram');
const object={
text:'laptop under 5000K',
minSize:2,
prefix:true
}
UniqueNGram(object.text,object.minSize,object.prefix)
 Or
UniqueNGram('text',2,true)

  
  

And the result u will get

[
  'la',     'lap',
  'lapt',   'lapto',
  'laptop', 'un',
  'und',    'unde',
  'under',  '50',
  '500',    '5000',
  '5000k',  'laptop under 5000k'
]

  
  
  

Keywords

ngram

FAQs

Package last updated on 04 Aug 2021

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