@ibyar/pipes

Aurora pipes, build-in pipes for aurora lib, like json, translate, async, etc...

Usage no npm install needed!

<script type="module">
  import ibyarPipes from 'https://cdn.skypack.dev/@ibyar/pipes';
</script>

README

Aurora Pipes

NPM Version NPM Downloads LICENSE lerna GitHub contributors

Aurora pipes, build-in pipes for aurora lib, like json, translate, async, etc...

Install

npm i --save @ibyar/pipes
yarn add @ibyar/pipes

How to use:

in your html string/file :

<div>{{observable |> async}}</div>
<div>{{text |> lowercase}}</div>
<div>{{obj |> json}}</div>
<pre>{{obj |> json:undefined:2}}</pre>
<div>{{keyValueObject |> keyvalue |> json}}</div>

Built-in Pipes ( Pipeline operator '|>' )

  • async
  • date
  • lowercase
  • titlecase
  • uppercase
  • json
  • keyvalue
  • slice
  • currency
  • number
  • percent
  • i18nPlural
  • i18nSelect