demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/toidentifier-1.0.1/README.md

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/toidentifier-1.0.1/README.md
Status
scanned
Type
file
Name
README.md
Extension
.md
Programming language

      
    
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1803 (1.8 KB)
MD5
f4a4bdb58e15b4a187d4d51deb32c8dd
SHA1
4b9fd35b2a669b33d43d25423543ab2bd522c144
SHA256
bbc5b74840438ec9d0d189c10c013c3e0ad9e0add6f09cb16034b8f693d73ff8
SHA512

      
    
SHA1_git
57e8a78ab5218e7d424eabde5b6865997a14f500
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
README.md | 1.8 KB |

# toidentifier [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Build Status][github-actions-ci-image]][github-actions-ci-url] [![Test Coverage][codecov-image]][codecov-url] > Convert a string of words to a JavaScript identifier ## Install This is a [Node.js](https://nodejs.org/en/) module available through the [npm registry](https://www.npmjs.com/). Installation is done using the [`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally): ```bash $ npm install toidentifier ``` ## Example ```js var toIdentifier = require('toidentifier') console.log(toIdentifier('Bad Request')) // => "BadRequest" ``` ## API This CommonJS module exports a single default function: `toIdentifier`. ### toIdentifier(string) 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`). 2. Upper case the first character of each word. 3. Join the words together with no separator. 4. Remove all non-word (`[0-9a-z_]`) characters. ## License [MIT](LICENSE) [codecov-image]: https://img.shields.io/codecov/c/github/component/toidentifier.svg [codecov-url]: https://codecov.io/gh/component/toidentifier [downloads-image]: https://img.shields.io/npm/dm/toidentifier.svg [downloads-url]: https://npmjs.org/package/toidentifier [github-actions-ci-image]: https://img.shields.io/github/workflow/status/component/toidentifier/ci/master?label=ci [github-actions-ci-url]: https://github.com/component/toidentifier?query=workflow%3Aci [npm-image]: https://img.shields.io/npm/v/toidentifier.svg [npm-url]: https://npmjs.org/package/toidentifier ## [npm]: https://www.npmjs.com/ [yarn]: https://yarnpkg.com/
Detected license expression
mit
Detected license expression (SPDX)
MIT
Percentage of license text
1.21
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
mit-bdcba66f-6e80-f7bd-7994-748183fe5693 mit MIT
URL Start line End line
https://nodejs.org/en 12 12
https://www.npmjs.com/ 13 13
https://docs.npmjs.com/getting-started/installing-npm-packages-locally 14 14
https://img.shields.io/codecov/c/github/component/toidentifier.svg 47 47
https://codecov.io/gh/component/toidentifier 48 48
https://img.shields.io/npm/dm/toidentifier.svg 49 49
https://npmjs.org/package/toidentifier 50 50
https://img.shields.io/github/workflow/status/component/toidentifier/ci/master?label=ci 51 51
https://github.com/component/toidentifier?query=workflow:ci 52 52
https://img.shields.io/npm/v/toidentifier.svg 53 53
https://yarnpkg.com/ 61 61
Package URL License Primary language
pkg:npm/toidentifier@1.0.1 mit JavaScript
pkg:npm/acme-demo-app@1.0.0 JavaScript