# fixed-object

> Make an object immutable! Just that! No more crap!

Latest version **1.0.0** (published 2016-02-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install fixed-object
pnpm add fixed-object
yarn add fixed-object
bun add fixed-object
```

## 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.0 |
| Published | 2016-02-27 |
| First published | 2015-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | GochoMugo |
| Maintainers | gochomugo |
| Keywords | object, fixed, immutable |

## Links

- npm: https://www.npmjs.com/package/fixed-object
- Repository: https://github.com/GochoMugo/fixed-object
- Issues: https://github.com/GochoMugo/fixed-object/issues
- npm.io page: https://npm.io/package/fixed-object

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-02-27
- 0.0.0 — 2015-08-10

## README

# fixed-object

> Make an object immutable! Just that! No more crap!

[![node](https://img.shields.io/node/v/fixed-object.svg?style=flat-square)](https://www.npmjs.com/package/fixed-object) [![npm](https://img.shields.io/npm/v/fixed-object.svg?style=flat-square)](https://www.npmjs.com/package/fixed-object) [![Travis](https://img.shields.io/travis/GochoMugo/fixed-object.svg?style=flat-square)](https://travis-ci.org/GochoMugo/fixed-object) [![Gemnasium](https://img.shields.io/gemnasium/GochoMugo/fixed-object.svg?style=flat-square)](https://gemnasium.com/GochoMugo/fixed-object) [![Coveralls](https://img.shields.io/coveralls/GochoMugo/fixed-object.svg?style=flat-square)](https://coveralls.io/github/GochoMugo/fixed-object?branch=master)


## install:

```bash
$ npm install fixed-object
```

## make immutable:

*config.json:*
```json
{
    "name": "gochomugo"
}
```

```js
var fixedobj = require("fixed-object");
var config = fixedobj(require("./config.json"));

console.log(config); // => { name: 'gochomugo' }

// this will throw an error
config.name = "sheldon cooper"; // => TypeError: Cannot assign to read only property 'name' of #<Object>

console.log(config); // => { name: 'gochomugo' }
```


## how is it useful?

I find this useful when loading configuration files. We usually **never** intend to mutate configuration objects. **But** if you accidentally do, you can imagine the shit crap your application will go through before you realize where you messed up.


## license:

__The MIT License (MIT)__

Copyright (c) 2015-2016 GochoMugo <mugo@forfuture.co.ke>

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