# cool-text-package

> these are amazing utilities that everyone should use.

Latest version **0.1.1** (published 2019-08-16) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install cool-text-package
pnpm add cool-text-package
yarn add cool-text-package
bun add cool-text-package
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-08-16 |
| First published | 2019-07-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 54.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | noltron000 |
| Maintainers | noltron000 |
| Keywords | cool, text, package, library |

## Links

- npm: https://www.npmjs.com/package/cool-text-package
- Repository: https://github.com/noltron000/string-library
- Homepage: https://github.com/noltron000/library-challenge#readme
- Issues: https://github.com/noltron000/library-challenge/issues
- npm.io page: https://npm.io/package/cool-text-package

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 0.1.1 (latest) — 2019-08-16
- 0.1.0 — 2019-08-16
- 0.0.3 — 2019-07-16
- 0.0.2 — 2019-07-11
- 0.0.1 — 2019-07-11

## README

![](https://img.shields.io/github/issues/noltron000/library-challenge.svg)
![](https://img.shields.io/github/forks/noltron000/library-challenge.svg)
![](https://img.shields.io/github/stars/noltron000/library-challenge.svg)
![](https://img.shields.io/github/license/noltron000/library-challenge.svg)
[![Coverage Status](https://coveralls.io/repos/github/noltron000/library-challenge/badge.svg?branch=master)](https://coveralls.io/github/noltron000/library-challenge?branch=master)
![](https://img.shields.io/twitter/url/https/github.com%2Fnoltron000%2Flibrary-challenge.svg)

## check it out on [`npm`](https://www.npmjs.com/package/cool-text-package)!

### Features

1. `String.prototype.upperFirst( )` A function that uppercases the first character of string.
	- Example Input: `i want this capitalized.`
	- Expected Output: `I want this capitalized.`
1. `String.prototype.lowerFirst( )` A function that lowercases the first character of string.
	- Example Input: `I like lowercase`
	- Expected Output: `i like lowercase`
1. `String.prototype.upperWord( )` A function that uppercases the first letter of each word in a string.
	- Example Input: `I like caps.`
	- Expected Output: `I Like Caps.`
1. `String.prototype.upperWiggle( )` A function that uppercases every other letter.
	- Example Input: `I feel All wiggly.`
	- Expected Output: `I FeEl aLl wIgGlY.`
1. `String.prototype.removeSpaces( )` A function that removes all whitespace from a given string.
	- Example Input: `try to decode this!`
	- Expected Output: `trytodecodethis!`
1. `String.prototype.trimSpaces( )` A function that removes only the extra whitespace from a given string (example: `“ a b ” → “a b”`).
	- Example Input: `far out`
	- Expected Output: `far out`
1. `String.prototype.allCaps( )` A function that makes all characters uppercase. (this is the same as `.toUppercase()`).
	- Example Input: `i like to yell!!`
	- Expected Output: `I LIKE TO YELL!!`
1. `String.prototype.kababCase( )` A function that removes extra spaces and replaces spaces with the hyphen "-", and makes all characters lowercase.
	- Example Input: `What is kabab-case anyway`
	- Expected Output: `what-is-kabab-case-anyway`
1. `String.prototype.snakeCase( )` Removes extra space and replaces spaces with an underscore "\_", and makes all characters lowercase.
	- Example Input: `Snakes are Amazing`
	- Expected Output: `snakes_are_amazing`
1. `String.prototype.camelCase( )` Lowercases the first character of the first word. Then uppercases the first character of all other words, and removes all spaces.
	- Example Input: `CAMELS are a special sort of animal.`
	- Expected Output: `camelsAreASpecialSortOfAnimal`

See [Homework 1](https://github.com/Make-School-Courses/FEW-2.1-Writing-JavaScript-Libraries/blob/master/Assignments/assignment-1-string-lib.md)

### Usage

Just connect any of those functions to a string and see magic! Note, none of these functions take in a parameter. They are methods.

Example:

```js
let superString =
	'wow! this project is    soooooooooooo   cool. Just amazing.    '
console.log(superString.snakeCase())
```

---
_Source: https://npm.io/package/cool-text-package · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
