Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@ilteoood/re-flusso
Advanced tools
re-flusso is an utility library to operate with JavaScript Streams API.
It aims to support browsers, Node.js and Edge Runtime.
npm install @ilteoood/re-flusso
pnpm install @ilteoood/re-flusso
const { fromArray } = require('@ilteoood/re-flusso/fromArray');
import { fromArray } from '@ilteoood/re-flusso/fromArray';
import { accumulator } from '@ilteoood/re-flusso/accumulator';
const chunkSize = 3;
.pipeThrough(
accumulator(chunkSize)
)
import { concat } from '@ilteoood/re-flusso/concat';
concat(
fromIterable([1]),
fromIterable([2]),
fromIterable([3])
)
import { defaultTo } from '@ilteoood/re-flusso/defaultTo';
await pipeline(
fromIterable([null, undefined]),
defaultTo(1),
toIterable([])
)
import { text } from '@ilteoood/re-flusso/fetch/text';
const response = await fetch('...')
text(response)
import { filter } from '@ilteoood/re-flusso/filter';
.pipeThrough(
filter((value, index) => value % index === 0)
)
import { first } from '@ilteoood/re-flusso/first';
const firstItemsToKeep = 3;
.pipeThrough(
first(firstItemsToKeep)
)
import { fromIterable } from '@ilteoood/re-flusso/fromIterable';
// With an array
fromIterable([1, 2, 3])
// With a set
fromIterable(new Set([1, 2, 3]))
import { last } from '@ilteoood/re-flusso/last';
const lastItemsToKeep = 3;
.pipeThrough(
last(lastItemsToKeep)
)
import { map } from '@ilteoood/re-flusso/map';
.pipeThrough(
map((value, index) => value + index)
)
import { merge } from '@ilteoood/re-flusso/merge';
merge(
fromIterable([1]),
fromIterable([2]),
fromIterable([3])
)
import { parse } from '@ilteoood/re-flusso/ndJson/parse';
.pipeThrough(
parse()
)
import { stringify } from '@ilteoood/re-flusso/ndJson/stringify';
.pipeThrough(
stringify()
)
import { notEmpty } from '@ilteoood/re-flusso/notEmpty';
const errorToThrow = new Error('Stream is empty');
.pipeThrough(
notEmpty(errorToThrow)
)
import { fromRange } from '@ilteoood/re-flusso/numbers/fromRange';
fromRange(1, 3)
import { greaterThan } from '@ilteoood/re-flusso/numbers/greaterThan';
greaterThan(3)
import { greaterThanEqual } from '@ilteoood/re-flusso/numbers/greaterThanEqual';
greaterThanEqual(3)
import { lessThan } from '@ilteoood/re-flusso/numbers/lessThan';
lessThan(3)
import { lessThanEqual } from '@ilteoood/re-flusso/numbers/lessThanEqual';
lessThanEqual(3)
import { pipeline } from '@ilteoood/re-flusso/pipeline';
const destinationArray = [];
await pipeline(
fromIterable([1, 2, 3]),
map((value) => value * 2),
toArray(destinationArray),
);
import { reduce } from '@ilteoood/re-flusso/reduce';
const destinationArray = [];
await pipeline(
fromIterable([1, 2, 3]),
reduce((accumulator, value) => accumulator + value, 0),
toArray(destinationArray),
);
import { repeat } from '@ilteoood/re-flusso/repeat';
repeat('1', 3)
import { skip } from '@ilteoood/re-flusso/skip';
const itemsToSkip = 2;
.pipeTo(
skip(itemsToSkip)
)
import { join } from '@ilteoood/re-flusso/strings/join';
const separator = ',';
.pipeThrough(
join(separator)
)
import { split } from '@ilteoood/re-flusso/strings/split';
const separator = ',';
.pipeTo(
split(separator)
)
import { toLowerCase } from '@ilteoood/re-flusso/strings/toLowerCase';
.pipeThrough(
toLowerCase(separator)
)
import { toUpperCase } from '@ilteoood/re-flusso/strings/toUpperCase';
.pipeThrough(
toUpperCase(separator)
)
import { toArray } from '@ilteoood/re-flusso/toArray';
const destinationArray = [];
.pipeTo(
toArray(destinationArray)
)
This project was kindly sponsored by Nearform.
FAQs
Utility library to operate with JavaScript Streams API
The npm package @ilteoood/re-flusso receives a total of 0 weekly downloads. As such, @ilteoood/re-flusso popularity was classified as not popular.
We found that @ilteoood/re-flusso demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.