# defaultdict

> defaultdict -----------

Latest version **0.0.1** (published 2013-07-26) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2013-07-26 |
| First published | 2013-07-26 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | jdubie |

## Links

- npm: https://www.npmjs.com/package/defaultdict
- npm.io page: https://npm.io/package/defaultdict

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ~1.5.1

## Recent versions

- 0.0.1 (latest) — 2013-07-26

## README

defaultdict
-----------

Nodejs port of python [defaultdict](http://docs.python.org/2/library/collections.html#collections.defaultdict)

examples
--------

```javascript
var DefaultDict = require('defaultdict')

// create dict
var dict = new DefaultDict('baz');

// works like normal dict
dict.set('foo', 'bar');
dict.get('foo');
//=> 'bar'

// get undefined keys
dict.get('qux');
//=> 'baz'
```

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