# babel-plugin-immutable-const

> Freeze object using const declaration

Latest version **1.0.3** (published 2016-11-26) · ISC license · 0 weekly downloads

## Install

```sh
npm install babel-plugin-immutable-const
pnpm add babel-plugin-immutable-const
yarn add babel-plugin-immutable-const
bun add babel-plugin-immutable-const
```

## 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.3 |
| Published | 2016-11-26 |
| First published | 2016-11-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Sven SAULEAU |
| Maintainers | xtuc |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-immutable-const
- Repository: https://github.com/xtuc/babel-plugin-immutable-const
- Homepage: https://github.com/xtuc/babel-plugin-immutable-const#readme
- Issues: https://github.com/xtuc/babel-plugin-immutable-const/issues
- npm.io page: https://npm.io/package/babel-plugin-immutable-const

## Recent versions

- 1.0.3 (latest) — 2016-11-26
- 1.0.2 — 2016-11-26
- 1.0.1 — 2016-11-26
- 1.0.0 — 2016-11-26

## README

# Babel plugin immutable const

> Transform _consted_ objects into immutable objects.

The object will be frozen. This will avoid future mutations on it.
Update will simply be ignored and __no errors will be thrown__.

## Installation

```shell
npm install --save-dev babel-plugin-immutable-const
```

## Usage

Add the following line to your .babelrc file:

```json
{
  "plugins": ["immutable-const"]
}
```

## Example

```js
const foo = { bar: true };
```

Will be transformed into:

```js
const foo = Object.freeze({ bar: true });
```

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