# bam-utility-plugins

> Bamboo Function Utility Plugin.

Latest version **0.2.2** (published 2022-02-01) · 0 weekly downloads

## Install

```sh
npm install bam-utility-plugins
pnpm add bam-utility-plugins
yarn add bam-utility-plugins
bun add bam-utility-plugins
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2022-02-01 |
| First published | 2021-06-20 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 461.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | willy |
| Maintainers | willy874 |
| Keywords | bamboo, bamboo-utility, bamboo-utils, utils, utility |

## Links

- npm: https://www.npmjs.com/package/bam-utility-plugins
- Repository: https://github.com/willy874/bam-utility-plugins
- Homepage: https://github.com/willy874/bam-utility-plugins#readme
- Issues: https://github.com/willy874/bam-utility-plugins/issues
- npm.io page: https://npm.io/package/bam-utility-plugins

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.2.2 (latest) — 2022-02-01
- 0.2.1 — 2022-01-30
- 0.2.0 — 2022-01-25
- 0.1.7 — 2021-07-06
- 0.1.6 — 2021-06-20

## README

# BAM UTILITY PLUGINS

各種通用函式。

## FileName (Browser | Nodejs)

### Arguments

- {string} constructorArg: 放入要格式化的字串。

### Description

處理關於 `名稱` 的字串處理。如果 path-browserify 無法滿足需求的時候，可以搭配該模組來進行大小駝峰的拆解轉換規則。

### Interface

```ts
class FileName {
  readonly data: string[]
  readonly ext: string
  readonly name: string
  constructor(name: string)
  transformUpperHump(): string
  transformLowerHump(): string
  transformKebabCase(): string
  transformSnakeCase(): string
}
```

### Example

```js
import { FileName } from 'bam-utility-plugins'

const filename1 = new FileName('bamboo.ex_str test.txt')

console.log(filename1.transformUpperHump())
// BambooExStrTest
console.log(filename1.transformLowerHump())
// bambooExStrTest
console.log(filename1.transformKebabCase())
// bamboo-ex-str-test
console.log(filename1.data)
// ['bamboo', 'ex' 'Ex', 'str', 'test']
console.log(filename1.ext)
// .txt

const filename2 = new FileName('bam booEx_str-Test.txt')

console.log(filename2.transformUpperHump())
// BambooExStrTest
console.log(filename2.transformLowerHump())
// bambooExStrTest
console.log(filename2.transformSnakeCase())
// bamboo_Ex_str_Test
console.log(filename2.data)
// ['bam', 'boo' 'Ex', 'str', 'Test']
console.log(filename2.ext)
// .txt
```

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