@types/toidentifier
TypeScript definitions for toidentifier
Last updated 3 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/toidentifier 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/toidentifier

Summary

This package contains type definitions for toidentifier (https://github.com/component/toidentifier#readme).

Details

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

index.d.ts

export = toIdentifier;

/**
 * Convert a string of words to a JavaScript identifier.
 *
 * Given a string as the argument, it will be transformed according to the following
 * rules and the new string will be returned:
 *
 * 1. Split into words separated by space characters (`0x20`).
 * 1. Upper case the first character of each word.
 * 1. Join the words together with no separator.
 * 1. Remove all non-word (`[0-9a-z_]`) characters.
 *
 * @example
 * import toIdentifier = require('toidentifier')
 *
 * console.log(toIdentifier('Bad Request'))
 * // => "BadRequest"
 */
declare function toIdentifier(str: string): string;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: none

Credits

These definitions were written by BendingBender.

Current Tags

  • 1.0.2                                ...           latest (2 years ago)
  • 1.0.0                                ...           ts4.1 (3 years ago)
  • 1.0.0                                ...           ts4.2 (3 years ago)
  • 1.0.0                                ...           ts4.3 (3 years ago)
  • 1.0.0                                ...           ts4.4 (3 years ago)
  • 1.0.2                                ...           ts4.5 (2 years ago)
  • 1.0.2                                ...           ts4.6 (2 years ago)
  • 1.0.2                                ...           ts4.7 (2 years ago)
  • 1.0.2                                ...           ts4.8 (2 years ago)
  • 1.0.2                                ...           ts4.9 (2 years ago)
  • 1.0.2                                ...           ts5.0 (2 years ago)
  • 1.0.2                                ...           ts5.1 (2 years ago)
  • 1.0.2                                ...           ts5.2 (2 years ago)
  • 1.0.2                                ...           ts5.3 (2 years ago)
  • 1.0.2                                ...           ts5.4 (2 years ago)
  • 1.0.2                                ...           ts5.5 (2 years ago)
  • 1.0.2                                ...           ts5.6 (2 years ago)
  • 1.0.2                                ...           ts5.7 (2 years ago)
  • 1.0.2                                ...           ts5.8 (2 years ago)
  • 1.0.2                                ...           ts5.9 (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |