
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
All about single ascii characters. Experimental... will evolve over time I guess.
Not enough time for readme now, incomplete.
ASCII_RANGE is an array with two indices: [bottomOfRange, topOfRange]
Chars.ASCII_RANGE_UPPERCASE Chars.ASCII_RANGE_LOWERCASE Chars.ASCII_RANGE_NUMBERS Chars.ASCII_RANGE_SPECIAL_1 Chars.ASCII_RANGE_SPECIAL_2 Chars.ASCII_RANGE_SPECIAL_3 Chars.ASCII_RANGE_SPECIAL_4 Chars.ASCII_RANGE_ALL
Chars.REGEXP_SPECIAL_CHARS
<array> REGEXP_SPECIAL_CHARS
Returns an array (like a set) with all special characters used in regular expressions.
Chars.ascii Chars.ordinal
Chars.isUpper
<boolean> Chars.isUpper( <string>/<number> char )
Returns true if char is uppercase.
Chars.isLower
<boolean> Chars.isLower( <string>/<number> char )
Returns true if char is lowercase.
Chars.isAlpha
<boolean> Chars.isAlpha( <string>/<number> char )
Returns true if char is uppercase or lowercase alpha.
Chars.isNumeric
<boolean> Chars.isNumeric( <string>/<number> char )
Returns true if char is a number.
Chars.isSpecial
<boolean> Chars.isSpecial( <string>/<number> char )
Returns true if char is a special character from the SPECIAL_1,2,3 or 4 range.
Chars.isAlphaNumeric
<boolean> Chars.isAlphaNumeric( <string>/<number> char )
Returns true if char is a uppercase, lowercase or number.
Chars.random
<string> Chars.random( range )
Returns a random character in range range. range defaults to the Chars.ASCII_RANGE_ALL range
Chars.prototype.constructor
<object> constructor( <string>/<number> char, <array> range )
char can be a number character or ordinal, range has the format of ASCII_RANGE
Chars.prototype.get
<string> get()
Returns this.char
Chars.prototype.set
<this> set( <string>/<number> char )
char can be a number character or ordinal. If char is an ordinal, the character represented by ordinal will be set.
Chars.prototype.next
<this> next( <string>/<number> amount )
Proceed this.char to the following ascii character, if no arguments are given. Proceed to amount ascii characters ahead, limited by this.range, if amount is set.
Chars.prototype.prev
<this> prev( <string>/<number> amount )
Proceed this.char to the following ascii character, if no arguments are given. Proceed to amount ascii characters back, limited by this.range, if amount is set.
Chars.prototype.isUpper
Chars.prototype.isLower
Chars.prototype.isAlpha
Chars.prototype.isNumeric
Chars.prototype.isSpecial
Chars.prototype.isAlphaNumeric
Chars.prototype.random
FAQs
A single-ascii-character utility
The npm package chars.js receives a total of 4 weekly downloads. As such, chars.js popularity was classified as not popular.
We found that chars.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.