Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/inflected
Advanced tools
TypeScript definitions for inflected
npm install --save @types/inflected
This package contains type definitions for inflected (https://github.com/martinandert/inflected).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflected.
export interface Humanize {
capitalize?: boolean;
}
export interface Parameterize {
preserveCase?: boolean;
separator?: string;
}
export interface Transliterate {
locale?: string;
replacement?: string;
}
export interface Inflections {
acronym(word: string): void;
plural(rule: RegExp, replacement: string): void;
plural(rule: string): void;
singular(rule: RegExp, replacement: string): void;
singular(rule: string): void;
irregular(singular: string, plural: string): void;
uncountable(...words: string[]): void;
human(rule: RegExp | string, replacement: string): void;
clear(scope?: string): void;
}
export interface Transliterations {
approximate(original: string, replacement: string): void;
}
export function pluralize(word: string, locale?: string): string;
export function singularize(word: string, locale?: string): string;
export function camelize(term: string, uppercaseFirstLetter?: boolean): string;
export function underscore(camelCaseWord: string): string;
export function humanize(lowerCaseAndUnderscoredWord: string, options?: Humanize): string;
export function titleize(sentence: string): string;
export function tableize(className: string): string;
export function classify(tableName: string): string;
export function dasherize(underscoredWord: string): string;
export function foreignKey(className: string, separateClassNameAndIdWithUnderscore?: boolean): string;
export function ordinal(number: number): string;
export function ordinalize(number: number): string;
export function inflections(locale: string, inflect?: (inflect: Inflections) => void): void;
export function inflections(inflect?: (inflect: Inflections) => void): void;
export function transliterate(sentence: string, options?: Transliterate): string;
export function transliterations(locale: string, transliterate?: (transliterate: Transliterations) => void): void;
export function transliterations(transliterate?: (transliterate: Transliterations) => void): void;
export function parameterize(sentence: string, options?: Parameterize): string;
export function constantify(words: string): string;
export function capitalize(word?: string | null): string;
export as namespace Inflector;
These definitions were written by Daniel Schmidt, and Jon Clerck.
FAQs
TypeScript definitions for inflected
The npm package @types/inflected receives a total of 13,237 weekly downloads. As such, @types/inflected popularity was classified as popular.
We found that @types/inflected 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.