https://github.com/stepci/liquidless-faker
Faker.js filter for liquidless templates
https://github.com/stepci/liquidless-faker
Last synced: about 1 year ago
JSON representation
Faker.js filter for liquidless templates
- Host: GitHub
- URL: https://github.com/stepci/liquidless-faker
- Owner: stepci
- License: mit
- Created: 2022-10-19T21:47:52.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-22T11:08:50.000Z (over 2 years ago)
- Last Synced: 2025-06-09T08:44:53.894Z (about 1 year ago)
- Language: TypeScript
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# liquidless-faker
[Faker.js](https://github.com/faker-js/faker) filter for liquidless templates
## Get Started
Install the dependency from npm:
```sh
npm i liquidless-faker
```
Import the `fake` filter
```js
import { fake } from 'liquidless-faker'
```
## Usage
**Example: Rendering a string**
```js
renderString('{{ lorem.lines | fake: 1 }}', {}, {
filters: {
fake
}
})
```
Outputs:
```
Saepe nesciunt officiis.
```