# just-snake-case

> convert a string to snake case

Latest version **3.2.0** (published 2022-12-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install just-snake-case
pnpm add just-snake-case
yarn add just-snake-case
bun add just-snake-case
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.2.0 |
| Published | 2022-12-17 |
| First published | 2017-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6200 |
| Author | Angus Croll |
| Maintainers | angus-c |
| Keywords | snake, snake_case, string, no-dependencies, just |

## Links

- npm: https://www.npmjs.com/package/just-snake-case
- Repository: https://github.com/angus-c/just
- Homepage: https://github.com/angus-c/just#readme
- Issues: https://github.com/angus-c/just/issues
- npm.io page: https://npm.io/package/just-snake-case

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 3.2.0 (latest) — 2022-12-17
- 3.1.1 — 2022-08-08
- 3.1.0 — 2022-08-07
- 3.0.1 — 2021-11-13
- 3.0.0 — 2021-11-09
- 2.1.1 — 2021-11-01
- 2.1.0 — 2021-10-31
- 2.0.0 — 2021-10-22
- 1.2.1 — 2021-04-04
- 1.2.0 — 2021-04-04
- 1.1.0 — 2018-08-09
- 1.0.0 — 2017-01-02

## README

<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE -->
<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template -->

## just-snake-case

Part of a [library](https://anguscroll.com/just) of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

[`🍦 Try it`](https://anguscroll.com/just/just-snake-case)

```shell
npm install just-snake-case
```
```shell
yarn add just-snake-case
```

Convert a string to snake case

```js
  import snakeCase from 'just-snake-case';

  snakeCase('the quick brown fox'); // 'the_quick_brown_fox'
  snakeCase('the-quick-brown-fox'); // 'the_quick_brown_fox'
  snakeCase('the_quick_brown_fox'); // 'the_quick_brown_fox'
  snakeCase('theQuickBrownFox'); // 'the_quick_brown_fox'
  snakeCase('thequickbrownfox'); // 'thequickbrownfox'
  snakeCase('the - quick * brown# fox'); // 'the_quick_brown_fox'
  snakeCase('theQUICKBrownFox'); // 'the_q_u_i_c_k_brown_fox'
```

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