Socket
Socket
Sign inDemoInstall

ember-fakerjs

Package Overview
Dependencies
464
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ember-fakerjs

Faker.js template helpers for Ember.


Version published
Weekly downloads
15
decreased by-6.25%
Maintainers
1
Install size
62.6 MB
Created
Weekly downloads
 

Changelog

Source

1.0.0

🎉 This is the first major release of ember-fakerjs! 🎉

Changes
  • Updated to Ember CI 4.1.0
  • Updated to use ember-auto-import 2.x
  • Updated most other dependencies to the latest

Readme

Source

ember-fakerjs

NPM Build Status Ember Observer Score Ember Version Download count Code Climate Test Coverage

Faker.js template helpers.

This addon provides helpers that can assist with adding fake/fixture data to your applications. This can be especially useful when scaffolding your application or building demos.

Installation

ember install ember-fakerjs

Demo

Demo

Usage

Helpers

The list of helpers available are:

  • faker-fake use this to generate content by directly using the faker API
  • faker-random utility that provides parameterized access to the random subsection of the faker API
  • faker-text, faker-sentence, faker-sentences - generate lorem content

Example usage:

{{faker-random "number" max=100}}
{{faker-random "arrayelement" array("Link" "Ganon" "Zelda")}}
{{faker-sentence 10}} {{!-- create a 10-word sentence --}}
{{faker-sentences 5}} {{!-- create a 5-sentence string --}}
<img src={{faker-fake "{{image.avatar}}"}} alt="avatar">
<a href={{concat "mailto:" (faker-fake "{{internet.email}}")}}>Send Email!</a>
{{faker-fake "{{name.lastName}}, {{name.firstName}} {{name.suffix}}"}}
{{faker-text 10}} {{!-- create a random variation of lorem that repeats 10 times --}}

ES6

This addon provides the ability to import faker as an ES6 module.

import faker from "faker";

Compatibility

  • Ember.js v3.20 or above
  • Node.js v12 or above

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

Keywords

FAQs

Last updated on 05 Jan 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc