@types/inflection
TypeScript icon, indicating that this package has built-in type declarations

1.13.2 • Public • Published

Installation

npm install --save @types/inflection

Summary

This package contains type definitions for inflection (https://github.com/dreamerslab/node.inflection).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inflection.

index.d.ts

interface Inflection {
    indexOf<T, T2>(arr: T[], item: T2, from_index?: number, compare_func?: (arr_item: T, item: T2) => boolean): number;
    pluralize(str: string, plural?: string): string;
    singularize(str: string, singular?: string): string;
    inflect(str: string, count: number, singular?: string, plural?: string): string;
    camelize(str: string, low_first_letter?: boolean): string;
    underscore(str: string, all_upper_case?: boolean): string;
    humanize(str: string, low_first_letter?: boolean): string;
    capitalize(str: string): string;
    dasherize(str: string): string;
    titleize(str: string): string;
    demodulize(str: string): string;
    tableize(str: string): string;
    classify(str: string): string;
    foreign_key(str: string, drop_id_ubar?: boolean): string;
    ordinalize(str: string): string;
    transform(str: string, arr: string[]): string;
    version: string;
}

declare var inflection: Inflection;
export = inflection;
export as namespace inflection;

Additional Details

  • Last updated: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Shogo Iwano.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.13.043,910ts3.7
1.13.043,910ts3.8
1.13.043,910ts3.9
1.13.043,910ts4.0
1.13.043,910ts4.1
1.13.043,910ts4.2
1.13.043,910ts4.3
1.13.043,910ts4.4
1.13.219,437ts5.6
1.13.219,437latest
1.13.219,437ts4.5
1.13.219,437ts4.6
1.13.219,437ts4.7
1.13.219,437ts4.8
1.13.219,437ts4.9
1.13.219,437ts5.0
1.13.219,437ts5.1
1.13.219,437ts5.2
1.13.219,437ts5.3
1.13.219,437ts5.4
1.13.219,437ts5.5
1.13.219,437ts5.7
1.5.281,182ts2.0
1.5.281,182ts2.1
1.5.281,182ts2.2
1.5.281,182ts2.3
1.5.281,182ts2.4
1.5.281,182ts2.5
1.5.281,182ts2.6
1.5.281,182ts2.7
1.5.281,182ts2.8
1.5.281,182ts2.9
1.5.281,182ts3.0
1.5.281,182ts3.1
1.5.281,182ts3.2
1.5.281,182ts3.3
1.5.281,182ts3.4
1.5.281,182ts3.5
1.5.281,182ts3.6

Version History

VersionDownloads (Last 7 Days)Published
1.13.219,437
1.13.1314
1.13.043,910
1.5.281,182
1.5.270
1.5.26-alpha0
1.5.25-alpha0
1.5.24-alpha0
1.5.23-alpha0
1.5.22-alpha0
1.5.21-alpha0
1.5.20-alpha1
1.5.15-alpha0
1.5.14-alpha0

Package Sidebar

Install

npm i @types/inflection

Weekly Downloads

64,844

Version

1.13.2

License

MIT

Unpacked Size

4.56 kB

Total Files

5

Last publish

Collaborators

  • types