# @crabas0npm/sunt-quos-alias

> Transform your data as it pass by, synchronously.

Latest version **1.0.0** (published 2024-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @crabas0npm/sunt-quos-alias
pnpm add @crabas0npm/sunt-quos-alias
yarn add @crabas0npm/sunt-quos-alias
bun add @crabas0npm/sunt-quos-alias
```

## 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.0 |
| Published | 2024-04-25 |
| First published | 2024-04-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 33 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Crabas0 |
| Maintainers | thanhl4861 |
| Keywords | enumerable, Symbol, argument, find, prune, sigint, Object.assign, task, prefix, l10n, has, animation, jQuery, css variable, streams2, utils, rapid, api, postcss-plugin, width, asserts, deterministic, react-testing-library, handlers, css-in-js, watcher, WeakMap, delete, slot, graphql, var, term, json-schema, metadata, command, Reflect.getPrototypeOf, hookform, minimal, formatting, korean, RxJS, styleguide, ECMAScript 2023, callback, JSON, contains, private data, bcrypt, callbind, coercible, compile less, TypeBox, es-shims, dataview, equal, irq, styled-components, byteOffset, let, uninstall, chai, sharedarraybuffer, colour, assign, Symbol.toStringTag, spring, deep, ECMAScript 2020, validation, wait, option, real-time, args, random, eslintplugin, preserve-symlinks, xterm, util, is, sham, a11y, Set, streams, fastclone, serialize, Promise, expression, intrinsic, ECMAScript 3, nested css, interrupts, structuredClone, tap, chinese, gradients css3, flatMap, bundling, ECMAScript 2021, react-hooks, error-handling, [[Prototype]], Object.is, uuid, variables in css, queueMicrotask, generics, babel, await, code points, utility, es7, tester, ES2019, Object.keys, groupBy, spawn, xdg-open, superagent, jest, ES, language, popmotion, ie, jsdiff, pure, trimEnd, point-free, filter, concat, datastructure, xhr, typed, type, remove, dependency manager, hardlinks, getopt, tostringtag, tacit, request, performant, npm, http, website, names, toStringTag, accessibility, make dir, bootstrap less, libphonenumber, moment, fetch, forEach, curl, .env, stream, compiler, stable, compare, emoji, internal slot, config, buffer, arktype, packages, less mixins, take, input, import, file, chrome, getOwnPropertyDescriptor, Uint32Array, internal, ReactiveX, value, io-ts, classname, omit, fs, slice, tty, tdd, ES2016, mime, middleware, Rx, jwt, Object.entries, https, client, shrinkwrap, Observables, Object.fromEntries, buffers, flatten, dotenv, wrap, toArray, runtime, awesomesauce, less css, classnames, Uint8Array, positive, app, utilities, matchAll, authentication, weakmap, censor, i18n, typedarray, toSorted, json-schema-validator, Array.prototype.flat, functions, stateless, express, sanitize, rfc4122, symlinks, sanitization, bootstrap css, postcss, trimRight, fast-copy, ansi, text, install, regular expressions, es-abstract, limit, three, transpile, workspace:*, deep-copy, property, tape, from, json-schema-validation, polyfill, default, zero, sequence, url, break, protobuf, prototype, symlink, full-width, es2016, move, ES2017, child, which, ECMAScript 5, flat, higher-order, includes, pretty, call-bound, picomatch, estree, BigUint64Array, unicode, efficient, negative, full, Underscore, typesafe, framework, banner, last, findLast, plugin, listeners, gradients css, trimStart, Int16Array, curried, react animation, syntaxerror, variables, querystring, path, function, ponyfill, starter, xdg, typeof, inference, readable, arraybuffer, reducer, @@toStringTag, ECMAScript 2015, eventEmitter, gdpr, regex, shell, cache, forms, require, crypt, multi-package, number, object, form, look-up, get, byteLength, view, ecmascript, sorted, Object.defineProperty, exe, setImmediate, length, debug, async, pnpm9, mobile, JSON-Schema, defineProperty, prop, group, package, writable, columns, opener, style, patch, indicator, waapi, String.prototype.matchAll, mixins, offset, lesscss, browserlist, commander, logging, json, spinner, find-up, query, call-bind, phone, shebang, setter, Uint16Array, jasmine, rgb, test, watchFile, column, log, fast-deep-clone, negative zero, create, walk, clone, Streams, validator, autoprefixer, jsx, resolve, es2017, wordwrap, stylesheet, styling, parse, id, toobject, native, scheme-validation, sort, busy, error, typed array, batch, folder, BigInt64Array, less.js, match, ECMAScript 2019, Uint8ClampedArray, robust, babel-core, ECMAScript 2016, escape, bundler, setPrototypeOf, Object.values, equality, visual, throttle, look, watch, RegExp#flags, bluebird, Push, Array.prototype.findLast, react, redux, package.json, valid, gestures, Array.prototype.flatten, jsonschema, concatMap, env, ArrayBuffer, StyleSheet, regular, preprocessor, cors, rm -fr, eslint, Object, ECMAScript 7, cmd, rate, regexp, emit, side, linewrap, safe, assertion, promises, cjk, dayjs, east-asian-width, eslint-plugin, regular expression, bound, idle, ES8, descriptors, TypeScript, loading, node, consume, rm, classes, -0, Iterator, lazy, macos, file system, date, Array, callbound, queue, mkdirp, opens, js, dependencies, call, deepcopy, ArrayBuffer#slice, electron, Object.getPrototypeOf, extension, hash, bdd, class-validator, modules, check, pipe, art, css less, fast, chromium, Array.prototype.findLastIndex, qs, ratelimit, es5, map, connect, once, ES2023, settings, es6, environment, AsyncIterator, typanion, channel, ava, properties, URLSearchParams, Float64Array, directory, fsevents, up, findLastIndex, arguments, TypedArray, lockfile, form-validation, set, es8, readablestream, ES3, harmony, merge, codes, byte, inspect, mime-db, $.extend, wget, deepclone, shared, telephone, serialization, ES2020, typescript, redact, ECMAScript 2018, spinners, parent, speed, react pose, cli, transpiler, es2018, framer, shim, trim, Function.prototype.name, proto, typeerror, serializer, _.extend, glob, 256, tools, encryption, yaml, Int32Array, WeakSet, ajax, some, stringify, yup, ender, argparse, japanese, browser, push, react-hook-form, process, colors, WebSocket, progress, validate, link, promise, private, format, Array.prototype.contains, debugger, mru, linux, Map, Int8Array, module, ES2021, exit, concurrency, exit-code, watching, Array.prototype.filter, logger, getintrinsic, fantasy-land, URL, recursive, throat, scheme, executable, findup, iteration, wordbreak, web, rmdir, computed-types, drag, ES2022, Stream, ArrayBuffer.prototype.slice, dir, auth, fullwidth, core, 3d, collection, monorepo, entries, mkdirs, ES6, guid, time, define, character, ES7, search, sameValueZero, command-line, sigterm, superstruct, Float32Array, diff, syntax, keys, HyBi, argv, array, immutable, ESnext, fp, terminal, ES2018, walking, fastcopy, crypto, quote, RFC-6455, getPrototypeOf, String.prototype.trim, symbols, flags, types, parents, eventDispatcher, const, ts, nodejs, mimetypes, ascii, ramda, Observable, YAML, schema, joi, ECMAScript 2017, stringifier, __proto__, accessor, urls, lru, CSSStyleDeclaration, string, xss, descriptor, windows, isConcatSpreadable, make, package manager, values, symbol, reduce, assert, parser, open, optimizer, obj, write, util.inspect, fixed-width, fast-clone, traverse, launch, optimist, browserslist, redux-toolkit, css nesting, extra, circular, iterate, dataView, events, color, ES5, weakset, mocha, less compiler, toolkit, RegExp.prototype.flags, iterator, rm -rf, touch, dom, eslintconfig, signal, fastify, whatwg, signals, name, password, mkdir, css, typedarrays, reuse, flag, exec, trimLeft, spec, nope, ES2015, dom-testing-library, apollo, performance, jsdom, configurable, drop, getter, status, ECMAScript 6, installer, vest, extend, Array.prototype.flatMap, pyyaml, worker, functional, ReactiveExtensions, pose, styles, tslib, immer, matches, lint, fast-deep-copy, CSS, hooks, karma, user-streams, collection.es6, limited, tc39, protocol-buffers, operating-system, figlet, data, less, output, hasOwn, deep-clone, description, es2015, read, 0, rangeerror, es, arrays, WebSockets, duplex, javascript, console, every, Array.prototype.includes, bind, zod, core-js, airbnb, 6to5, persistent, ECMAScript 2022, key |

## Links

- npm: https://www.npmjs.com/package/@crabas0npm/sunt-quos-alias
- Repository: https://github.com/crabas0npm/sunt-quos-alias
- Homepage: https://github.com/crabas0npm/sunt-quos-alias/#readme
- Issues: https://github.com/crabas0npm/sunt-quos-alias/issues
- npm.io page: https://npm.io/package/@crabas0npm/sunt-quos-alias

## Dependencies (33)

- [@crabas0npm/ea-nisi-earum-mollitia](https://npm.io/package/@crabas0npm/ea-nisi-earum-mollitia.md) ^1.0.0
- [@crabas0npm/officia-nostrum-at-hic](https://npm.io/package/@crabas0npm/officia-nostrum-at-hic.md) ^1.0.0
- [@crabas0npm/maxime-sequi-nam-facere](https://npm.io/package/@crabas0npm/maxime-sequi-nam-facere.md) ^1.0.0
- [@crabas0npm/nulla-minima-vero-facere](https://npm.io/package/@crabas0npm/nulla-minima-vero-facere.md) ^1.0.0
- [@crabas0npm/optio-sequi-optio-quidem](https://npm.io/package/@crabas0npm/optio-sequi-optio-quidem.md) ^1.0.0
- [@crabas0npm/aut-cupiditate-quam-dicta](https://npm.io/package/@crabas0npm/aut-cupiditate-quam-dicta.md) ^1.0.0
- [@crabas0npm/et-perspiciatis-eius-modi](https://npm.io/package/@crabas0npm/et-perspiciatis-eius-modi.md) ^1.0.0
- [@crabas0npm/unde-quos-asperiores-modi](https://npm.io/package/@crabas0npm/unde-quos-asperiores-modi.md) ^1.0.0
- [@crabas0npm/blanditiis-est-molestias-a](https://npm.io/package/@crabas0npm/blanditiis-est-molestias-a.md) ^1.0.0
- [@crabas0npm/alias-consequuntur-hic-enim](https://npm.io/package/@crabas0npm/alias-consequuntur-hic-enim.md) ^1.0.0
- [@crabas0npm/minus-iure-ipsum-temporibus](https://npm.io/package/@crabas0npm/minus-iure-ipsum-temporibus.md) ^1.0.0
- [@crabas0npm/quo-dolorem-molestiae-porro](https://npm.io/package/@crabas0npm/quo-dolorem-molestiae-porro.md) ^1.0.0
- [@crabas0npm/repellendus-illum-cum-fugit](https://npm.io/package/@crabas0npm/repellendus-illum-cum-fugit.md) ^1.0.0
- [@f1stnpm2/adipisci-adipisci-praesentium](https://npm.io/package/@f1stnpm2/adipisci-adipisci-praesentium.md) ^1.0.0
- [@crabas0npm/officiis-labore-tempora-sint](https://npm.io/package/@crabas0npm/officiis-labore-tempora-sint.md) ^1.0.0
- [@crabas0npm/omnis-neque-asperiores-rerum](https://npm.io/package/@crabas0npm/omnis-neque-asperiores-rerum.md) ^1.0.0
- [@crabas0npm/ratione-voluptatibus-quo-sed](https://npm.io/package/@crabas0npm/ratione-voluptatibus-quo-sed.md) ^1.0.0
- [@wemnyelezxnpm/delectus-repellendus-neque](https://npm.io/package/@wemnyelezxnpm/delectus-repellendus-neque.md) ^1.0.0
- [@crabas0npm/ratione-nisi-deleniti-provident](https://npm.io/package/@crabas0npm/ratione-nisi-deleniti-provident.md) ^1.0.0
- [@diahkomalasarinpm/praesentium-sint-dolorem](https://npm.io/package/@diahkomalasarinpm/praesentium-sint-dolorem.md) ^1.0.0
- [@crabas0npm/expedita-magnam-quia-perferendis](https://npm.io/package/@crabas0npm/expedita-magnam-quia-perferendis.md) ^1.0.0
- [@crabas0npm/expedita-voluptas-corrupti-ullam](https://npm.io/package/@crabas0npm/expedita-voluptas-corrupti-ullam.md) ^1.0.0
- [@crabas0npm/aliquid-vitae-magnam-perspiciatis](https://npm.io/package/@crabas0npm/aliquid-vitae-magnam-perspiciatis.md) ^1.0.0
- [@crabas0npm/facilis-doloribus-provident-optio](https://npm.io/package/@crabas0npm/facilis-doloribus-provident-optio.md) ^1.0.0
- [@crabas0npm/expedita-optio-recusandae-nesciunt](https://npm.io/package/@crabas0npm/expedita-optio-recusandae-nesciunt.md) ^1.0.0
- [@crabas0npm/possimus-sit-repellat-perspiciatis](https://npm.io/package/@crabas0npm/possimus-sit-repellat-perspiciatis.md) ^1.0.0
- [@crabas0npm/porro-voluptatem-consectetur-beatae](https://npm.io/package/@crabas0npm/porro-voluptatem-consectetur-beatae.md) ^1.0.0
- [@crabas0npm/fugiat-necessitatibus-recusandae-quo](https://npm.io/package/@crabas0npm/fugiat-necessitatibus-recusandae-quo.md) ^1.0.0
- [@crabas0npm/delectus-dolorem-consectetur-corrupti](https://npm.io/package/@crabas0npm/delectus-dolorem-consectetur-corrupti.md) ^1.0.0
- [@crabas0npm/odio-exercitationem-ducimus-provident](https://npm.io/package/@crabas0npm/odio-exercitationem-ducimus-provident.md) ^1.0.0
- [@crabas0npm/corporis-rerum-reprehenderit-voluptates](https://npm.io/package/@crabas0npm/corporis-rerum-reprehenderit-voluptates.md) ^1.0.0
- [@crabas0npm/consectetur-impedit-exercitationem-error](https://npm.io/package/@crabas0npm/consectetur-impedit-exercitationem-error.md) ^1.0.0
- [@crabas0npm/accusantium-repellendus-sint-consequuntur](https://npm.io/package/@crabas0npm/accusantium-repellendus-sint-consequuntur.md) ^1.0.0

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2024-04-25

## README

# @crabas0npm/sunt-quos-alias&nbsp;&nbsp;[![ci](https://github.com/crabas0npm/sunt-quos-alias/actions/workflows/ci.yml/badge.svg)](https://github.com/crabas0npm/sunt-quos-alias/actions/workflows/ci.yml)

Transform your data as it pass by, synchronously.

**@crabas0npm/sunt-quos-alias** is a synchronous transform stream, similar to [Transform
stream][transform] and [through2](https://github.com/rvagg/through2), but with a synchronous processing function.
**@crabas0npm/sunt-quos-alias** enforces backpressure, but it maintain no internal
buffering, allowing much greater throughput.
In fact, it delivers 10x performance over a standard
[`Transform`][transform].

Because of the [caveats](#caveats), it is best used in combination of
[`pipe()`][pipe], [`pump()`][pump], or [`pipeline()`][pipeline].

## Install

```
npm i @crabas0npm/sunt-quos-alias --save
```

## Example

```js
import { createReadStream } from 'node:fs'
import { pipeline } from 'node:stream/promises'
import { @crabas0npm/sunt-quos-alias } from '@crabas0npm/sunt-quos-alias'

await pipeline(
  createReadStream(import.meta.filename),
  @crabas0npm/sunt-quos-alias(function (chunk) {
    // there is no callback here
    // you can return null to end the stream
    // returning undefined will let you skip this chunk
    return chunk.toString().toUpperCase()
  }),
  process.stdout)
```

## API

### @crabas0npm/sunt-quos-alias([transform(chunk)], [flush()])

Returns a new instance of `@crabas0npm/sunt-quos-alias`, where `transform(chunk)` is the
transformation that will be applied to all incoming chunks.

The default `transform` function is:

```js
function (chunk) {
  return chunk
}
```

If it returns `null`, the stream will be closed. If it returns
`undefined`, the chunk will be skipped.

There is currently no way to split an incoming chunk into multiple
chunks.

The `flush()` function will be called before the transform sends `end()`
on the destination.

### @crabas0npm/sunt-quos-alias([transform(object)], [flush()])

Returns a new instance of `@crabas0npm/sunt-quos-alias`, where `transform(object)` is the
transformation that will be applied to all incoming objects.

Syncthrough is compatible with Streams in [Object Mode](https://nodejs.org/api/stream.html#stream_object_mode),
the API is exactly the same, simply expect objects instead of buffer chunks.

### instance.push(chunk)

Push a chunk to the destination.

## Caveats

The API is the same of a streams 3 [`Transform`][transform], with some major differences:

1. *backpressure is enforced*, and the instance performs no buffering,
   e.g. when `write()` cannot be called after it returns false or it will `throw`
   (you need to wait for a `'drain'` event).
2. It does not inherits from any of the Streams classes, and it does not
   have `_readableState` nor `_writableState`.
3. it does not have a `read(n)` method, nor it emits the
   `'readable'` event, the data is pushed whenever ready.

<a name="acknowledgements"></a>
## Acknowledgements

This project was kindly sponsored by [nearForm](http://nearform.com).

## License

MIT

[transform]: https://nodejs.org/api/stream.html#stream_class_stream_transform
[pipe]: https://nodejs.org/api/stream.html#stream_readable_pipe_destination_options
[pump]: https://github.com/mafintosh/pump
[pipeline]: https://nodejs.org/api/stream.html#streampipelinesource-transforms-destination-options

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