Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@types/toidentifier
Advanced tools
TypeScript definitions for toidentifier
npm install --save @types/toidentifier
This package contains type definitions for toidentifier (https://github.com/component/toidentifier#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/toidentifier.
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;
These definitions were written by BendingBender.
FAQs
TypeScript definitions for toidentifier
The npm package @types/toidentifier receives a total of 21,368 weekly downloads. As such, @types/toidentifier popularity was classified as popular.
We found that @types/toidentifier 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.