strings-library
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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' | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
4688
4
73
1
35
2