Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chunky-str-util

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chunky-str-util

Chunky spliter provider for JS

  • 1.0.2-BUGFIX
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Henry133 thoughts & chunky-str-util

While it takes you so long to repeatedly split your string into smaller chunks for lots of reasons, chunky-str-js package is here to handle any difficulty. This is the first, and the only package i will publish here. Throughout i am a professional developer, i still need to spend time on my other projects. Below is usage and tutorials. Hope it helpful!

Simple description

chunky-str-util is a lightweight Node.JS module that provides a simple way to split strings. It offers various functionalities depending on your specific needs.

Usage

Syntax: chunky(str<String>, mode<String>, size<Number> | 16)

Normal mode

This mode split your string into chunks with any customizable size (16 for default). Chunks are basically Array.

Example:

const { chunky } = require('chunky-str-util')
const splitted = chunky('this-package-shall-be-the-best', 'normal', 16) // ['this-package-sha','ll-be-the-best']

console.log(splitted.toString())
// this-package-sha,ll-be-the-best

Bonus: Discord token mode

Discord token is splitted by dots (.)

This mode split Discord token into smaller pieces by splittng .

Example:

const { chunky } = require('chunky-str-util')
const splitted = chunky('OhmZ.Anxie2854.-y184-1234._exeSovietUnion', 'dsctoken') // ['OhmZ','Anxie2854','-y184-1234','_exeSovietUnion']

console.log(splitted.toString())
// OhmZ,Anxie2854,-y184-1234,_exeSovietUnion

Bonus: Argument splitter

This mode split your provided a command line into components by splitting spaces

Example:

const { chunky } = require('chunky-str-util')
const splitted = chunky('node.js test.js --arg1 --ProcessRunSecure', 'args') // ['node.js', 'test.js' '--arg1', '--ProcessRunSecure']

console.log(splitted.toString())
// node.js test.js --arg1 --ProcessRunSecure

Epilogue

chunky-str-util is the most complex package i ever made. Anyway, it is better if you have chosen for yourself a better method. Thanks for using - Henry133

Credit

All credits belong to Henry133. This is my workalone project. Have a good time using my package. Thanks for using!

Henry133#2436: https://discord.com/users/927563409409581066

FAQs

Package last updated on 21 Jun 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc