# consto

> A way to define an object having the same value to its name attribute string

Latest version **0.0.1** (published 2016-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install consto
pnpm add consto
yarn add consto
bun add consto
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-01-14 |
| First published | 2016-01-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | calidion |
| Maintainers | calidion |
| Keywords | consto, constant, object, key, value, equal |

## Links

- npm: https://www.npmjs.com/package/consto
- Repository: https://github.com/calidion/consto
- Homepage: https://github.com/calidion/consto#readme
- Issues: https://github.com/calidion/consto/issues
- npm.io page: https://npm.io/package/consto

## Recent versions

- 0.0.1 (latest) — 2016-01-14

## README

# consto [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]
> A way to define an object having the same value to its name attribute string

Consto stands for constant objects.

## Installation

```sh
$ npm install --save consto
```

## Usage

```js
var consto = require('consto');


//Upper Style, default style
var co = consto(['rain', 'sea', 'key']);

>co.RAIN => 'RAIN'
>co.SEA => 'SEA',
>co.KEY => 'KEY'

//Free Style, by specifiy a true
var fs = consto(['Rain', 'sea', 'KEY'], true);
// > fs
// { Rain: 'Rain', sea: 'sea', KEY: 'KEY' }

```

## License

MIT © [calidion](blog.3gcnbeta.com)


[npm-image]: https://badge.fury.io/js/consto.svg
[npm-url]: https://npmjs.org/package/consto
[travis-image]: https://travis-ci.org/calidion/consto.svg?branch=master
[travis-url]: https://travis-ci.org/calidion/consto
[daviddm-image]: https://david-dm.org/calidion/consto.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/calidion/consto
[coveralls-image]: https://coveralls.io/repos/calidion/consto/badge.svg
[coveralls-url]: https://coveralls.io/r/calidion/consto

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