From e6f70e091338099fc333b489e62b2cb984763076 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 9 Jan 2022 12:39:43 +0300 Subject: [PATCH] feat(core): initial code commit --- .editorconfig | 18 ++++++++++++++++++ .gitignore | 12 ++++++++++++ CHANGELOG.md | 3 +++ LICENSE | 21 +++++++++++++++++++++ README.md | 34 +++++++++++++++++++++++++++++++++- index.js | 2 ++ package.json | 39 +++++++++++++++++++++++++++++++++++++++ packages.js | 21 +++++++++++++++++++++ 8 files changed, 149 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100755 .gitignore create mode 100755 CHANGELOG.md create mode 100644 LICENSE create mode 100644 index.js create mode 100644 package.json create mode 100644 packages.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e98f58d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +# EditorConfig: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +charset = utf-8 +end_of_line = lf +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 4 + +# 2 space indentation +[*.yaml, *.yml] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..e7ef1ee --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +# Global +node_modules/ + +# OS Generated +.DS_Store* +ehthumbs.db +Icon? +Thumbs.db +*.swp + +# phpstorm +.idea/* diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100755 index 0000000..703522f --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ + +# [1.0.0](https://github.com/faker-javascript/faker) (2022-01-09) +* Initial release diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3006bf0 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Sergey Romanenko + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index e9675bc..612d8f8 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,34 @@ -# faker +

Faker

+

A set of packages that generates fake data for you. +

+ +

+Version License + +## Install + +``` +$ npm install --save @fakerjs/faker +``` + +## Usage + +```js +import faker from '@fakerjs/faker'; + +faker.fakeAnimal(); +//=> Snow Leopard + +faker.fakeGender(); +//=> Female + +faker.fakeProfession(); +//=> Software Engineer +``` + +[Browse all faker javascript packages](https://github.com/faker-javascript) + +## License +[The MIT License (MIT)](https://github.com/faker-javascript/faker/blob/master/LICENSE.txt) +Copyright (c) [Sergey Romanenko](https://github.com/Awilum) diff --git a/index.js b/index.js new file mode 100644 index 0000000..c795720 --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +import * as faker from './packages.js'; +export {faker}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5f0b620 --- /dev/null +++ b/package.json @@ -0,0 +1,39 @@ +{ + "name": "@fakerjs/faker", + "version": "1.0.0", + "description": "A set of packages that generates fake data for you.", + "license": "MIT", + "repository": "faker-javascript/faker", + "author": { + "name": "Sergey Romanenko", + "email": "awilum@msn.com", + "url": "https://github.com/Awilum" + }, + "type": "module", + "exports": "./index.js", + "engines": { + "node": ">=12" + }, + "files": [ + "index.js" + ], + "keywords": [ + "fakerjs", + "faker", + "fake", + "random", + "generator" + ], + "dependencies": { + "@fakerjs/boolean": "*", + "@fakerjs/integer": "*", + "@fakerjs/animal": "*", + "@fakerjs/age": "*", + "@fakerjs/float": "*", + "@fakerjs/gender": "*", + "@fakerjs/ip": "*", + "@fakerjs/letter": "*", + "@fakerjs/string": "*", + "@fakerjs/profession": "*" + } +} diff --git a/packages.js b/packages.js new file mode 100644 index 0000000..0fb949a --- /dev/null +++ b/packages.js @@ -0,0 +1,21 @@ +import fakeBoolean from '@fakerjs/boolean'; +import fakeInteger from '@fakerjs/integer'; +import fakeFloat from '@fakerjs/float'; +import fakeAge from '@fakerjs/age'; +import fakeGender from '@fakerjs/gender'; +import fakeIP from '@fakerjs/ip'; +import fakeLetter from '@fakerjs/letter'; +import fakeString from '@fakerjs/string'; +import fakeProfession from '@fakerjs/profession'; + +export { + fakeBoolean, + fakeInteger, + fakeFloat, + fakeAge, + fakeGender, + fakeIP, + fakeLetter, + fakeString, + fakeProfession +} \ No newline at end of file