https://github.com/nx-js/filters
Filters for the NX compiler utility.
https://github.com/nx-js/filters
Last synced: 4 months ago
JSON representation
Filters for the NX compiler utility.
- Host: GitHub
- URL: https://github.com/nx-js/filters
- Owner: nx-js
- License: mit
- Created: 2016-12-31T13:28:33.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-09T08:53:52.000Z (over 8 years ago)
- Last Synced: 2025-02-04T19:48:31.441Z (5 months ago)
- Language: JavaScript
- Homepage: http://www.nx-framework.com/
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Filters
This repository contains a collection of filters for the
[compiler utility](https://github.com/nx-js/compiler-util). It creates an registers the
following filters.- capitalize: Capitalizes the passed string.
- lowercase: Transforms the passed string to a lower case format.
- uppercase: Transforms the passed string to an uppercase format.
- unit: Has a value and a unit name parameter. Appends the unit name after the value and pluralizes the unit if the value is plural.
- slice: Has two number parameters. Slices the value from the first to the second parameter.
- json: Converts the passed value to JSON. The indentation level can be passed as an argument.
- date: Converts the passed date to a local date string.
- time: Converts the passed date to a local time string.
- datetime: Converts the passed date to a local datetime string.You can learn more
about NX filters [here](http://nx-framework.com/docs/middlewares/interpolate).