How to use the faker.finance function in faker

To help you get started, we’ve selected a few faker examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github webkom-co / airframe-next / pages / widgets.js View on Github external
All
                                        Other
                                        
                                        Custom...
                                    
                                
                            
                        
                        <div>
                            <h6>Organics Sessons</h6>
                            <h2>
                               46,982
                            </h2>
                            <div>
                                <i></i>
                                23.34% <span> vs { faker.finance .amount() } (prev.)
                                </span>
                            </div>
                        </div>
                        { /*  */ }
                        <div>
                            <i></i>
                            How do your users (visitors), sessions (visits) and pageviews 
                            metrics for <abbr title="attribute">www.webkom.com</abbr> compare to your targets over the last 30 days?
                        </div>
                    
                
                 { /* END Card Widget */}
            
        
        { /* START Section 3 */}
github SAP / cloud-commerce-spartacus-storefront / mock-server / generators / generate-context.js View on Github external
function generateCurrencies(data, site) {
  const currencies = [];
  currencies.push(
    {
      isocode: 'USD',
      symbol: '$'
    },
    {
      isocode: 'EUR',
      symbol: '€'
    }
  );
  // add some fake content as well
  for (const i of [1, 2, 3]) {
    currencies.push({
      isocode: faker.finance.currencyCode(),
      symbol: faker.finance.currencySymbol()
    });
  }
  data[site + '-currencies'] = {
    currencies: currencies
  };
}
github flow-typed / flow-typed / definitions / npm / faker_v4.x.x / flow_v0.104.x- / test_faker_v4.x.x.js View on Github external
faker.finance.account(1);
  faker.finance.accountName();
  faker.finance.mask();
  faker.finance.mask(1);
  faker.finance.mask(1, true);
  faker.finance.mask(1, false);
  faker.finance.mask(1, true, true);
  faker.finance.mask(1, true, false);
  faker.finance.amount();
  faker.finance.amount(1);
  faker.finance.amount(1, 2);
  faker.finance.amount(1, 2, 3);
  faker.finance.amount(1, 2, 3, "$");
  faker.finance.transactionType();
  faker.finance.currencyCode();
  faker.finance.currencyName();
  faker.finance.currencySymbol();
  faker.finance.bitcoinAddress();
  faker.finance.ethereumAddress();
  faker.finance.iban();
  faker.finance.bic();
});
github flow-typed / flow-typed / definitions / npm / faker_v4.x.x / flow_v0.104.x- / test_faker_v4.x.x.js View on Github external
describe("finance", () => {
  faker.finance.account();
  faker.finance.account(1);
  faker.finance.accountName();
  faker.finance.mask();
  faker.finance.mask(1);
  faker.finance.mask(1, true);
  faker.finance.mask(1, false);
  faker.finance.mask(1, true, true);
  faker.finance.mask(1, true, false);
  faker.finance.amount();
  faker.finance.amount(1);
  faker.finance.amount(1, 2);
  faker.finance.amount(1, 2, 3);
  faker.finance.amount(1, 2, 3, "$");
  faker.finance.transactionType();
  faker.finance.currencyCode();
  faker.finance.currencyName();
github webkom-co / airframe-next / app / routes / components / Attachment.js View on Github external
<span>
                <i></i>
                <i></i>
            </span>
        
        
            <div>
                { faker.system.fileName() }
            </div>
            <span>
                by <span>
                    { faker.name.firstName() } { faker.name.firstName() }
                </span> 
                <span> · </span> 
                <span>
                    { faker.finance.amount() } Kb
                </span>
            </span>
        
        
            <div>
                04-Oct-2012<br>
                05:20 PM
            </div>
            <button color="secondary">
                <i></i>
            </button>
        
    

)
Attachment.propTypes = {
github neoteric-eu / nestjs-auth / src / app / home / home.command.ts View on Github external
await this.homeService.deleteAll({json: {eq: '{"faker": true}'}});
		this.logger.debug(`[create] delete from home_media everything with mimetype "image/fake"`);
		await this.homeMediaService.deleteAll({mimetype: {eq: 'image/fake'}});
		this.logger.debug(`[create] delete from home_favorites everything with fake`);
		await this.homeFavoriteService.deleteAll({fake: {eq: true}});

		this.logger.debug(`[create] fetch faked users`);
		const users = await this.userService.findAll({where: {provider: {eq: 'faker'}}});
		const usersIds = users.map(user =&gt; user.id.toString());

		const homes: HomeEntity[] = [];
		for (let i = 0; i &lt; amount; i++) {
			const home: HomeEntity = {
				owner: faker.random.arrayElement(usersIds),
				json: '{"faker": true}',
				price: Number(faker.finance.amount(100000, 1000000)),
				price_adjustment: faker.random.number(100),
				descr: faker.lorem.paragraphs(faker.random.number({max: 5, min: 1})),
				address_1: faker.address.streetAddress(),
				address_2: faker.address.secondaryAddress(),
				city: faker.address.city(),
				state: faker.address.state(),
				zip: faker.address.zipCode(),
				country: faker.address.country(),
				beds: faker.random.number({max: 10, min: 1}),
				baths: faker.random.number({max: 10, min: 1}),
				lot_size: faker.random.number(20),
				sqft: faker.random.number({max: 350, min: 50}),
				lat: Number(faker.address.latitude()),
				lng: Number(faker.address.longitude()),
				pool: faker.random.boolean(),
				fav_count: faker.random.number(10),
github jurkian / react-bank / api / util / dummy-data.js View on Github external
const createAccount = user => {
   const account = new Account({
      type: faker.random.arrayElement(['basic', 'premium']),
      owner: user._id,
      isActive: faker.random.boolean(),
      sortcode: faker.finance.mask(6, false, false),
      number: faker.finance.mask(8, false, false),
      currency: faker.finance.currencyCode(),
      balance: faker.finance.amount(1, 10000, 2)
   });

   return account.save();
};
github webkom-co / airframe-next / app / routes / components / SearchResults / SearchResultsLeftNav.js View on Github external
<nav>
            
                
                    <span>
                        Category
                    </span>
                    <i></i>
                
            
            
                
                    <span>
                        <i></i>  { faker.commerce.department() }
                    </span>
                    <span>
                        ({ faker.finance.mask() })
                    </span>
                
            
            
                
                    <span>
                        <i></i>  { faker.commerce.department() }
                    </span>
                    <span>
                        ({ faker.finance.mask() })
                    </span>
                
            
            
                
                    <span></span></nav>
github microsoft / fluent-ui-react / docs / app / Examples / modules / Search / Types / SearchExampleStandard.js View on Github external
const source = _.times(5, () => ({
  title: faker.company.companyName(),
  description: faker.company.catchPhrase(),
  image: faker.internet.avatar(),
  price: faker.finance.amount(0, 100, 2, '$'),
}))
github giraffQL / giraffQL / src / components / graphql / mockSchema.js View on Github external
    Float: () => faker.finance.amount(1,10,1),
    String: () => faker.hacker.verb(),