JSPM

@rxjs-ninja/rxjs-string

5.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 20
  • Score
    100M100P100Q55498F
  • License MIT

Operators for handling RxJS Observable of string

Package Exports

  • @rxjs-ninja/rxjs-string

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rxjs-ninja/rxjs-string) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

RxJS Ninja - Strings

The RXJS Ninja Logo

rxjs-string

Website | API Documentation | Changelog

@rxjs-ninja/rxjs-string provides operators for querying, filtering and modifying string values, and Observable for generating string emitters.

Function and Operator categories

  • Create - Functions and Operators for creating Observable string values
  • Convert - Operators to convert strings to and from Array values
  • Filter - Operators for filtering Observable string sources for truthy values
  • Mapping - Operators that provide mapping strings from other value types using String methods
  • Modify - Operators for modifying string values
  • Query - Operators that return non-string values based on querying string values

For example, you can use the fromString to generate a sequence of strings and check they include a string using include. We can also titlize strings.

import { fromString, includes, titleize } from '@rxjs-ninja/rxjs-string';

const inputObs$ = fromNumber(['full power', 'half power', 'quarter power']);

inputObs$.pipe(includes('half')).subscribe(); // false, true, false
inputObs$.pipe(titleize()).subscribe(); // Full Power, Half Power, Quarter Power