# qb-type-format

> qb-type-format

Latest version **1.0.1** (published 2024-01-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install qb-type-format
pnpm add qb-type-format
yarn add qb-type-format
bun add qb-type-format
```

## 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.1 |
| Published | 2024-01-31 |
| First published | 2018-10-10 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Voss |
| Maintainers | mvoss9000 |
| Keywords | fast, compact, minimal, qb, qb1, quicbit, data, performance |

## Links

- npm: https://www.npmjs.com/package/qb-type-format
- Repository: https://github.com/quicbit-js/qb-type-format
- Issues: https://github.com/quicbit-js/qb-type-format/issues
- npm.io page: https://npm.io/package/qb-type-format

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2024-01-31
- 1.0.0 — 2018-10-10

## README

# qb-type-format

Function for converting type objects or portions of 
type objects into concise strings.  The end result
is still valid JSON, but with some objects converted
to flat-strings.  

For example:

    var format = require('qb-type-format')
    
    var obj = {
        a: [ 'string', 'foo', { k: 'hi' } ],
        b: 'item b',
        c: { nested: 'object' }
    }
    
    console.log('Plain', JSON.stringify(obj, null, '  '))
    console.log('Formatted', JSON.stringify(format(obj), null, '  '))
    
Outputs:
    
    Plain: {
      "a": [
        "string",
        "foo",
        {
          "k": "hi"
        }
      ],
      "b": "item b",
      "c": {
        "nested": "object"
      }
    }
    Formatted: {
      "a": "[string,foo,{k:hi}]",
      "b": "item b",
      "c": "{nested:object}"
    }
    
# install

npm i qb-type-format

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