# string-lib-1

> A simple JavaScript library to manipulate strings

Latest version **1.0.6** (published 2022-06-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install string-lib-1
pnpm add string-lib-1
yarn add string-lib-1
bun add string-lib-1
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2022-06-15 |
| First published | 2022-06-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stan Jeong |
| Maintainers | stanjdev |

## Links

- npm: https://www.npmjs.com/package/string-lib-1
- Repository: https://github.com/stanjdev/TS-String-Library
- Homepage: https://github.com/stanjdev/TS-String-Library#readme
- Issues: https://github.com/stanjdev/TS-String-Library/issues
- npm.io page: https://npm.io/package/string-lib-1

## Recent versions

- 1.0.6 (latest) — 2022-06-15
- 1.0.5 — 2022-06-06
- 1.0.4 — 2022-06-01
- 1.0.3 — 2022-06-01
- 1.0.2 — 2022-06-01
- 1.0.1 — 2022-06-01
- 1.0.0 — 2022-06-01

## README

# TS-JS String Manipulation Library

![npm](https://img.shields.io/npm/v/string-lib-1)
![npm bundle size](https://img.shields.io/bundlephobia/min/string-lib-1)

A simple JavaScript library to manipulate strings.

## Installation

Use the package manager [npm](https://docs.npmjs.com/cli/v8/commands/npm) to install.

```bash
npm i string-lib-1
```

[Link to npm library](https://www.npmjs.com/package/string-lib-1)

## Usage

```ts
const stringLib = require("string-lib-1");

stringLib.capitalize('hello world');
// returns "Hello world"

stringLib.allCaps('foo bar');
// returns "FOO BAR"

stringLib.capitalizeWords('hello world');
// returns "Hello World"

stringLib.removeExtraSpaces("   Hello    world!  buttons  ");
// returns "hello world! buttons"

stringLib.kebobCase("   Hello    world!  buttons  ");
// returns "hello-world-buttons"

stringLib.snakeCase("   Hello    world!  buttons  ");
// returns "hello_world_buttons"

stringLib.camelCase("   Hello    world!  buttons  ");
// returns "helloWorldButtons"

stringLib.shift("Hello world!");
// returns "ello world!H"

stringLib.makeHashTag("Amazing bongo drums for sale", 3);
// returns an array of the n longest words of a given string, with a hashtag '#' prepended to them
// returns ['#amazing', '#bongo', '#drums']

stringLib.isEmpty(`   `);
// returns true
```

## Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## Testing

To run tests:

```bash
npm test
```

To check code test coverage:

```bash
npx jest --coverage
```

## License

[MIT](https://choosealicense.com/licenses/mit/)

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