# dotpath-stream

> transform object streams by dotpath

Latest version **2.0.1** (published 2015-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install dotpath-stream
pnpm add dotpath-stream
yarn add dotpath-stream
bun add dotpath-stream
```

## 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 | 2.0.1 |
| Published | 2015-02-17 |
| First published | 2013-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jesse keane |
| Maintainers | jarofghosts |
| Keywords | stream, object, transform, util |

## Links

- npm: https://www.npmjs.com/package/dotpath-stream
- Repository: https://github.com/jarofghosts/dotpath-stream
- Issues: https://github.com/jarofghosts/dotpath-stream/issues
- npm.io page: https://npm.io/package/dotpath-stream

## Dependencies (2)

- [through](https://npm.io/package/through.md) ^2.3.4
- [dotpather](https://npm.io/package/dotpather.md) 0.1.3

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2015-02-17
- 2.0.0 — 2015-02-17
- 1.0.1 — 2015-02-06
- 1.0.0 — 2014-12-16
- 0.0.0 — 2013-11-27

## README

dotpath-stream
==============

[![Build Status](http://img.shields.io/travis/jarofghosts/dotpath-stream.svg?style=flat)](https://travis-ci.org/jarofghosts/dotpath-stream)
[![npm install](http://img.shields.io/npm/dm/dotpath-stream.svg?style=flat)](https://www.npmjs.org/package/dotpath-stream)

transform object streams by dotpath lookup

## usage

```js
var dps = require('dotpath-stream')
  , imaginaryObjectStream

// pretend imaginaryObjectStream streams an object like:
//
// {
//     file: {name: 'filename'}
//   , blah: 'bleh'
// }

imaginaryObjectStream.pipe(dps('file.name')).pipe(process.stdout)
// => 'filename'
imaginaryObjectStream.pipe(dps('blah')).pipe(process.stdout)
// => 'bleh'
```

## API

### dps(dotPath, _fallback) -> TransformStream

Looks up `dotPath` property on whatever object is written to it and streams
result. In the event of that property being absent or otherwise undefined,
`fallback` is streamed instead if provided.

## license

MIT

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