Skip to content

Instantly share code, notes, and snippets.

@PsyGik
Last active June 12, 2023 16:20

Revisions

  1. PsyGik revised this gist Jun 12, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mark-1.js
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    const email = faker.internet.email({ firstName, lastName, provider: 'mailinator.com' });
    const country = faker.location.countryCode();
    const state = faker.location.state();
    const pin_code = faker.location.zipCode();
    const pin_code = faker.location.zipCode({state});

    document.getElementById("firstName").value = firstName;
    document.getElementById("lastName").value = lastName;
  2. PsyGik revised this gist Jun 12, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion mark-1.js
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    const firstName = faker.person.firstName();
    const lastName = faker.person.lastName();
    const email = faker.internet.email({ firstName, lastName, provider: 'mailinator.com' });
    const country = faker.location.country();
    const country = faker.location.countryCode();
    const state = faker.location.state();
    const pin_code = faker.location.zipCode();

  3. PsyGik revised this gist Jun 12, 2023. 1 changed file with 12 additions and 5 deletions.
    17 changes: 12 additions & 5 deletions mark-1.js
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,15 @@
    import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';

    // Caitlyn Kerluke
    const randomName = faker.person.fullName();
    const firstName = faker.person.firstName();
    const lastName = faker.person.lastName();
    const email = faker.internet.email({ firstName, lastName, provider: 'mailinator.com' });
    const country = faker.location.country();
    const state = faker.location.state();
    const pin_code = faker.location.zipCode();

    // Rusty@arne.info
    const randomEmail = faker.internet.email();
    console.log(randomName,randomEmail)
    document.getElementById("firstName").value = firstName;
    document.getElementById("lastName").value = lastName;
    document.getElementById("email").value = email;
    document.getElementById("address.country").value = country;
    document.getElementById("address.state").value = state;
    document.getElementById("address.postal_code").value = pin_code;
  4. PsyGik revised this gist Jun 12, 2023. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions mark-1.js
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    <script type="module">
    import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';

    // Caitlyn Kerluke
    @@ -7,4 +6,3 @@
    // Rusty@arne.info
    const randomEmail = faker.internet.email();
    console.log(randomName,randomEmail)
    </script>
  5. PsyGik created this gist Jun 12, 2023.
    10 changes: 10 additions & 0 deletions mark-1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <script type="module">
    import { faker } from 'https://cdn.skypack.dev/@faker-js/faker';

    // Caitlyn Kerluke
    const randomName = faker.person.fullName();

    // Rusty@arne.info
    const randomEmail = faker.internet.email();
    console.log(randomName,randomEmail)
    </script>