# can-define

> Create observable objects with JS dot operator compatibility

Latest version **2.8.1** (published 2023-02-02) · MIT license · 0 weekly downloads

## Install

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

## 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.8.1 |
| Published | 2023-02-02 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 16 |
| Unpacked size | 348.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 15 |
| Author | Bitovi |
| Maintainers | phillipskevin, justinbmeyer, alfredo-delgado, andrejewski, marshallswain, matthewp, m-mujica, blackmarket, chasen, bmomberger-bitovi, sinjhin, cherif_b, mickmcgrath13, christopherjbaker, bitovi-core-os, bgando, mattchewone, stin13, randallwhitlock, mikemitchel, amechi89 |
| Keywords | CanJS |

## Links

- npm: https://www.npmjs.com/package/can-define
- Repository: https://github.com/canjs/can-define
- Issues: https://github.com/canjs/can-define/issues
- npm.io page: https://npm.io/package/can-define

## Dependencies (16)

- [can-log](https://npm.io/package/can-log.md) ^1.0.0
- [can-diff](https://npm.io/package/can-diff.md) ^1.0.0
- [can-assign](https://npm.io/package/can-assign.md) ^1.1.1
- [can-queues](https://npm.io/package/can-queues.md) ^1.0.0
- [can-symbol](https://npm.io/package/can-symbol.md) ^1.0.0
- [can-reflect](https://npm.io/package/can-reflect.md) ^1.15.0
- [can-construct](https://npm.io/package/can-construct.md) ^3.5.4
- [can-namespace](https://npm.io/package/can-namespace.md) ^1.0.0
- [can-data-types](https://npm.io/package/can-data-types.md) <2.0.0
- [can-event-queue](https://npm.io/package/can-event-queue.md) ^1.0.0
- [can-observation](https://npm.io/package/can-observation.md) ^4.0.0
- [can-string-to-any](https://npm.io/package/can-string-to-any.md) ^1.0.1
- [can-single-reference](https://npm.io/package/can-single-reference.md) ^1.0.0
- [can-define-lazy-value](https://npm.io/package/can-define-lazy-value.md) ^1.0.0
- [can-simple-observable](https://npm.io/package/can-simple-observable.md) ^2.4.0
- [can-observation-recorder](https://npm.io/package/can-observation-recorder.md) ^1.0.0

## Recent versions

- 2.8.1 (latest) — 2023-02-02
- 3.0.0-pre.0 (pre) — 2019-07-18
- 1.5.9 (3.x-legacy) — 2019-05-29
- 2.8.0 — 2019-08-08
- 2.7.21 — 2019-08-01
- 2.7.20 — 2019-07-17
- 2.7.19 — 2019-07-11
- 2.7.18 — 2019-06-07
- 2.7.17 — 2019-06-05
- 2.7.16 — 2019-05-31
- 2.7.15 — 2019-05-29
- 2.7.14 — 2019-05-24
- 1.5.8 — 2019-05-24
- 2.7.13 — 2019-04-26
- 2.7.12 — 2019-04-08
- … 193 more at https://npm.io/package/can-define/versions

## README

# can-define

[![Join our Slack](https://img.shields.io/badge/slack-join%20chat-611f69.svg)](https://www.bitovi.com/community/slack?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![Join our Discourse](https://img.shields.io/discourse/https/forums.bitovi.com/posts.svg)](https://forums.bitovi.com/?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/canjs/can-define/blob/master/LICENSE)
[![npm version](https://badge.fury.io/js/can-define.svg)](https://www.npmjs.com/package/can-define)
[![Travis build status](https://travis-ci.org/canjs/can-define.svg?branch=master)](https://travis-ci.org/canjs/can-define)
[![Greenkeeper badge](https://badges.greenkeeper.io/canjs/can-define.svg)](https://greenkeeper.io/)

Add observable properties, type conversion, and getter/setter logic to your constructor prototypes.

## Documentation

Read the [can-define API docs on CanJS.com](https://canjs.com/doc/can-define.html).

## Changelog

See the [latest releases on GitHub](https://github.com/canjs/can-define/releases).

## Contributing

The [contribution guide](https://github.com/canjs/can-define/blob/master/CONTRIBUTING.md) has information on getting help, reporting bugs, developing locally, and more.

## License

[MIT](https://github.com/canjs/can-define/blob/master/LICENSE)

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