Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strings-library

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strings-library - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

test/index.test.js

4

index.js

@@ -71,2 +71,4 @@ //// CAPITALIZE ////

return camelStr
}
}
export { firstCharToUpper,allCaps, allfirstCharsToUpper, upperEveryOtherLetter, removeWhiteSpace, kabobCase, snakeCase, camelCase}
{
"name": "strings-library",
"version": "1.0.1",
"version": "1.0.2",
"description": "Library for string manipulation",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha **/*.test.js",
"test-watch": "nodemon --exec 'npm test'"
},
"author": "Jake Shams",
"license": "ISC"
"license": "ISC",
"devDependencies": {
"chai": "^4.1.2",
"mocha": "^5.0.0"
}
}

@@ -12,9 +12,16 @@ # Strings Library

Start by running this command in your project's directory
`npm install strings-library`
```
npm install strings-library --save
```
And then requring it on the top of your index.js file
```
require('strings-library')
```
## Methods
| Method | Description | Example input | Example output |
|:-----------------------|----------------------------------------------------:|:------------------------:|:------------------------:|
| Method | Description | Example input | Example output |
|:-----------------------|:----------------------------------------------------|:------------------------------|:------------------------------|
| .firstCharToUpper() | returns the string with the first char capitalized | 'hello world' | 'Hello world' |

@@ -24,3 +31,3 @@ | .allCaps() | returns the string completely capitalized | 'hello world' | 'HELLO WORLD' |

|.upperEveryOtherLetter()| returns the string with every other letter capitalized | 'hello world' | 'HeLlO wOrLd' |
| .removeWhiteSpace() | returns the string with white space removed | ' hello world ' | 'hello world' |
| .removeWhiteSpace() | returns the string with white space removed | '  hello    world  ' | 'hello world' |
| .kabobCase() | returns the string in kabob-case | 'hello world | 'hello-world' |

@@ -27,0 +34,0 @@ | .snakeCase() | returns the string in snake_case | 'hello world' | 'hello_world' |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc