# mutator-name

> Easing work with mutator names such as `getName`

Latest version **2.0.1** (published 2014-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install mutator-name
pnpm add mutator-name
yarn add mutator-name
bun add mutator-name
```

## 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 | 2.0.1 |
| Published | 2014-09-15 |
| First published | 2014-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Thomas Jensen |
| Maintainers | thomas-jensen |
| Keywords | get, set, getter, setter, accessor, mutator, method |

## Links

- npm: https://www.npmjs.com/package/mutator-name
- Repository: https://github.com/srcagency/mutator-name
- Issues: https://github.com/srcagency/mutator-name/issues
- npm.io page: https://npm.io/package/mutator-name

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2014-09-15
- 2.0.0 — 2014-09-14

## README

# Mutator name

Determines whether a string has a `set` or `get` prefix

## Installation

```
npm install mutator-name
```

## Usage

```js
var mutator = require('mutator-name');

mutator('getName');				// true
mutator('setAge');				// true
mutator('setupConnection');		// false
mutator('get');					// false
mutator('getting');				// false

mutator.type('getName');		// 'get'
mutator.type('setName');		// 'set'
mutator.type('none');			// falsey

mutator.getter('getName');		// true
mutator.setter('setName');		// true

mutator.getterFrom('name');		// 'getName'
mutator.setterFrom('name');		// 'setName'
```

## License

[MIT](http://opensource.org/licenses/MIT) © Thomas Jensen @ [src.agency](http://src.agency)

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