
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
A lightweight, zero-dependency TypeScript utility for detecting variations of the name Chris/Kris in strings.
Recognizes these patterns (case-insensitive):
npm install is-kris
import { isKris, isExactlyKris, findKris, countKris, REGEX } from "is-kris";
// Check if string contains any Chris/Kris variation
isKris("Hello Chris"); // true
isKris("John"); // false
// Check if string is exactly a Chris/Kris variation
isExactlyKris("Chris"); // true
isExactlyKris("Hello Chris"); // false
// Find all variations in a string
findKris("Chris and Kris are friends"); // ['Chris', 'Kris']
// Count variations in a string
countKris("Chris, Kris, and Christopher"); // 3
// Access the underlying regex
console.log(REGEX); // /\b(?:c|ch|k|kh)ri(?:s|ss|st(?:o(?:ph(?:er)?|fer|ffer)))\b/i
// You can also use Chris aliases
import { isChris, findChris, countChris, isExactlyChris } from "is-kris";
isChris("Hello Christopher"); // true
findChris("Chris and Kris"); // ['Chris', 'Kris']
isKris(input: string): boolean
Checks if a string contains any variation of Chris/Kris.
isExactlyKris(input: string): boolean
Checks if a string is exactly a variation of Chris/Kris.
findKris(input: string): string[]
Returns array of all Chris/Kris variations found in the string.
countKris(input: string): number
Returns the number of Chris/Kris variations found.
REGEX: RegExp
The underlying regular expression pattern.
All functions handle invalid inputs gracefully:
isKris(null); // false
findKris(undefined); // []
countKris(123); // 0
git clone https://github.com/RostiMelk/is-kris.git
cd is-kris
bun install
bun test
bun run build
FAQs
A utility package to detect variations of the name Chris/Kris in strings
We found that is-kris demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.