# define-configurable

> Defines new (or modifies existing) properties (using Object.defineProperty, setting `configurable: true` by default

Latest version **1.0.12** (published 2016-10-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install define-configurable
pnpm add define-configurable
yarn add define-configurable
bun add define-configurable
```

## 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.12 |
| Published | 2016-10-19 |
| First published | 2016-08-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vigour.io |
| Maintainers | vigour-io |
| Keywords | Object.defineProperty, configurable |

## Links

- npm: https://www.npmjs.com/package/define-configurable
- Repository: https://github.com/vigour-io/define-configurable
- Homepage: https://github.com/vigour-io/define-configurable#readme
- Issues: https://github.com/vigour-io/define-configurable/issues
- npm.io page: https://npm.io/package/define-configurable

## Dependencies (1)

- [bubleify](https://npm.io/package/bubleify.md) ^0.5.1

## 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

- 1.0.12 (latest) — 2016-10-19
- 1.0.9 — 2016-10-17
- 1.0.8 — 2016-10-17
- 1.0.7 — 2016-10-12
- 1.0.6 — 2016-10-11
- 1.0.5 — 2016-10-11
- 1.0.4 — 2016-10-11
- 1.0.3 — 2016-10-11
- 1.0.2 — 2016-10-07
- 1.0.1 — 2016-09-13
- 1.0.0 — 2016-08-17

## README

# define-configurable
Defines new (or modifies existing) properties using Object.defineProperty on an object passed to define as this, setting configurable by default

[![Build Status](https://travis-ci.org/vigour-io/define-configurable.svg?branch=master)](https://travis-ci.org/vigour-io/define-configurable)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
[![npm version](https://badge.fury.io/js/define-configurable.svg)](https://badge.fury.io/js/define-configurable)
[![Coverage Status](https://coveralls.io/repos/github/vigour-io/define-configurable/badge.svg?branch=master)](https://coveralls.io/github/vigour-io/define-configurable?branch=master)

--

**Simple**

```javascript
const define = require('define-configurable')
const subject = {}
const props = [
  { one: true },
  { two () {
      console.log('do nothing')
    }
  }
]
define.apply(subject, props)
```

**Extend**

```javascript
const define = require('define-configurable')
const subject = {
  search (arg) {}
}

define.apply(subject, {
  extend: {
    // optmized method for extending up till 7 arguments
    search (method, arg) {
      return method.call(this, arg)
    }
  }
})
```

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