# tshirt

> Figure out what your documents look like

Latest version **0.0.2** (published 2016-02-15) · ISC license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2016-02-15 |
| First published | 2016-02-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | codeocelot |

## Links

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

## Recent versions

- 0.0.2 (latest) — 2016-02-15
- 0.0.1 — 2016-02-15

## README

#tshirt

## How to use
    var tshirt = require('tshirt');
    var data = [
			{a:1},
			{a:'one',b:4,c:{},d:[]},
			{a:{},b:42},
			{a:[]}
		]
    var shape = tshirt(data);
    console.log(shape);
    /*
    { 
    	a: Set { 'number', 'string', 'object', 'array' },
    	b: Set { 'number', 'optional' },
    	c: Set { 'object', 'optional' },
    	d: Set { 'array', 'optional' } 
    }
    */


## Use case inspiration
It sucks opening a 500mb list of objects and manually enumerate the data types for each property.  Tshirt solves this by determining the shape of your documents.  

## Improvements
Support nested properties.

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