Skip to content

Commit d99b01f

Browse files
committed
Add localefaker
1 parent 94b10bc commit d99b01f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

faker/localefaker.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
const faker = require("faker/locale/ru");
3+
4+
let firstName = faker.name.firstName();
5+
let lastName = faker.name.lastName();
6+
7+
console.log(`Pаботник: ${firstName} ${lastName}`);
8+
9+
let month = faker.date.month();
10+
let recentDate = faker.date.recent();
11+
let rectentDate = faker.date.weekday();
12+
13+
console.log(month);
14+
console.log(recentDate);
15+
console.log(rectentDate);

0 commit comments

Comments
 (0)