Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
pascalcase
Advanced tools
Package description
The pascalcase npm package is a simple utility that converts strings into PascalCase format. This can be useful for formatting variable names, class names, or other identifiers in programming to adhere to PascalCase naming conventions.
String Conversion to PascalCase
Converts a given string to PascalCase by splitting the string into words, capitalizing the first letter of each word, and then concatenating them without spaces.
"hello world".split(' ').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join('')
The camelcase package converts strings to camelCase format. It is similar to pascalcase but the first letter of the resulting string is lowercase, which is the main difference between camelCase and PascalCase.
This is a more comprehensive string transformation library that includes various case conversion methods including pascalCase, camelCase, snake_case, and more. It offers more functionality compared to the single-purpose pascalcase package.
Similar to pascalcase, uppercamelcase converts strings to UpperCamelCase (another name for PascalCase). The functionality is very similar, but the package names suggest a different naming convention for the same string transformation.
Readme
Convert a string to pascal-case.
Install with npm
$ npm i pascalcase --save
var pascalcase = require('pascalcase');
pascalcase('a');
//=> 'A'
pascalcase('foo bar baz');
//=> 'FooBarBaz'
pascalcase('foo_bar-baz');
//=> 'FooBarBaz'
pascalcase('foo.bar.baz');
//=> 'FooBarBaz'
pascalcase('foo/bar/baz');
//=> 'FooBarBaz'
pascalcase('foo[bar)baz');
//=> 'FooBarBaz'
pascalcase('#foo+bar*baz');
//=> 'FooBarBaz'
pascalcase('$foo~bar`baz');
//=> 'FooBarBaz'
pascalcase('_foo_bar-baz-');
//=> 'FooBarBaz'
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Jon Schlinkert
Copyright © 2015 Jon Schlinkert Released under the MIT license.
This file was generated by verb-cli on August 19, 2015.
FAQs
Convert a string to pascal case (upper camelcase).
We found that pascalcase 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.