Skip to content

Commit e6f70e0

Browse files
committed
feat(core): initial code commit
1 parent ce7ce64 commit e6f70e0

8 files changed

+149
-1
lines changed

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# EditorConfig: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
indent_style = space
13+
indent_size = 4
14+
15+
# 2 space indentation
16+
[*.yaml, *.yml]
17+
indent_style = space
18+
indent_size = 2

.gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Global
2+
node_modules/
3+
4+
# OS Generated
5+
.DS_Store*
6+
ehthumbs.db
7+
Icon?
8+
Thumbs.db
9+
*.swp
10+
11+
# phpstorm
12+
.idea/*

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<a name="1.0.0"></a>
2+
# [1.0.0](https://github.com/faker-javascript/faker) (2022-01-09)
3+
* Initial release

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) Sergey Romanenko
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1-
# faker
1+
<h1 align="center">Faker</h1>
2+
<p align="center">
23
A set of packages that generates fake data for you.
4+
</p>
5+
6+
<p align="center">
7+
<a href="https://github.com/faker-javascript/faker/releases"><img alt="Version" src="https://img.shields.io/github/release/faker-javascript/faker.svg?label=version&color=green"></a> <img src="https://img.shields.io/npm/dt/@fakerjs/faker"> <a href="https://github.com/faker-javascript/faker"><img src="https://img.shields.io/badge/license-MIT-blue.svg?color=green" alt="License"></a>
8+
9+
## Install
10+
11+
```
12+
$ npm install --save @fakerjs/faker
13+
```
14+
15+
## Usage
16+
17+
```js
18+
import faker from '@fakerjs/faker';
19+
20+
faker.fakeAnimal();
21+
//=> Snow Leopard
22+
23+
faker.fakeGender();
24+
//=> Female
25+
26+
faker.fakeProfession();
27+
//=> Software Engineer
28+
```
29+
30+
[Browse all faker javascript packages](https://github.com/faker-javascript)
31+
32+
## License
33+
[The MIT License (MIT)](https://github.com/faker-javascript/faker/blob/master/LICENSE.txt)
34+
Copyright (c) [Sergey Romanenko](https://github.com/Awilum)

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import * as faker from './packages.js';
2+
export {faker};

package.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "@fakerjs/faker",
3+
"version": "1.0.0",
4+
"description": "A set of packages that generates fake data for you.",
5+
"license": "MIT",
6+
"repository": "faker-javascript/faker",
7+
"author": {
8+
"name": "Sergey Romanenko",
9+
"email": "[email protected]",
10+
"url": "https://github.com/Awilum"
11+
},
12+
"type": "module",
13+
"exports": "./index.js",
14+
"engines": {
15+
"node": ">=12"
16+
},
17+
"files": [
18+
"index.js"
19+
],
20+
"keywords": [
21+
"fakerjs",
22+
"faker",
23+
"fake",
24+
"random",
25+
"generator"
26+
],
27+
"dependencies": {
28+
"@fakerjs/boolean": "*",
29+
"@fakerjs/integer": "*",
30+
"@fakerjs/animal": "*",
31+
"@fakerjs/age": "*",
32+
"@fakerjs/float": "*",
33+
"@fakerjs/gender": "*",
34+
"@fakerjs/ip": "*",
35+
"@fakerjs/letter": "*",
36+
"@fakerjs/string": "*",
37+
"@fakerjs/profession": "*"
38+
}
39+
}

packages.js

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import fakeBoolean from '@fakerjs/boolean';
2+
import fakeInteger from '@fakerjs/integer';
3+
import fakeFloat from '@fakerjs/float';
4+
import fakeAge from '@fakerjs/age';
5+
import fakeGender from '@fakerjs/gender';
6+
import fakeIP from '@fakerjs/ip';
7+
import fakeLetter from '@fakerjs/letter';
8+
import fakeString from '@fakerjs/string';
9+
import fakeProfession from '@fakerjs/profession';
10+
11+
export {
12+
fakeBoolean,
13+
fakeInteger,
14+
fakeFloat,
15+
fakeAge,
16+
fakeGender,
17+
fakeIP,
18+
fakeLetter,
19+
fakeString,
20+
fakeProfession
21+
}

0 commit comments

Comments
 (0)