├── .babelrc ├── .npmignore ├── .gitignore ├── main.js ├── lib ├── helpers │ ├── index.js │ ├── misc.js │ └── numbers.js ├── create-file.js ├── get-model.js ├── index.js ├── create-model.js └── parse-model.js ├── .travis.yml ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md ├── PULL_REQUEST_TEMPLATE.md ├── CODE_OF_CONDUCT.md └── CONTRIBUTING.md ├── .githooks └── pre-commit ├── cli.js ├── test └── unit │ ├── create-file.spec.js │ ├── faker.spec.js │ ├── parse-model.spec.js │ └── helpers │ └── numbers.spec.js ├── package.json ├── models └── example.json ├── CHANGELOG.md ├── README.md ├── LICENSE └── output └── example.json /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015"] 3 | } 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Ignore everything by default 2 | * 3 | 4 | # Keep 5 | !/constants/**/* 6 | !/lib/**/* 7 | !/models/example.json 8 | !/output/example.json 9 | !/dist/**/* 10 | !cli.js 11 | !main.js 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # dependencies 2 | node_modules 3 | 4 | # build 5 | dist 6 | 7 | # input/output files 8 | output/* 9 | !output/example.json 10 | models/* 11 | !models/example.json 12 | 13 | # test 14 | test/**/coverage 15 | .nyc_output 16 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | import { description, homepage, name, version } from './package.json' 2 | import generateModel from './lib' 3 | 4 | module.exports = { 5 | description, 6 | name, 7 | version, 8 | doc: `Visit ${homepage} for more information.`, 9 | generateModel 10 | } 11 | -------------------------------------------------------------------------------- /lib/helpers/index.js: -------------------------------------------------------------------------------- 1 | import './misc' 2 | import { 3 | incrementNumber, 4 | randomBetween, 5 | randomBetweenWithString, 6 | randomElementInArray, 7 | randomElementsInArray, 8 | } from './numbers' 9 | 10 | export const numbers = { 11 | incrementNumber, 12 | randomBetween, 13 | randomBetweenWithString, 14 | randomElementInArray, 15 | randomElementsInArray, 16 | } 17 | -------------------------------------------------------------------------------- /lib/helpers/misc.js: -------------------------------------------------------------------------------- 1 | Object.byString = function(o, s) { 2 | s = s.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties 3 | s = s.replace(/^\./, ''); // strip a leading dot 4 | var a = s.split('.'); 5 | for (var i = 0, n = a.length; i < n; ++i) { 6 | var k = a[i]; 7 | if (k in o) { 8 | o = o[k]; 9 | } else { 10 | return; 11 | } 12 | } 13 | return o; 14 | } 15 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "10.15.3" 4 | addons: 5 | apt: 6 | packages: 7 | # Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves 8 | - libgconf-2-4 9 | cache: 10 | # Caches $HOME/.npm when npm ci is default script command 11 | # Caches node_modules in all other cases 12 | npm: true 13 | install: 14 | - npm ci 15 | before_script: 16 | - npm i 17 | script: 18 | - npm run build 19 | - npm run test:coverage && ./node_modules/.bin/codecov 20 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.githooks/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -uo pipefail 3 | IFS=$'\n\t' 4 | 5 | # 6 | # Improvements from dahjelle/pre-commit.sh: 7 | # - does not lint deleted files, 8 | # - lints all staged files before exiting with an error code, 9 | # - handles spaces and other unusual chars in file names. 10 | # 11 | # Based also on @jancimajek's one liner in that Gist. 12 | # 13 | 14 | # ESLint staged changes only 15 | git diff --diff-filter=d --cached --name-only -z -- '*.js' '*.jsx' \ 16 | | xargs -0 -I % sh -c 'git show ":%" | ./node_modules/.bin/eslint --stdin --stdin-filename "%";' 17 | eslint_exit=$? 18 | 19 | if [ ${eslint_exit} -eq 0 ]; then 20 | echo "✓ ESLint passed" 21 | else 22 | echo "✘ ESLint failed!" 1>&2 23 | exit ${eslint_exit} 24 | fi 25 | -------------------------------------------------------------------------------- /cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | import generateModel from './lib' 3 | 4 | // TODO: Evaluate modelArg is not undefined and exists in the available 5 | // resources. 6 | 7 | // TODO: Evaluate amount exists and is not 0 8 | 9 | const { argv } = process 10 | const modelArg = argv[2] 11 | const amountArg = argv[3] 12 | const fileName = argv[4] 13 | 14 | function printUsage(){ 15 | console.log(` 16 | usage: 17 | fake-data-generator 18 | 19 | example: 20 | fake-data-generator example 10 example.json 21 | `); 22 | } 23 | 24 | if (argv.length === 5) { 25 | generateModel({ 26 | amountArg, 27 | fileName, 28 | modelArg, 29 | inputType: 'json', 30 | outputType: 'json' 31 | }) 32 | } else { 33 | printUsage() 34 | } 35 | -------------------------------------------------------------------------------- /lib/create-file.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Create file module 3 | * 4 | * This module is mainly responsible for generating the output file. 5 | */ 6 | 7 | import fs from 'fs' 8 | 9 | /** 10 | * createFile - Given a name for a file and a final generated model, creates 11 | * the output file. 12 | * @param {String} fileName The name of the output file 13 | * @param {Object} data An object containing parsed and generated models. 14 | * @return {Void} 15 | */ 16 | export function createFile(fileName, data) { 17 | try { 18 | fs.writeFile(`${process.cwd()}/${fileName}`, data, 'utf8', function (err) { 19 | if (err) { 20 | throw new Error(err) 21 | } 22 | console.log('\x1b[32m', `Your file has been saved in ${process.cwd()}/output/${fileName}.`); 23 | }); 24 | } 25 | catch (err) { 26 | console.error(err) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /test/unit/create-file.spec.js: -------------------------------------------------------------------------------- 1 | import fs from 'fs' 2 | import { expect } from 'chai' 3 | import { createFile } from '../../lib/create-file' 4 | import exampleData from '../../models/example.json' 5 | 6 | describe('Create File', () => { 7 | const fileName = 'example-test.json' 8 | const outputPath = `output/${fileName}` 9 | 10 | before('given a name \'example-test\' and a data object creates a json file with a model\'s data', () => { 11 | createFile(outputPath, exampleData) 12 | }) 13 | 14 | it('createFile - a json file with name \'example-test.json\' must exist', () => { 15 | const filePath = outputPath 16 | fs.exists(`${process.cwd()}/${filePath}`, (exists) => { 17 | expect(exists).to.eql(true) 18 | }) 19 | }) 20 | 21 | after(() => { 22 | const filePath = outputPath 23 | fs.unlink(filePath, (error) => { 24 | expect(error).to.eql(null) 25 | }) 26 | }) 27 | }) 28 | -------------------------------------------------------------------------------- /lib/get-model.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Get model module 3 | * 4 | * This module is mainly responsible for retrieving the input file to parse 5 | * and generate the final model. 6 | */ 7 | 8 | /** 9 | * getModel - Given an input model type and a model, returns an Object ready 10 | * to be parsed. 11 | * @param {Object} - An object containing an input type and the user defined 12 | * model 13 | * @param {String} inputType A `json` or `object` string. 14 | * @param {Object | String} inputType An user defined Object model or the 15 | * name of a json file. 16 | * @return An Object containing the user defined model. 17 | */ 18 | export default function getModel({ inputType, model }) { 19 | function getJsonModel(model) { 20 | return require(`${process.cwd()}/${model}`) 21 | } 22 | 23 | const modelInputTypes = { 24 | json: getJsonModel, 25 | object: model => model 26 | } 27 | 28 | return modelInputTypes[inputType](model) 29 | } -------------------------------------------------------------------------------- /test/unit/faker.spec.js: -------------------------------------------------------------------------------- 1 | import { expect } from 'chai' 2 | import parseModelData from '../../lib/parse-model' 3 | 4 | describe('parseModel processes faker', () => { 5 | 6 | it('date.between - returns a date between 2020-11-03 and 2020-11-05', () => { 7 | const fromDate = '2020-11-03' 8 | const toDate = '2020-11-05' 9 | const model = { 10 | config: { locale: 'en' }, 11 | model: { 12 | aDateBetween: { 13 | type: 'faker', 14 | value: 'date.between', 15 | options: [fromDate, toDate] 16 | } 17 | } 18 | } 19 | 20 | const { aDateBetween } = parseModelData(model); 21 | 22 | const aDateBetweenTime = new Date(aDateBetween).getTime() 23 | const fromDateTime = new Date(fromDate).getTime() 24 | const toDateTime = new Date(toDate).getTime() 25 | 26 | expect(aDateBetween).to.be.a('date') 27 | expect(aDateBetweenTime).to.be.within(fromDateTime, toDateTime) 28 | }) 29 | }) -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | import createModel from './create-model' 2 | import getModel from './get-model' 3 | import parseModel from './parse-model' 4 | import { createFile } from './create-file' 5 | 6 | const outputTypes = { 7 | // Generates the Json output 8 | json: ({ fileName, data }) => { 9 | const stringifiedData = JSON.stringify(data, null, '\t') 10 | createFile(fileName, stringifiedData) 11 | }, 12 | // Returns an object 13 | object: ({ data }) => data 14 | } 15 | 16 | export default ({ 17 | amountArg, 18 | fileName = `${new Date().toISOString()}.json`, 19 | modelArg, 20 | inputType, 21 | outputType 22 | }) => { 23 | // Gets the model 24 | const model = getModel({ model: modelArg, inputType }) 25 | 26 | // Creates the model 27 | const { amount = amountArg } = model 28 | const data = createModel({ model, amount }, parseModel) 29 | 30 | // Returns the generated data 31 | return outputTypes[outputType]({ fileName, data }) 32 | } 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /lib/helpers/numbers.js: -------------------------------------------------------------------------------- 1 | 2 | const randomBetween = ([min, max]) => { 3 | return Math.floor(Math.random()*(max-min+1)+min) 4 | } 5 | 6 | const randomElementInArray = function randomElementInArray(value) { 7 | const ele = Math.floor(Math.random() * (value.length - 1)) 8 | return value[ele]; 9 | } 10 | 11 | const randomElementsInArray = (value) => { 12 | const subArray = [...value] 13 | for (let i = subArray.length - 1; i > 0; i--) { 14 | const j = Math.floor(Math.random() * (i + 1)); 15 | [subArray[i], subArray[j]] = [subArray[j], subArray[i]]; 16 | } 17 | return subArray.slice(0, Math.floor(Math.random() * subArray.length) || 1); 18 | } 19 | 20 | const randomBetweenWithString = (value, { 21 | prefix = '', 22 | suffix = '' 23 | } = {}) => { 24 | const randomNumber = randomBetween(value) 25 | if (!prefix && !suffix) { 26 | return `${randomNumber}` 27 | } 28 | return `${prefix}${randomNumber}${suffix}` 29 | } 30 | 31 | const incrementNumber = (value, { index, from = 0 }) => { 32 | return from + index 33 | } 34 | 35 | export { 36 | incrementNumber, 37 | randomBetween, 38 | randomBetweenWithString, 39 | randomElementInArray, 40 | randomElementsInArray, 41 | } 42 | -------------------------------------------------------------------------------- /lib/create-model.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Create model module 3 | * 4 | * This module is mainly responsible for parsing and returning the given model. 5 | */ 6 | 7 | /** 8 | * createSingle - Given a model, options and a function, returns a single parsed 9 | * model. 10 | * @param {Object} model An Object user defined under the "model" attribute 11 | * @param {Object} options An object with options 12 | * @param {Function} parseModel The parseModel function 13 | */ 14 | function createSingle(model, options = {}, parseModel) { 15 | return Object.assign({}, parseModel(model, options)) 16 | } 17 | 18 | /** 19 | * createMany - Given a mode, an amount as option and a function, returns a list 20 | * of parsed models of length equal to `amount`. 21 | * @param {Object} model An Object user defined under the "model" attribute 22 | * @param {Object} options An object with options 23 | * @param {Function} parseModel The parseModel function 24 | */ 25 | function createMany(model, { amount }, parseModel) { 26 | return Array.from({ length: amount }) 27 | .map((el, index) => createSingle(model, { amount, index }, parseModel)); 28 | } 29 | 30 | /** 31 | * Given an Object with a model and an amount, and a parse function, returns 32 | * an array of parsed models. 33 | */ 34 | export default ({ model, amount }, parseModel) => { 35 | // Generate a single instance or a list 36 | return amount === 1 37 | ? createSingle(model, { amount: 1, index: 0 }, parseModel) 38 | : createMany(model, { amount }, parseModel) 39 | } 40 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | **Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.** 4 | 5 | **This PR provides:** 6 | 7 | 12 | 13 | 14 | Fixes #(issue) 15 | 16 | 17 | Closes #(issue) 18 | 19 | ## Type of change 20 | 21 | **Please delete options that are not relevant.** 22 | 23 | 24 | 25 | - [ ] Bug fix (non-breaking change which fixes an issue) 26 | - [ ] New feature (non-breaking change which adds functionality) 27 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 28 | - [ ] This change requires a documentation update 29 | 30 | ## How Has This Been Tested? 31 | 32 | **Provide instructions so we can reproduce the cases. Please also list any relevant details for your test configuration** 33 | 34 | 35 | 36 | **Instructions:** 37 | 38 | 1. Try to create n models with this structure of... 39 | 2. Check the json file that... 40 | 41 | **Expected result:** a result description 42 | 43 | ## Checklist: 44 | 45 | > The following options in **bold** are required for a PR approval. Please check the boxes only if necessary, it help us minimizing the reviewing process. 46 | 47 | 48 | 49 | - [ ] **I have performed a self-review of my own code** 50 | - [ ] I have commented my code, particularly in hard-to-understand areas 51 | - [ ] I have made corresponding changes to the documentation 52 | - [ ] **My changes generate no new warnings** 53 | - [ ] I have added tests that prove my fix is effective or that my feature works 54 | - [ ] **New and existing unit tests pass locally with my changes** 55 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "author": "sgobotta ", 3 | "bin": "dist/cli.js", 4 | "description": "Just a small script to create fake data files given a JSON model", 5 | "dependencies": { 6 | "babel-core": "^6.26.3", 7 | "faker": "^5.1.0" 8 | }, 9 | "devDependencies": { 10 | "babel-cli": "^6.26.0", 11 | "babel-preset-es2015": "^6.24.1", 12 | "chai": "^4.2.0", 13 | "chai-string": "^1.5.0", 14 | "codecov": "^3.6.5", 15 | "eslint": "^5.16.0", 16 | "husky": "^1.3.1", 17 | "mocha": "^7.0.1", 18 | "nyc": "^15.0.0", 19 | "rimraf": "^2.6.3" 20 | }, 21 | "eslintConfig": { 22 | "env": { 23 | "node": true, 24 | "es6": true 25 | }, 26 | "extends": [ 27 | "eslint:recommended" 28 | ], 29 | "globals": { 30 | "after": "readonly", 31 | "before": "readonly", 32 | "describe": "readonly", 33 | "it": "readonly" 34 | }, 35 | "parserOptions": { 36 | "ecmaVersion": 6, 37 | "parser": "babel-eslint", 38 | "sourceType": "module" 39 | }, 40 | "root": true, 41 | "rules": { 42 | "no-console": "off" 43 | } 44 | }, 45 | "homepage": "https://github.com/Cambalab/fake-data-generator#readme", 46 | "husky": { 47 | "hooks": { 48 | "pre-commit": ".githooks/pre-commit" 49 | } 50 | }, 51 | "keywords": [ 52 | "faker", 53 | "fake-data", 54 | "node", 55 | "open-source", 56 | "script" 57 | ], 58 | "license": "GPL-3.0", 59 | "main": "dist/main.js", 60 | "name": "fake-data-generator", 61 | "repository": { 62 | "type": "git", 63 | "url": "git+https://github.com/Cambalab/fake-data-generator.git" 64 | }, 65 | "scripts": { 66 | "start": "node dist/cli.js", 67 | "build": "node_modules/.bin/rimraf dist/ && node_modules/.bin/babel ./ --out-dir dist/ --ignore ./node_modules,./.babelrc,./npm-debug.log --copy-files", 68 | "changelog": "npm run docker:changelog && git add CHANGELOG.md && git commit -am \"Updates changelog\"", 69 | "docker:changelog": "docker run --env CHANGELOG_GITHUB_TOKEN=$CHANGELOG_GITHUB_TOKEN -it --rm -v $(pwd):/usr/local/src/your-app ferrarimarco/github-changelog-generator --user Cambalab --project fake-data-generator", 70 | "generate": "npm run build && npm start", 71 | "prepare": "npm run build", 72 | "publish": "git push origin --tags && npm run changelog && git push origin", 73 | "release:major": "npm version major && npm publish", 74 | "release:minor": "npm version minor && npm publish", 75 | "release:patch": "npm version patch && npm publish", 76 | "test": "npm run test:unit && npm run test:coverage", 77 | "test:unit": "./node_modules/.bin/mocha --require babel-core/register -R spec ./test/unit/**", 78 | "test:coverage": "./node_modules/.bin/nyc --reporter=lcov --include=**/lib/**/*.js --exclude=**/*.spec.js --report-dir=./test/unit/coverage npm run test:unit" 79 | }, 80 | "version": "0.4.3" 81 | } 82 | -------------------------------------------------------------------------------- /models/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "config": { 3 | "locale": "en" 4 | }, 5 | "model": { 6 | "type": "Object", 7 | "value": { 8 | "id": { 9 | "type": "incrementNumber", 10 | "options": { 11 | "from": 101 12 | } 13 | }, 14 | "type": { 15 | "type": "Literal", 16 | "value": "Im just a String" 17 | }, 18 | "timesClicked": { 19 | "type": "randomNumberBetween", 20 | "value": [1, 2500000] 21 | }, 22 | "title": { 23 | "type": "faker", 24 | "value": "lorem.words" 25 | }, 26 | "content": { 27 | "type": "faker", 28 | "value": "lorem.paragraph" 29 | }, 30 | "updatedAt": { 31 | "type": "faker", 32 | "value": "date.recent" 33 | }, 34 | "publicationDate": { 35 | "type": "faker", 36 | "value": "date.between", 37 | "options": ["2019-01-02", "2019-12-29"] 38 | }, 39 | "issue": { 40 | "type": "prepend", 41 | "options": { 42 | "text": "#" 43 | }, 44 | "value": { 45 | "type": "randomNumberBetween", 46 | "value": [1, 2500] 47 | } 48 | }, 49 | "fileName": { 50 | "type": "append", 51 | "options": {"text": ".pdf"}, 52 | "value": { 53 | "type": "faker", 54 | "value": "random.words" 55 | } 56 | }, 57 | "publication": { 58 | "type": "randomNumberBetweenWithString", 59 | "value": [1, 2500000], 60 | "options": { 61 | "prefix": "#", 62 | "suffix": "*" 63 | } 64 | }, 65 | "stats": { 66 | "type": "Array", 67 | "options": { 68 | "size": 3 69 | }, 70 | "value": { 71 | "type": "Object", 72 | "value": { 73 | "likes": { 74 | "type": "randomNumberBetween", 75 | "value": [0, 40] 76 | }, 77 | "dislikes": { 78 | "type": "randomNumberBetween", 79 | "value": [0, 40] 80 | } 81 | } 82 | } 83 | }, 84 | "author": { 85 | "type": "Object", 86 | "value": { 87 | "firstName": { 88 | "type": "faker", 89 | "value": "name.firstName" 90 | }, 91 | "lastName": { 92 | "type": "faker", 93 | "value": "name.lastName" 94 | }, 95 | "address": { 96 | "type": "Object", 97 | "value": { 98 | "street": { 99 | "type": "faker", 100 | "value": "address.streetAddress" 101 | }, 102 | "city": { 103 | "type": "faker", 104 | "value": "address.city" 105 | }, 106 | "state": { 107 | "type": "faker", 108 | "value": "address.state" 109 | }, 110 | "zipCode": { 111 | "type": "faker", 112 | "value": "address.zipCode" 113 | }, 114 | "country": { 115 | "type": "faker", 116 | "value": "address.country" 117 | } 118 | } 119 | } 120 | } 121 | } 122 | } 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /test/unit/parse-model.spec.js: -------------------------------------------------------------------------------- 1 | // import 'babel-polyfill' 2 | import chai from 'chai' 3 | chai.use(require('chai-string')); 4 | import { expect } from 'chai' 5 | import { parseArray, parseLiteral, parseModel, parseString, append, prepend } from '../../lib/parse-model' 6 | import parseModelData from '../../lib/parse-model' 7 | 8 | describe('ParseModel', () => { 9 | 10 | it('parseModelData - returns parsed Object after configuring faker', () => { 11 | const model = {"config": {"locale": "en"}, "model":{"company": {"type": "Object", "value": {"name": {"type": "faker", "value": "company.companyName"} } } } } 12 | const result = parseModelData(model); 13 | expect(result).to.be.a('object') 14 | expect(result).to.have.property('company') 15 | expect(result.company).to.have.property('name') 16 | }) 17 | 18 | it('Object - returns Object', () => { 19 | const model = {"company": {"type": "Object", "value": {"name": {"type": "faker", "value": "company.companyName"} } } } 20 | const result = parseModel(model); 21 | expect(result).to.be.a('object') 22 | expect(result).to.have.property('company') 23 | expect(result.company).to.have.property('name') 24 | }) 25 | 26 | it('Array - returns an Array with exactly 3 entries', () => { 27 | const model = {value: { name: { type: 'faker', value: 'internet.domainWord' } }} 28 | const options = { size: 3 } 29 | const result = parseArray(model, options) 30 | expect(result).to.have.lengthOf(options.size) 31 | }) 32 | 33 | it('Array - returns an Array whose length is between 4 and 10', () => { 34 | const model = {value: { name: { type: 'faker', value: 'internet.domainWord' } }} 35 | const options = { size: [ 4, 15 ] } 36 | const result = parseArray(model, options) 37 | expect(result).to.have.lengthOf.within(options.size[0], options.size[1]) 38 | 39 | }) 40 | 41 | it('appends - adds "pdf" to the end of a string', () => { 42 | const model = { type: 'faker', value: 'random.words' } 43 | const options = { text: '.pdf' } 44 | const result = append(model, options) 45 | expect(result).to.endsWith(options.text); 46 | }) 47 | 48 | it('appends - adds "#" to the start of a random number', () => { 49 | const model = { type: 'randomNumberBetween', value: [ 1, 2500 ] } 50 | const options = { text: '#' } 51 | const result = prepend(model, options) 52 | expect(result).to.startsWith(options.text); 53 | }) 54 | 55 | it('String - acts as a simple passthrough and returns what was passed in', () => { 56 | const model = "Banana" 57 | const result = parseString(model) 58 | expect(result).to.eql(model); 59 | }) 60 | 61 | it('Literal - acts as a simple passthrough and returns what was passed in', () => { 62 | const model = "Banana" 63 | const result = parseLiteral(model) 64 | expect(result).to.eql(model); 65 | }) 66 | 67 | it('Literal with complex model - should return with unstringified object reference', () => { 68 | const model = { type: 'Literal', value: 'catacombs' } 69 | const str = '[object Object]' 70 | const result = String(model) 71 | expect(result).to.not.be.a('object') 72 | expect(result).to.be.a('string') 73 | expect(result).to.have.string(str) 74 | expect(result === JSON.stringify(model)).to.be.false 75 | }) 76 | 77 | it('incrementNumber - returns an incremented Number', () => { 78 | const model = { 79 | model: { 80 | brownies: { 81 | type: 'incrementNumber', 82 | options: { 83 | from: 200 84 | } 85 | } 86 | } 87 | } 88 | const result = parseModelData(model, { index: 220, amount: 1 }) 89 | expect(result).to.deep.include({ brownies: 420 }) 90 | }) 91 | 92 | // Mix-n-Match 93 | describe('Ensuring everything plays nice together', () => { 94 | it('prepend with Literal - should return "Grapefruit".', () => { 95 | const model = { type: 'Literal', value: 'fruit' } 96 | const options = { text: 'Grape' } 97 | const result = prepend(model, options) 98 | expect(result).to.eql('Grapefruit'); 99 | expect(result).to.startsWith(options.text); 100 | }) 101 | 102 | it('append with Literal - should return "Grapefruit.txt".', () => { 103 | const model = { type: 'Literal', value: 'Grapefruit' } 104 | const options = { text: '.txt' } 105 | const result = append(model, options) 106 | expect(result).to.eql('Grapefruit.txt'); 107 | expect(result).to.endsWith(options.text); 108 | }) 109 | }) 110 | }) -------------------------------------------------------------------------------- /test/unit/helpers/numbers.spec.js: -------------------------------------------------------------------------------- 1 | import { expect } from 'chai' 2 | import { numbers } from '../../../lib/helpers' 3 | 4 | describe('Numbers', () => { 5 | 6 | const from = 1 7 | const to = 2500000 8 | const options = { prefix: '#', suffix: '*' } 9 | 10 | it('randomBetween - returns a number between 1 and 2500000', () => { 11 | const { randomBetween } = numbers 12 | const from = 1 13 | const to = 2500000 14 | const randomNumber = randomBetween([from, to]) 15 | 16 | expect(randomNumber).to.be.a('number') 17 | expect(randomNumber).to.be.within(from, to) 18 | }) 19 | 20 | it('randomElementInArray - returns a random value from an array', () => { 21 | const { randomElementInArray } = numbers 22 | const arr = ['One','Two','Three','Four]'] 23 | const element = randomElementInArray(arr) 24 | 25 | expect(arr).to.include(element); 26 | }) 27 | 28 | it('randomElementsInArray - returns a random subgroup from an array', () => { 29 | const { randomElementsInArray } = numbers 30 | const arr = ['One','Two','Three','Four]'] 31 | const elements = randomElementsInArray(arr) 32 | 33 | expect(elements).to.be.an('array').that.is.not.empty; 34 | // expect(arr).to.include(element); 35 | }) 36 | 37 | it('randomBetweenWithString - returns a number between 1 and 2500000 with prefix \'#\' and suffix \'*\'', () => { 38 | const { randomBetweenWithString } = numbers 39 | const randomNumberWithString = randomBetweenWithString([from, to], options) 40 | const { 41 | prefix, 42 | suffix, 43 | value, 44 | } = splitValues(options.prefix, options.suffix, randomNumberWithString) 45 | 46 | expect(randomNumberWithString).to.be.a('string') 47 | expect(value).to.be.a('string') 48 | expect(parseInt(value)).to.be.within(from, to) 49 | expect(prefix).to.eql(options.prefix) 50 | expect(suffix).to.eql(options.suffix) 51 | }) 52 | 53 | it('randomBetweenWithString - returns a number between 1 and 2500000 with prefix \'#\' and no suffix', () => { 54 | const { randomBetweenWithString } = numbers 55 | const randomNumberWithString = randomBetweenWithString( 56 | [from, to], 57 | { prefix: options.prefix } 58 | ) 59 | const { 60 | prefix, 61 | suffix, 62 | value, 63 | } = splitValues(options.prefix, undefined, randomNumberWithString) 64 | 65 | expect(randomNumberWithString).to.be.a('string') 66 | expect(value).to.be.a('string') 67 | expect(parseInt(value)).to.be.within(from, to) 68 | expect(prefix).to.eql(options.prefix) 69 | expect(suffix).to.eql('') 70 | }) 71 | 72 | it('randomBetweenWithString - returns a number between 1 and 2500000 with no prefix and suffix \'*\'', () => { 73 | const { randomBetweenWithString } = numbers 74 | const randomNumberWithString = randomBetweenWithString( 75 | [from, to], 76 | { suffix: options.suffix } 77 | ) 78 | const { 79 | prefix, 80 | suffix, 81 | value, 82 | } = splitValues(undefined, options.suffix, randomNumberWithString) 83 | 84 | expect(randomNumberWithString).to.be.a('string') 85 | expect(value).to.be.a('string') 86 | expect(parseInt(value)).to.be.within(from, to) 87 | expect(prefix).to.eql('') 88 | expect(suffix).to.eql(options.suffix) 89 | }) 90 | 91 | it('randomBetweenWithString - returns a number between 1 and 2500000 with no prefix and no suffix', () => { 92 | const { randomBetweenWithString } = numbers 93 | const randomNumberWithString = randomBetweenWithString([from, to]) 94 | const { 95 | prefix, 96 | suffix, 97 | value, 98 | } = splitValues(undefined, undefined, randomNumberWithString) 99 | 100 | expect(randomNumberWithString).to.be.a('string') 101 | expect(value).to.be.a('string') 102 | expect(parseInt(value)).to.be.within(from, to) 103 | expect(prefix).to.eql('') 104 | expect(suffix).to.eql('') 105 | }) 106 | }) 107 | 108 | 109 | function splitValues(_prefix = '', _suffix = '', string) { 110 | if (!_prefix && !_suffix) { 111 | return { value: string, prefix: _prefix, suffix: _suffix } 112 | } 113 | if (!_prefix && _suffix) { 114 | const value = string.split(_suffix)[0] 115 | const [prefix, suffix] = string.split(value) 116 | return { prefix, suffix, value } 117 | } 118 | if (_prefix && !_suffix) { 119 | const value = string.split(_prefix)[1] 120 | const [prefix, suffix] = string.split(value) 121 | return { prefix, suffix, value } 122 | } 123 | const value = string.split(_suffix)[0].split(_prefix)[1] 124 | const [prefix, suffix] = string.split(value) 125 | return { 126 | prefix, 127 | suffix, 128 | value, 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. 6 | 7 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community. 8 | 9 | ## Our Standards 10 | 11 | Examples of behavior that contributes to a positive environment for our community include: 12 | 13 | * Demonstrating empathy and kindness toward other people 14 | * Being respectful of differing opinions, viewpoints, and experiences 15 | * Giving and gracefully accepting constructive feedback 16 | * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience 17 | * Focusing on what is best not just for us as individuals, but for the overall community 18 | 19 | Examples of unacceptable behavior include: 20 | 21 | * The use of sexualized language or imagery, and sexual attention or 22 | advances of any kind 23 | * Trolling, insulting or derogatory comments, and personal or political attacks 24 | * Public or private harassment 25 | * Publishing others' private information, such as a physical or email 26 | address, without their explicit permission 27 | * Other conduct which could reasonably be considered inappropriate in a 28 | professional setting 29 | 30 | ## Enforcement Responsibilities 31 | 32 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful. 33 | 34 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate. 35 | 36 | ## Scope 37 | 38 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. 39 | 40 | ## Enforcement 41 | 42 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at `proyectos@camba.coop`. All complaints will be reviewed and investigated promptly and fairly. 43 | 44 | All community leaders are obligated to respect the privacy and security of the reporter of any incident. 45 | 46 | ## Enforcement Guidelines 47 | 48 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct: 49 | 50 | ### 1. Correction 51 | 52 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community. 53 | 54 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested. 55 | 56 | ### 2. Warning 57 | 58 | **Community Impact**: A violation through a single incident or series of actions. 59 | 60 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban. 61 | 62 | ### 3. Temporary Ban 63 | 64 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior. 65 | 66 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban. 67 | 68 | ### 4. Permanent Ban 69 | 70 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals. 71 | 72 | **Consequence**: A permanent ban from any sort of public interaction within the community. 73 | 74 | ## Attribution 75 | 76 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0, 77 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 78 | 79 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity). 80 | 81 | [homepage]: https://www.contributor-covenant.org 82 | 83 | For answers to common questions about this code of conduct, see the FAQ at 84 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations. 85 | -------------------------------------------------------------------------------- /lib/parse-model.js: -------------------------------------------------------------------------------- 1 | import faker from 'faker' 2 | import { numbers } from './helpers' 3 | 4 | function configureFaker(config) { 5 | const { locale = 'en' } = config 6 | faker.locale = locale 7 | } 8 | 9 | /** 10 | * parseModel - Iterates over named keys of an object while recursively parses 11 | * the given node, until every leaf is parsed. Starts parsing parents, then 12 | * that parent's children until it ends. 13 | * -> An Object model type is considered a Node. 14 | * -> A model type different than Object is considered a Leaf. 15 | * 16 | * @param {Object} model an object with domain-specific keys 17 | * @return {Object} A processed model 18 | */ 19 | function parseModel(model, options) { 20 | if (isLeafModel(model)) { 21 | return generateModel(model, options) 22 | } 23 | const modelKeys = Object.keys(model) 24 | return modelKeys.reduce((accumulator, currentValue) => { 25 | const value = generateModel(model[currentValue], options) 26 | // assigns currentValue, which is the current scanned attribute of the 27 | // model, starting from parents to children 28 | return Object.assign(accumulator, { [currentValue]: value }) 29 | }, {}) 30 | } 31 | 32 | /** 33 | * generateModel Given a model and options, processes it against the avaialble 34 | * model types and returns the result. 35 | * @param {Object} model A user defined model 36 | * @param {Object} options User defined options 37 | * @return {Object} A processed model 38 | */ 39 | function generateModel(model, options) { 40 | const { type, value, options: currentModelOptions = {} } = model 41 | // Propagates initial options 42 | const updatedOptions = Array.isArray(currentModelOptions) 43 | ? [...currentModelOptions, options] 44 | : Object.assign({}, options, currentModelOptions) 45 | return modelAttributeTypes[type](value, updatedOptions) 46 | } 47 | 48 | /** 49 | * isLeafModel - Given an Object determines if it should be treated as a final 50 | * Model, meaning there are no more nested models inside it. 51 | * @param {Object} model An Object that might have a `type` attribute of String 52 | * type with a Data Generator function as value. 53 | * @return {Boolean} 54 | */ 55 | function isLeafModel(model) { 56 | return model.hasOwnProperty('type') && typeof model.type !== 'object' 57 | } 58 | 59 | /** 60 | * parseArray - Takes a model, options, and size. If the size is an Array (ex. [1, 20]) 61 | * it will use the randomBetween method from numbers to get a random number between 62 | * the first and second index. 63 | * If size is a simple number, it just uses that. 64 | * -> parseModel can be either a Node or a Leaf. 65 | * 66 | * @param {Object} model A model Node 67 | * @param {Object} options [size: Number] 68 | * @return {Array} A parsed model 69 | */ 70 | function parseArray(model, options) { 71 | let size = options.size; 72 | if (Array.isArray(size)) { 73 | size = numbers.randomBetween(size) 74 | } 75 | return [...Array(size).keys()].map(() => parseModel(model.value, options)); 76 | } 77 | 78 | /** 79 | * parseLiteral - For those times when you simply need a literal value 80 | * 81 | * @param {Any} model A model Node 82 | * @return {Any} Any given value 83 | */ 84 | function parseLiteral(model) { 85 | return model; 86 | } 87 | 88 | /** 89 | * parseString - For those times when you simply need a string value 90 | * 91 | * @param {Any} model A model Node 92 | * @return {Any} Any given value 93 | */ 94 | function parseString(model) { 95 | console.warn('\x1b[33m%s\x1b[0m', 'Deprecation warning: Please use \'Literal\' instead of \'String\'. See more: https://github.com/Cambalab/fake-data-generator/tree/develop#literal') 96 | return model; 97 | } 98 | 99 | /** 100 | * append - Given a model and options, appends a value to the parsed model. 101 | * -> parsedModel should return a Leaf. 102 | * @param {Object} model A model Node 103 | * @param {Object} options [text: Number|String>] 104 | * @return {String} A parsed model 105 | */ 106 | function append(model, options) { 107 | return `${parseModel(model)}${options.text}` 108 | } 109 | 110 | /** 111 | * prepend - Given a model and options, prepends a value to the parsed model. 112 | * -> parsedModel should return a Leaf. 113 | * @param {Object} model A model Node 114 | * @param {Object} options [text: Number|String>] 115 | * @return {String} A parsed model 116 | */ 117 | function prepend(model, options) { 118 | return `${options.text}${parseModel(model)}` 119 | } 120 | 121 | const modelAttributeTypes = { 122 | // Structure types 123 | Object: parseModel, 124 | Array: parseArray, 125 | Literal: parseLiteral, 126 | String: parseString, 127 | // Data generators types 128 | // -- external libs 129 | faker: (args, options = {}) => Object.byString(faker, args)(...options), 130 | // -- internal libs 131 | // ---- strings 132 | append, 133 | prepend, 134 | // ---- numbers 135 | incrementNumber: numbers.incrementNumber, 136 | incrementNumberBy: numbers.incrementNumberBy, 137 | randomNumberBetween: numbers.randomBetween, 138 | randomElementInArray: numbers.randomElementInArray, 139 | randomElementsInArray: numbers.randomElementsInArray, 140 | randomNumberBetweenWithString: numbers.randomBetweenWithString 141 | } 142 | 143 | export { 144 | parseArray, 145 | parseLiteral, 146 | parseModel, 147 | parseString, 148 | append, 149 | prepend 150 | } 151 | 152 | /** 153 | * parseModelData- Given a model, configures faker and returns a parsed model. 154 | * @param {Object} modelData An object containing the model data, usually 155 | * containing a 'config' and 'model' parent attributes 156 | * @param {Object} options Different options provided from the model creation 157 | * step 158 | * @return {Any} Returns a parsed model 159 | */ 160 | export default (modelData, options = {}) => { 161 | const { config = {}, model } = modelData 162 | 163 | configureFaker(config) 164 | 165 | return parseModel(model, options) 166 | } 167 | -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Fake-data-generator Contributing Guide 2 | 3 | Hi! We're really excited that you are interested in contributing to Fake-data-generator. Before submitting your contribution, please make sure to take a moment and read through the following guidelines: 4 | 5 | + [Code of Conduct](https://github.com/Cambalab/fake-data-generator/blob/master/.github/CODE_OF_CONDUCT.md) 6 | + [Issue Reporting Guidelines](#issue-reporting-guidelines) 7 | + [Pull Request Guidelines](#pull-request-guidelines) 8 | + [Development Setup](#development-setup) 9 | + [Project Structure](#project-structure) 10 | 11 | ## Issue Reporting Guidelines 12 | 13 | - Always use our [**bug**](https://github.com/Cambalab/fake-data-generator/issues/new?assignees=&labels=&template=bug_report.md&title=) or [**feature**](https://github.com/Cambalab/fake-data-generator/issues/new?assignees=&labels=&template=feature_request.md&title=) templates to create an issue. 14 | 15 | ## Pull Request Guidelines 16 | 17 | + The `master` branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. **Do not submit PRs against the `master` branch.** 18 | 19 | + Checkout a topic branch from the relevant branch, e.g. `develop`, and merge back against that branch. Please follow this convention for the new branch: `issueNumber-githubUsernaame-commitTitle`. 20 | 21 | + Most of the contributed work should generally target the `lib` folder. 22 | 23 | + It's OK to have multiple small commits as you work on the PR - We may squash them before merging if necessary. 24 | 25 | + Make sure `npm run test:unit` passes. (see [**development setup**](#development-setup)) 26 | 27 | + If adding a new feature: 28 | + Add accompanying test case (at the moment a unit test would be enough). 29 | + Provide a convincing reason to add this feature. Ideally, you should open a suggestion issue first and have it approved before working on it. 30 | 31 | + If fixing bug: 32 | + If you are resolving a special issue, please follow the branch naming convention mentioned above. 33 | + Provide a detailed description of the bug in the PR. Live demo preferred. 34 | + Add appropriate test coverage if applicable. 35 | 36 | ## Development Setup 37 | 38 | You will need [**Node.js**](http://nodejs.org) **version 8+**. 39 | 40 | After cloning the forked repository, run: 41 | 42 | ```bash 43 | npm install 44 | ``` 45 | 46 | ### Committing Changes 47 | 48 | We don't expect any strict convention, but we'd be grateful if you summarize what your modifications content is about when writing a commit. 49 | 50 | ### Commonly used NPM scripts 51 | 52 | ``` bash 53 | # run unit tests 54 | npm run test:unit 55 | 56 | # run the unit test coverage 57 | npm run test:coverage 58 | 59 | # build all dist files 60 | npm run build 61 | ``` 62 | 63 | There are some other scripts available in the `scripts` section of the `package.json` file. 64 | 65 | The test:unit script will run the unit tests. **Please make sure to have this pass successfully before submitting a PR.** Although the same tests will be run against your PR on the CI server, it is better to have it working locally. 66 | 67 | ## Project Structure 68 | 69 | + **`dist`**: contains built files for distribution. Note this directory is only updated when a release happens; they do not reflect the latest changes in development branches. 70 | 71 | + **`test`**: contains all tests. The unit tests are written with [**Chai**](https://www.chaijs.com/) and run using [**Mocha**](https://mochajs.org/). 72 | 73 | + **`lib`**: contains the source code. The codebase is written in ES2015. 74 | 75 | + **`create-file`**: contains simple disc writing operations. 76 | 77 | + **`create-model`**: decides whether the script should create one or more documents. 78 | 79 | + **`get-model`**: related to types of input models the script will receive. 80 | 81 | + **`parse-model`**: most of the main code lives here. This is the place where new features may be added. Contains parsing operations for different types of structures. 82 | 83 | + **`helpers`**: utility functions shared by the main source code. 84 | 85 | ## Release 86 | 87 | There are scripts available to publish npm releases: `release:major`, `release:minor`, `release:patch`. Each of them run a build, create tags, generates a changelog, commit changes and pushes everything to github. 88 | 89 | ### Pre-requisites 90 | 91 | The changelog is generated using the [dockerized version](https://github.com/github-changelog-generator/docker-github-changelog-generator) of the [github changelog generator](https://github.com/github-changelog-generator/github-changelog-generator) ruby program. Docker is a pre-requisite to run this script. You'll also have to provide an auth token to run this program. This can be easily done by exporting the next from your `.bashrc`, `.zshrc` or whatever runtime configuration file you use. Remember to run `source ` after declaring the auth token. 92 | 93 | ```bash 94 | export CHANGELOG_GITHUB_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 95 | ``` 96 | 97 | ### Releasing a version 98 | 99 | Releases are performed from the `develop` branch. When `develop` is in sync with the remote repository, the workspace is clean, and you're ready to release, checkout a new branch with the new version name. 100 | 101 | ```bash 102 | VERSION=x.x.x 103 | git checkout -b $VERSION 104 | git push --set-upstream origin $VERSION 105 | ``` 106 | 107 | Then run the proper release script. 108 | 109 | ```bash 110 | npm run release: 111 | ``` 112 | 113 | ### Drafting a release 114 | 115 | The last step is to draft the release in the Github repository. Go to the [New release section](https://github.com/Cambalab/fake-data-generator/releases/new). Then we'll fill the form inputs one by one. 116 | 117 | + Tag version: all our tags are named `vx.x.x`. Example: `v0.4.1`. 118 | + Release title: `Release vx.x.x` Example: `Release v0.4.1`. 119 | + Release description: to complete this field we use the previously generated changelog. Pick the first section of the document, starting like `## [vx.x.x](https://github.com/Cambalab/fake-data-generator/tree/vx.x.x) (2020-03-21)`. We just want to include details related with our recent version release in the current draft. You can take a look at a [previous draft](https://github.com/Cambalab/fake-data-generator/releases) to get an example. 120 | + Use the **Preview** tab to check that the output description looks fine. 121 | + Click the **Publish release** button. 122 | 123 | After the release is done, we open a PR from the `$VERSION` branch to the `master` branch and update the `develop` branch with the new version. 124 | 125 | > *In the future we'd likely want to do this automatically and add a CI pipeline that triggers tests before releasig a given version type (major, minor, patch)*. 126 | 127 | ## Attribution 128 | 129 | This Contributing Guidelines were adapted from the [Vue.js Contributing Guide][vue-js-contributing-guide]. 130 | 131 | [vue-js-contributing-guide]: https://github.com/vuejs/vue/blob/dev/.github/CONTRIBUTING.md 132 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## [v0.4.3](https://github.com/Cambalab/fake-data-generator/tree/v0.4.3) (2021-03-31) 4 | 5 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.4.2...v0.4.3) 6 | 7 | **Merged pull requests:** 8 | 9 | - Bump y18n from 4.0.0 to 4.0.1 [\#79](https://github.com/Cambalab/fake-data-generator/pull/79) ([dependabot[bot]](https://github.com/apps/dependabot)) 10 | - 0.4.2 [\#76](https://github.com/Cambalab/fake-data-generator/pull/76) ([sgobotta](https://github.com/sgobotta)) 11 | 12 | ## [v0.4.2](https://github.com/Cambalab/fake-data-generator/tree/v0.4.2) (2020-12-10) 13 | 14 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.4.1...v0.4.2) 15 | 16 | **Implemented enhancements:** 17 | 18 | - Dockerize the github changelog generation release step [\#71](https://github.com/Cambalab/fake-data-generator/issues/71) 19 | 20 | **Fixed bugs:** 21 | 22 | - Example seems to generate null instead of date.between [\#74](https://github.com/Cambalab/fake-data-generator/issues/74) 23 | 24 | **Merged pull requests:** 25 | 26 | - 74 example seems to generate null instead of date.between [\#75](https://github.com/Cambalab/fake-data-generator/pull/75) ([sgobotta](https://github.com/sgobotta)) 27 | - 0.4.1 [\#73](https://github.com/Cambalab/fake-data-generator/pull/73) ([sgobotta](https://github.com/sgobotta)) 28 | 29 | ## [v0.4.1](https://github.com/Cambalab/fake-data-generator/tree/v0.4.1) (2020-10-03) 30 | 31 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.4.0...v0.4.1) 32 | 33 | **Merged pull requests:** 34 | 35 | - Dockerized changelog generation [\#72](https://github.com/Cambalab/fake-data-generator/pull/72) ([sgobotta](https://github.com/sgobotta)) 36 | - Parse model refactor [\#70](https://github.com/Cambalab/fake-data-generator/pull/70) ([sgobotta](https://github.com/sgobotta)) 37 | - Bump node-fetch from 2.6.0 to 2.6.1 [\#69](https://github.com/Cambalab/fake-data-generator/pull/69) ([dependabot[bot]](https://github.com/apps/dependabot)) 38 | - Bump codecov from 3.6.5 to 3.7.1 [\#68](https://github.com/Cambalab/fake-data-generator/pull/68) ([dependabot[bot]](https://github.com/apps/dependabot)) 39 | - Bump lodash from 4.17.15 to 4.17.19 [\#67](https://github.com/Cambalab/fake-data-generator/pull/67) ([dependabot[bot]](https://github.com/apps/dependabot)) 40 | - 0.4.0 [\#65](https://github.com/Cambalab/fake-data-generator/pull/65) ([sgobotta](https://github.com/sgobotta)) 41 | - 0.3.1 [\#62](https://github.com/Cambalab/fake-data-generator/pull/62) ([sgobotta](https://github.com/sgobotta)) 42 | - Bump acorn from 6.1.1 to 6.4.1 [\#59](https://github.com/Cambalab/fake-data-generator/pull/59) ([dependabot[bot]](https://github.com/apps/dependabot)) 43 | - Release v0.3.0 [\#52](https://github.com/Cambalab/fake-data-generator/pull/52) ([sgobotta](https://github.com/sgobotta)) 44 | - 0.1.10 [\#35](https://github.com/Cambalab/fake-data-generator/pull/35) ([sgobotta](https://github.com/sgobotta)) 45 | - 0.1.9 [\#34](https://github.com/Cambalab/fake-data-generator/pull/34) ([sgobotta](https://github.com/sgobotta)) 46 | 47 | ## [v0.4.0](https://github.com/Cambalab/fake-data-generator/tree/v0.4.0) (2020-03-21) 48 | 49 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.3.1...v0.4.0) 50 | 51 | **Implemented enhancements:** 52 | 53 | - As a user i want to get a subgroup of arrays from given options [\#63](https://github.com/Cambalab/fake-data-generator/issues/63) 54 | 55 | **Merged pull requests:** 56 | 57 | - 63 as a user i want to get a subgroup of arrays from given options [\#64](https://github.com/Cambalab/fake-data-generator/pull/64) ([sgobotta](https://github.com/sgobotta)) 58 | 59 | ## [v0.3.1](https://github.com/Cambalab/fake-data-generator/tree/v0.3.1) (2020-03-14) 60 | 61 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.3.0...v0.3.1) 62 | 63 | **Implemented enhancements:** 64 | 65 | - Improves test coverage [\#60](https://github.com/Cambalab/fake-data-generator/issues/60) 66 | - Implement an incrementNumber function [\#56](https://github.com/Cambalab/fake-data-generator/issues/56) 67 | - Propagate options through the parsing process [\#55](https://github.com/Cambalab/fake-data-generator/issues/55) 68 | - Rename String structure type to Literal [\#53](https://github.com/Cambalab/fake-data-generator/issues/53) 69 | 70 | **Merged pull requests:** 71 | 72 | - 60 improves test coverage [\#61](https://github.com/Cambalab/fake-data-generator/pull/61) ([sgobotta](https://github.com/sgobotta)) 73 | - 56 implement an increment number function [\#58](https://github.com/Cambalab/fake-data-generator/pull/58) ([sgobotta](https://github.com/sgobotta)) 74 | - 55 propagate options through the parsing process [\#57](https://github.com/Cambalab/fake-data-generator/pull/57) ([sgobotta](https://github.com/sgobotta)) 75 | - 53 rename string structure type to literal [\#54](https://github.com/Cambalab/fake-data-generator/pull/54) ([sgobotta](https://github.com/sgobotta)) 76 | 77 | ## [v0.3.0](https://github.com/Cambalab/fake-data-generator/tree/v0.3.0) (2020-02-12) 78 | 79 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.2.1...v0.3.0) 80 | 81 | **Implemented enhancements:** 82 | 83 | - Setup test coverage [\#48](https://github.com/Cambalab/fake-data-generator/issues/48) 84 | - Set up CI with build and tests [\#46](https://github.com/Cambalab/fake-data-generator/issues/46) 85 | - Implement a function that returns a known value [\#40](https://github.com/Cambalab/fake-data-generator/issues/40) 86 | - Implement a random element in array [\#39](https://github.com/Cambalab/fake-data-generator/issues/39) 87 | - Extend randomNumberBetweenWithString to use an Array as size [\#37](https://github.com/Cambalab/fake-data-generator/issues/37) 88 | 89 | **Closed issues:** 90 | 91 | - Implement tests for the parse-model module [\#21](https://github.com/Cambalab/fake-data-generator/issues/21) 92 | 93 | ## [v0.2.1](https://github.com/Cambalab/fake-data-generator/tree/v0.2.1) (2020-02-12) 94 | 95 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.10...v0.2.1) 96 | 97 | **Implemented enhancements:** 98 | 99 | - Update documentation with new features information [\#50](https://github.com/Cambalab/fake-data-generator/issues/50) 100 | - 50 update documentation with new features information [\#51](https://github.com/Cambalab/fake-data-generator/pull/51) ([sgobotta](https://github.com/sgobotta)) 101 | - 48 setup test coverage [\#49](https://github.com/Cambalab/fake-data-generator/pull/49) ([sgobotta](https://github.com/sgobotta)) 102 | - 46 set up ci with build and tests [\#47](https://github.com/Cambalab/fake-data-generator/pull/47) ([sgobotta](https://github.com/sgobotta)) 103 | 104 | **Closed issues:** 105 | 106 | - Consider running npm audit to remove dependencies vulnerabilities [\#44](https://github.com/Cambalab/fake-data-generator/issues/44) 107 | 108 | **Merged pull requests:** 109 | 110 | - 44 consider running npm audit to remove dependencies vulnerabilities [\#45](https://github.com/Cambalab/fake-data-generator/pull/45) ([sgobotta](https://github.com/sgobotta)) 111 | - Bump lodash from 4.17.11 to 4.17.15 [\#43](https://github.com/Cambalab/fake-data-generator/pull/43) ([dependabot[bot]](https://github.com/apps/dependabot)) 112 | - Bump mixin-deep from 1.3.1 to 1.3.2 [\#42](https://github.com/Cambalab/fake-data-generator/pull/42) ([dependabot[bot]](https://github.com/apps/dependabot)) 113 | - Bump eslint-utils from 1.3.1 to 1.4.3 [\#41](https://github.com/Cambalab/fake-data-generator/pull/41) ([dependabot[bot]](https://github.com/apps/dependabot)) 114 | - Unit tests [\#38](https://github.com/Cambalab/fake-data-generator/pull/38) ([anthonydeaver](https://github.com/anthonydeaver)) 115 | - Feature updates [\#36](https://github.com/Cambalab/fake-data-generator/pull/36) ([anthonydeaver](https://github.com/anthonydeaver)) 116 | 117 | ## [v0.1.10](https://github.com/Cambalab/fake-data-generator/tree/v0.1.10) (2019-11-17) 118 | 119 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.9...v0.1.10) 120 | 121 | **Implemented enhancements:** 122 | 123 | - 32 as a user i want to define an input type to be able to use different kind of models [\#33](https://github.com/Cambalab/fake-data-generator/pull/33) ([sgobotta](https://github.com/sgobotta)) 124 | - 27 add support for faker date between [\#28](https://github.com/Cambalab/fake-data-generator/pull/28) ([sgobotta](https://github.com/sgobotta)) 125 | 126 | **Merged pull requests:** 127 | 128 | - Removes constants config file [\#31](https://github.com/Cambalab/fake-data-generator/pull/31) ([sgobotta](https://github.com/sgobotta)) 129 | - 0.1.8 [\#29](https://github.com/Cambalab/fake-data-generator/pull/29) ([sgobotta](https://github.com/sgobotta)) 130 | - 0.1.7 [\#26](https://github.com/Cambalab/fake-data-generator/pull/26) ([sgobotta](https://github.com/sgobotta)) 131 | 132 | ## [v0.1.9](https://github.com/Cambalab/fake-data-generator/tree/v0.1.9) (2019-11-17) 133 | 134 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.8...v0.1.9) 135 | 136 | **Implemented enhancements:** 137 | 138 | - As a User I want to define an inputType to be able to use different kind of models [\#32](https://github.com/Cambalab/fake-data-generator/issues/32) 139 | - Remove the config constant [\#30](https://github.com/Cambalab/fake-data-generator/issues/30) 140 | - Add support for faker date between [\#27](https://github.com/Cambalab/fake-data-generator/issues/27) 141 | 142 | ## [v0.1.8](https://github.com/Cambalab/fake-data-generator/tree/v0.1.8) (2019-10-25) 143 | 144 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.7...v0.1.8) 145 | 146 | ## [v0.1.7](https://github.com/Cambalab/fake-data-generator/tree/v0.1.7) (2019-10-23) 147 | 148 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.6...v0.1.7) 149 | 150 | ## [v0.1.6](https://github.com/Cambalab/fake-data-generator/tree/v0.1.6) (2019-10-23) 151 | 152 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.2.0...v0.1.6) 153 | 154 | ## [v0.2.0](https://github.com/Cambalab/fake-data-generator/tree/v0.2.0) (2019-10-23) 155 | 156 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.5...v0.2.0) 157 | 158 | **Implemented enhancements:** 159 | 160 | - Add tests with jest [\#19](https://github.com/Cambalab/fake-data-generator/issues/19) 161 | - Add support for random numbers with a string addition [\#17](https://github.com/Cambalab/fake-data-generator/issues/17) 162 | - Add eslint [\#11](https://github.com/Cambalab/fake-data-generator/issues/11) 163 | - Add usage info to the cli [\#24](https://github.com/Cambalab/fake-data-generator/pull/24) ([glmaljkovich](https://github.com/glmaljkovich)) 164 | - Concatenate [\#22](https://github.com/Cambalab/fake-data-generator/pull/22) ([glmaljkovich](https://github.com/glmaljkovich)) 165 | - 19 add tests with jest [\#20](https://github.com/Cambalab/fake-data-generator/pull/20) ([sgobotta](https://github.com/sgobotta)) 166 | - 17 add support for random numbers with string addition [\#18](https://github.com/Cambalab/fake-data-generator/pull/18) ([sgobotta](https://github.com/sgobotta)) 167 | - 11 add eslint [\#14](https://github.com/Cambalab/fake-data-generator/pull/14) ([sgobotta](https://github.com/sgobotta)) 168 | - 11 git hooks [\#13](https://github.com/Cambalab/fake-data-generator/pull/13) ([sgobotta](https://github.com/sgobotta)) 169 | 170 | **Fixed bugs:** 171 | 172 | - Cannot find module: model is not being resolved. [\#23](https://github.com/Cambalab/fake-data-generator/issues/23) 173 | - Fix/models path [\#25](https://github.com/Cambalab/fake-data-generator/pull/25) ([jphetphoumy](https://github.com/jphetphoumy)) 174 | 175 | **Closed issues:** 176 | 177 | - Update README.md footer [\#15](https://github.com/Cambalab/fake-data-generator/issues/15) 178 | - Add changelog [\#10](https://github.com/Cambalab/fake-data-generator/issues/10) 179 | 180 | **Merged pull requests:** 181 | 182 | - Updates README.md footer with cambá images [\#16](https://github.com/Cambalab/fake-data-generator/pull/16) ([sgobotta](https://github.com/sgobotta)) 183 | - 10 add changelog [\#12](https://github.com/Cambalab/fake-data-generator/pull/12) ([sgobotta](https://github.com/sgobotta)) 184 | - v0.1.15 [\#9](https://github.com/Cambalab/fake-data-generator/pull/9) ([sgobotta](https://github.com/sgobotta)) 185 | 186 | ## [v0.1.5](https://github.com/Cambalab/fake-data-generator/tree/v0.1.5) (2019-03-14) 187 | 188 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.4...v0.1.5) 189 | 190 | **Merged pull requests:** 191 | 192 | - Develop [\#8](https://github.com/Cambalab/fake-data-generator/pull/8) ([sgobotta](https://github.com/sgobotta)) 193 | - Add Array type support for recursive goodness [\#7](https://github.com/Cambalab/fake-data-generator/pull/7) ([glmaljkovich](https://github.com/glmaljkovich)) 194 | - Release 0.1.4 [\#6](https://github.com/Cambalab/fake-data-generator/pull/6) ([sgobotta](https://github.com/sgobotta)) 195 | 196 | ## [v0.1.4](https://github.com/Cambalab/fake-data-generator/tree/v0.1.4) (2019-03-09) 197 | 198 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.3...v0.1.4) 199 | 200 | ## [v0.1.3](https://github.com/Cambalab/fake-data-generator/tree/v0.1.3) (2019-03-09) 201 | 202 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.2...v0.1.3) 203 | 204 | ## [v0.1.2](https://github.com/Cambalab/fake-data-generator/tree/v0.1.2) (2019-03-09) 205 | 206 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.1...v0.1.2) 207 | 208 | **Merged pull requests:** 209 | 210 | - Updates templates [\#4](https://github.com/Cambalab/fake-data-generator/pull/4) ([sgobotta](https://github.com/sgobotta)) 211 | - Release 0.1.1 [\#3](https://github.com/Cambalab/fake-data-generator/pull/3) ([sgobotta](https://github.com/sgobotta)) 212 | 213 | ## [v0.1.1](https://github.com/Cambalab/fake-data-generator/tree/v0.1.1) (2019-03-09) 214 | 215 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/v0.1.0...v0.1.1) 216 | 217 | **Merged pull requests:** 218 | 219 | - Release 0.1.0 [\#2](https://github.com/Cambalab/fake-data-generator/pull/2) ([sgobotta](https://github.com/sgobotta)) 220 | 221 | ## [v0.1.0](https://github.com/Cambalab/fake-data-generator/tree/v0.1.0) (2019-03-09) 222 | 223 | [Full Changelog](https://github.com/Cambalab/fake-data-generator/compare/0ef840c2d2524e72e6a90f3907f820f4d094e103...v0.1.0) 224 | 225 | **Merged pull requests:** 226 | 227 | - Create LICENSE [\#1](https://github.com/Cambalab/fake-data-generator/pull/1) ([sgobotta](https://github.com/sgobotta)) 228 | 229 | 230 | 231 | \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* 232 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Fake Data Generator 2 | 3 |

Just a small open-source script to create fake data given a simple JSON model.

4 | 5 |

6 | 7 | Build Status 8 | 9 | 10 | 11 | 12 | 13 | Npm version 14 | 15 | 16 | License 17 | 18 | 19 | License 20 | 21 |

22 | 23 | ## Introduction 24 | 25 | This is a tiny package motivated by the need of generating certain amount of fake data to populate backend fixtures. We started implementing and editing a single `.js` file with specific characteristics of some backend models and the desired amount we wanted to generate until we ended up with something like this. We personally decided to use the output files in the API endpoints of a test server but you could use them any way you like, they're just `.json` files. 26 | 27 | ## Built-In Dependencies 28 | 29 | + **[Faker](https://www.npmjs.com/package/faker)**: we use the Faker API to create fake data 30 | 31 | ## Installation 32 | 33 | There are a few ways you can get this library installed: 34 | 35 | + Install as a standalone forked repository 36 | 37 | ```bash 38 | # clone our project or fork your own 39 | git clone https://github.com/Cambalab/fake-data-generator.git 40 | # install dependencies 41 | npm install 42 | ``` 43 | 44 | + Install as an npm dependency for your own project 45 | 46 | ```bash 47 | # install it as a dependency or dev-dependency of our own project 48 | npm install --save-dev fake-data-generator 49 | ``` 50 | 51 | + Use it globally from a terminal 52 | 53 | ```bash 54 | # install it globally 55 | npm install -g fake-data-generator 56 | ``` 57 | 58 | ## Usage 59 | 60 | ### Usage from a forked or cloned repository 61 | 62 | 1. Write a `.json` model in the `models` directory. [**Article Example**](/models/example.json) 63 | 64 | 2. Run the `generate` script from a terminal 65 | 66 | *The following command writes a .json file with an array of 50 elements to the output directory, where:* 67 | 68 | + **1st param** `example`: is the name of your `model.json` file. 69 | + **2nd param** `10`: the numbers of models to generate. 70 | + **3rd param** `example.json`: the name of the output file. 71 | 72 | ```bash 73 | npm run generate example 50 example.json 74 | ``` 75 | 76 | [***Output Example***](/output/example.json) 77 | 78 | ### Usage as an npm dependency 79 | 80 | 1. Write a model as explained before. It can be a `.json` file or a javascript `Object` 81 | 2. Use it in your own module 82 | 83 | #### Params description 84 | 85 | **amountArg:** 86 | + **Type:** `Number` 87 | + **Description:** describes how many elements should be created from a given model 88 | + **Required** 89 | 90 | **modelArg:** 91 | + **Type:** `Object | Json file` 92 | + **Description:** when **inputType** param is `json`, **modelArg** behaves as a file path to that json file. For `object` **inputType** values, **modelArg** behaves like a javascript object, where the model should be defined. 93 | + **Required** 94 | 95 | **fileName:** 96 | + **Type:** `String` 97 | + **Description** when **inputType** is `json` **fileName** will describe the output path where the file will be writen to. 98 | 99 | **inputType:** 100 | + **Type:** `String` 101 | + **Options:** `object | json` 102 | + **Description:** describes the kind of input the generator will receive and read the model from. 103 | 104 | **outputType:** 105 | + **Type:** `String` 106 | + **Options:** `object | json` 107 | + **Description:** describes the kind of output the generator will write or return. 108 | 109 | ```javascript 110 | // Requires the package 111 | const { generateModel } = require('fake-data-generator') 112 | // Requires a model 113 | const model = require('./models/example.json') 114 | // Generate the model 115 | const amountArg = 50 116 | const modelArg = model 117 | const inputType = 'object' 118 | const outputType = 'object' 119 | const generatedModel = generateModel({ amountArg, modelArg, inputType, outputType }) 120 | ``` 121 | 122 | > Note that when using `required` or `import` on a `.json` file the returned value behaves like a javascript Object. 123 | 124 | ### Usage as a global npm dependency 125 | 126 | 1. Create a `models` directory, an `output` directory and write a `.json` model as explained before.

127 | 128 | ```bash 129 | mkdir models 130 | mkdir output 131 | ``` 132 | 133 | 2. Run the global npm bin script.

134 | 135 | ```bash 136 | fake-data-generator example 10 example.json 137 | ``` 138 | 139 | ## Models Format 140 | 141 | ### config 142 | 143 | + **Type:** *(optional)* `Object` 144 | 145 | + **Details:** general configuration. 146 | 147 | + **Properties:** 148 | + **locale:** *language used for `faker.locale`.* 149 | 150 | ### amount 151 | 152 | + **Type:** *(optional)* `Number` 153 | 154 | + **Details:** an amount of objects to generate. 155 | 156 | > *When this value is present, the amount value given from a cli or the generateModel function from the npm package is overwritten.* 157 | 158 | 159 | ### model 160 | 161 | + **Type:** `Object` 162 | 163 | + **Details:** A declaration of your object model 164 | 165 | + **Properties:** 166 | + **attributeName** *an attribute of your model. Example:* ***`id`*** 167 | + **type** *one of fake-data-generator types. Example:* ***`faker`, `randomNumberBetween`, `Object`, `Array`***. 168 | + **value** *a value corresponding to the specified type*. 169 | + **options** *configuration options for the specified type (required by some types)*. 170 | 171 | # 172 | 173 | ### Types and Values 174 | 175 | A valid format would be an object with the following keys: 176 | + **type** 177 | + **value** 178 | + **options** *(optional)* 179 | 180 | # 181 | 182 | #### faker 183 | 184 | Currently the script supports faker methods that return `Date`, `String` or `Number` data only. It's not ready to handle faker methods that receive arguments ***yet.*** 185 | 186 | If you're not familiar with `faker`, take a look at their [**docs**](https://www.npmjs.com/package/faker#api-methods), it's really simple to use. 187 | 188 | Any other faker method can be used in the **value** attribute like this: 189 | 190 | *suppose we want to generate a company attribute with faker, then we would declare in the model:* 191 | 192 | ```json 193 | { 194 | "company": { 195 | "type": "faker", 196 | "value": "company.companyName" 197 | } 198 | } 199 | ``` 200 | 201 | # 202 | 203 | #### Literal 204 | 205 | This is simply a pass-through for those occasions when a known value is desired. 206 | 207 | `value: any` 208 | 209 | Case with a `String` 210 | ```json 211 | { 212 | "operating_system": { 213 | "type": "Literal", 214 | "value": "Linux" 215 | } 216 | } 217 | ``` 218 | 219 | Case using an `Array` of elements 220 | ```json 221 | { 222 | "resources": { 223 | "type": "Literal", 224 | "value": ["memory", "disk", "network", "cpu"] 225 | } 226 | } 227 | ``` 228 | 229 | # 230 | 231 | #### Object 232 | 233 | This is how the script knows we want to nest objects 234 | 235 | *say we want to declare a more complex company model:* 236 | 237 | `value: Object` an object with a type, value, options structure 238 | 239 | ```json 240 | { 241 | "company": { 242 | "type": "Object", 243 | "value": { 244 | "name": { 245 | "type": "faker", 246 | "value": "company.companyName" 247 | }, 248 | "address": { 249 | "type": "Object", 250 | "value": { 251 | "street": { 252 | "type": "faker", 253 | "value": "address.streetAddress" 254 | }, 255 | "city": { 256 | "type": "faker", 257 | "value": "address.city" 258 | }, 259 | "state": { 260 | "type": "faker", 261 | "value": "address.state" 262 | } 263 | } 264 | } 265 | } 266 | } 267 | } 268 | ``` 269 | 270 | # 271 | 272 | #### Numbers 273 | 274 | ##### randomNumberBetween 275 | 276 | *The script provides a simple way to get a random number between a range of numbers* 277 | 278 | `value: Array` a range of values to compute the random number 279 | 280 | ```json 281 | { 282 | "timesIWatchedNicolasCageMovies": { 283 | "type": "randomNumberBetween", 284 | "value": [150, 2587655] 285 | } 286 | } 287 | ``` 288 | 289 | ##### randomElementInArray 290 | 291 | *The script provides a simple way to get a random element from an array of options.* 292 | 293 | `value: Array` a list of options to pick from. 294 | 295 | ```json 296 | { 297 | "whichMovieToWatchTonight": { 298 | "type": "randomElementInArray", 299 | "value": ["Frozen", "Mulan", "The Lion King", "Aladdin", "Pulp Fiction"] 300 | } 301 | } 302 | ``` 303 | 304 | *output* 305 | ```json 306 | { 307 | "whichMovieToWatchTonight": "Pulp Fiction" 308 | } 309 | ``` 310 | 311 | ##### randomElementsInArray 312 | 313 | *This one returns a random group of elements from an array of options.* 314 | 315 | `value: Array` a list of options to pick from. 316 | 317 | ```json 318 | { 319 | "whichMoviesToWatchTonight": { 320 | "type": "randomElementsInArray", 321 | "value": ["Frozen", "Mulan", "The Lion King", "Aladdin", "Pulp Fiction"] 322 | } 323 | } 324 | ``` 325 | 326 | *output* 327 | ```json 328 | { 329 | "whichMoviesToWatchTonight": ["Pulp Fiction", "Aladdin"] 330 | } 331 | ``` 332 | 333 | ##### randomNumberBetweenWithString 334 | 335 | *Just another version of randomNumberBetween that accepts a range of numbers, a prefix as a string and a suffix as a string* 336 | 337 | ***options:*** 338 | + `prefix: String` a value to be interpolated as the number prefix 339 | + `suffix: String` a value to be interpolated as the number suffix 340 | 341 | ```json 342 | { 343 | "publication": { 344 | "type": "randomNumberBetweenWithString", 345 | "value": [1, 2500000], 346 | "options": { 347 | "prefix": "#", 348 | "suffix": "*" 349 | } 350 | } 351 | } 352 | ``` 353 | 354 | ##### incrementNumber 355 | 356 | *You can get incremental numbers based on the given amount for a model* 357 | 358 | > The `value` attribute is ignored 359 | 360 | ***options:*** 361 | + `from: Number` starts incrementing from a given number 362 | 363 | ```json 364 | { 365 | "brownies": { 366 | "type": "incrementNumber", 367 | "options": { 368 | "from": 420 369 | } 370 | } 371 | } 372 | ``` 373 | 374 | *Output using an amount of 3:* 375 | 376 | ```json 377 | [ 378 | { 379 | "brownies": 420 380 | }, 381 | { 382 | "brownies": 421 383 | }, 384 | { 385 | "brownies": 422 386 | }, 387 | ] 388 | ``` 389 | 390 | # 391 | 392 | #### Array 393 | 394 | Defines an `Array` of elements to be created with the same type. 395 | 396 | ***options*** 397 | + `size: Number` How many objects to create. **Required, is mutually exclusive with size: `Array`** 398 | + `size: Array` A two value array where the first value is the minimum number of entries and the second is the maximum. **Required, is mutually exclusive with size: `Number`** 399 | 400 | *Extending the company model a little further:* 401 | 402 | __as a Number__ 403 | ```json 404 | { 405 | "company": { 406 | "type": "Object", 407 | "value": { 408 | "name": { 409 | "type": "faker", 410 | "value": "company.companyName" 411 | }, 412 | "addresses": { 413 | "type": "Array", 414 | "options": { 415 | "size": 10 416 | }, 417 | "value": { 418 | "type": "Object", 419 | "value": { 420 | "street": { 421 | "type": "faker", 422 | "value": "address.streetAddress" 423 | }, 424 | "city": { 425 | "type": "faker", 426 | "value": "address.city" 427 | }, 428 | "state": { 429 | "type": "faker", 430 | "value": "address.state" 431 | } 432 | } 433 | } 434 | } 435 | } 436 | } 437 | } 438 | ``` 439 | 440 | __as an Array__ 441 | ```json 442 | { 443 | "company": { 444 | "type": "Object", 445 | "value": { 446 | "name": { 447 | "type": "faker", 448 | "value": "company.companyName" 449 | }, 450 | "addresses": { 451 | "type": "Array", 452 | "options": { 453 | "size": [5, 20] 454 | }, 455 | "value": { 456 | "type": "Object", 457 | "value": { 458 | "street": { 459 | "type": "faker", 460 | "value": "address.streetAddress" 461 | }, 462 | "city": { 463 | "type": "faker", 464 | "value": "address.city" 465 | }, 466 | "state": { 467 | "type": "faker", 468 | "value": "address.state" 469 | } 470 | } 471 | } 472 | } 473 | } 474 | } 475 | } 476 | ``` 477 | 478 | ##### Concatenate 479 | 480 | ###### prepend 481 | 482 | Adds a fixed `String` in front of another dynamic value generated by one of the other datatypes. 483 | 484 | ***options*** 485 | - `text: String` The text to be prepended. **required** 486 | 487 | ```json 488 | { 489 | "issue": { 490 | "type": "prepend", 491 | "options": {"text": "#"}, 492 | "value": { 493 | "type": "randomNumberBetween", 494 | "value": [1, 2500] 495 | } 496 | } 497 | } 498 | ``` 499 | 500 | ###### append 501 | 502 | Adds a fixed `String` at the back of another dynamic value generated by one of the other datatypes. 503 | 504 | ***options*** 505 | - `text: String` The text to be appended. **required** 506 | 507 | ```json 508 | { 509 | "fileName": { 510 | "type": "append", 511 | "options": {"text": ".pdf"}, 512 | "value": { 513 | "type": "faker", 514 | "value": "random.words" 515 | } 516 | } 517 | } 518 | ``` 519 | 520 | ## Contribution 521 | 522 | Please make sure to read the [**Contributing Guide**](https://github.com/Cambalab/fake-data-generator/blob/master/.github/CONTRIBUTING.md) before submitting pull requests. There you'll find development environment instructions, common scripts and the project structure summary. 523 | 524 | Feel free to open an issue if any faker method is not working as expcected or if you would like support for another data generator module. 525 | 526 | ## License 527 | 528 | [**GNU General Public License version 3**](https://github.com/Cambalab/fake-data-generator/blob/master/LICENSE) 529 | 530 | # 531 | 532 |

533 | 👩‍💻 With :green_heart: :purple_heart: :heart: by Cambá Coop :earth_americas: Buenos Aires, Argentina 534 | 535 |

536 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /output/example.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "id": 101, 4 | "type": "Im just a String", 5 | "timesClicked": 1848666, 6 | "title": "velit sapiente occaecati", 7 | "content": "Quam molestiae asperiores delectus veniam ratione asperiores repudiandae sunt debitis. Est voluptas provident. Odio dolorum nam totam velit error.", 8 | "updatedAt": "2020-12-09T05:53:39.035Z", 9 | "publicationDate": "2019-05-28T03:59:52.177Z", 10 | "issue": "#782", 11 | "fileName": "convergence.pdf", 12 | "publication": "#2449546*", 13 | "stats": [ 14 | { 15 | "likes": 17, 16 | "dislikes": 36 17 | }, 18 | { 19 | "likes": 32, 20 | "dislikes": 13 21 | }, 22 | { 23 | "likes": 27, 24 | "dislikes": 29 25 | } 26 | ], 27 | "author": { 28 | "firstName": "Marisol", 29 | "lastName": "Huels", 30 | "address": { 31 | "street": "20386 Chaim Mission", 32 | "city": "Runolfsdottirborough", 33 | "state": "Louisiana", 34 | "zipCode": "17466-0120", 35 | "country": "Jamaica" 36 | } 37 | } 38 | }, 39 | { 40 | "id": 102, 41 | "type": "Im just a String", 42 | "timesClicked": 811660, 43 | "title": "ut quasi quas", 44 | "content": "Autem minima aut laboriosam fuga reiciendis sapiente cum excepturi incidunt. Ratione quae sapiente ut debitis cumque fuga. Unde voluptatem voluptate placeat similique deserunt vitae aut fuga sed. Voluptatem non est qui iste laboriosam. Ut cumque corrupti illo ratione asperiores amet qui dolores dolore. Magni quod vel sequi modi et earum labore culpa aut.", 45 | "updatedAt": "2020-12-10T00:14:57.771Z", 46 | "publicationDate": "2019-08-25T05:34:27.162Z", 47 | "issue": "#639", 48 | "fileName": "Djibouti deposit.pdf", 49 | "publication": "#1114944*", 50 | "stats": [ 51 | { 52 | "likes": 19, 53 | "dislikes": 33 54 | }, 55 | { 56 | "likes": 15, 57 | "dislikes": 22 58 | }, 59 | { 60 | "likes": 39, 61 | "dislikes": 32 62 | } 63 | ], 64 | "author": { 65 | "firstName": "Winfield", 66 | "lastName": "Jerde", 67 | "address": { 68 | "street": "0535 Collins Groves", 69 | "city": "Jonathanfurt", 70 | "state": "Idaho", 71 | "zipCode": "10257-9174", 72 | "country": "Yemen" 73 | } 74 | } 75 | }, 76 | { 77 | "id": 103, 78 | "type": "Im just a String", 79 | "timesClicked": 2166799, 80 | "title": "qui ex deleniti", 81 | "content": "Omnis nesciunt ut corrupti at eos. Quia asperiores ad recusandae cumque quam delectus similique vel animi. Voluptas ipsa et. Id delectus error eaque dolore corrupti nostrum omnis.", 82 | "updatedAt": "2020-12-10T02:57:05.282Z", 83 | "publicationDate": "2019-10-16T16:20:50.659Z", 84 | "issue": "#283", 85 | "fileName": "Loan Rufiyaa.pdf", 86 | "publication": "#2242050*", 87 | "stats": [ 88 | { 89 | "likes": 5, 90 | "dislikes": 2 91 | }, 92 | { 93 | "likes": 36, 94 | "dislikes": 5 95 | }, 96 | { 97 | "likes": 39, 98 | "dislikes": 1 99 | } 100 | ], 101 | "author": { 102 | "firstName": "Prince", 103 | "lastName": "Boyle", 104 | "address": { 105 | "street": "804 Hirthe Wells", 106 | "city": "New Queen", 107 | "state": "Nebraska", 108 | "zipCode": "01992", 109 | "country": "Benin" 110 | } 111 | } 112 | }, 113 | { 114 | "id": 104, 115 | "type": "Im just a String", 116 | "timesClicked": 396675, 117 | "title": "quisquam in veritatis", 118 | "content": "Quam veniam commodi corrupti. Voluptatem deserunt ut dolorem. Voluptatum rerum est consequatur. Optio ratione aliquid quibusdam et qui.", 119 | "updatedAt": "2020-12-09T11:45:52.818Z", 120 | "publicationDate": "2019-07-10T05:13:17.752Z", 121 | "issue": "#1770", 122 | "fileName": "blockchains Territories Bedfordshire.pdf", 123 | "publication": "#2440534*", 124 | "stats": [ 125 | { 126 | "likes": 29, 127 | "dislikes": 29 128 | }, 129 | { 130 | "likes": 0, 131 | "dislikes": 12 132 | }, 133 | { 134 | "likes": 9, 135 | "dislikes": 20 136 | } 137 | ], 138 | "author": { 139 | "firstName": "Amara", 140 | "lastName": "Bashirian", 141 | "address": { 142 | "street": "29809 Stracke Springs", 143 | "city": "East Marlonhaven", 144 | "state": "Oregon", 145 | "zipCode": "24572", 146 | "country": "Algeria" 147 | } 148 | } 149 | }, 150 | { 151 | "id": 105, 152 | "type": "Im just a String", 153 | "timesClicked": 2271294, 154 | "title": "saepe ipsa maiores", 155 | "content": "Rerum provident voluptatum dicta cumque et explicabo sint officiis. Asperiores qui hic dolores et nihil at quia. Nulla omnis architecto iure qui et ipsam quia nobis. Explicabo sunt voluptatem fugit. Corporis blanditiis aperiam et laboriosam.", 156 | "updatedAt": "2020-12-09T07:42:58.616Z", 157 | "publicationDate": "2019-08-14T15:38:20.332Z", 158 | "issue": "#1321", 159 | "fileName": "Dynamic Bedfordshire.pdf", 160 | "publication": "#507981*", 161 | "stats": [ 162 | { 163 | "likes": 29, 164 | "dislikes": 30 165 | }, 166 | { 167 | "likes": 31, 168 | "dislikes": 1 169 | }, 170 | { 171 | "likes": 16, 172 | "dislikes": 9 173 | } 174 | ], 175 | "author": { 176 | "firstName": "Estella", 177 | "lastName": "Price", 178 | "address": { 179 | "street": "7398 Satterfield Rest", 180 | "city": "Port Carminefort", 181 | "state": "Louisiana", 182 | "zipCode": "33901-3765", 183 | "country": "Greece" 184 | } 185 | } 186 | }, 187 | { 188 | "id": 106, 189 | "type": "Im just a String", 190 | "timesClicked": 2007453, 191 | "title": "reprehenderit perferendis qui", 192 | "content": "Nesciunt eaque fugiat sit tempore illo sint. Odio deserunt perferendis et incidunt officia repellendus velit quia dolorum. Et dolorem eos porro delectus. Quia ullam delectus aut qui alias esse sit eos quis. Veniam aut eum.", 193 | "updatedAt": "2020-12-09T08:26:11.232Z", 194 | "publicationDate": "2019-08-04T07:35:22.613Z", 195 | "issue": "#2435", 196 | "fileName": "Crescent Lead pixel.pdf", 197 | "publication": "#1488532*", 198 | "stats": [ 199 | { 200 | "likes": 21, 201 | "dislikes": 36 202 | }, 203 | { 204 | "likes": 4, 205 | "dislikes": 28 206 | }, 207 | { 208 | "likes": 16, 209 | "dislikes": 34 210 | } 211 | ], 212 | "author": { 213 | "firstName": "Randall", 214 | "lastName": "Graham", 215 | "address": { 216 | "street": "8799 Miller Forge", 217 | "city": "Mitchellmouth", 218 | "state": "Washington", 219 | "zipCode": "83180", 220 | "country": "British Indian Ocean Territory (Chagos Archipelago)" 221 | } 222 | } 223 | }, 224 | { 225 | "id": 107, 226 | "type": "Im just a String", 227 | "timesClicked": 131923, 228 | "title": "aspernatur voluptas officiis", 229 | "content": "Omnis est dignissimos molestiae saepe. Nemo sed expedita expedita sapiente dolor sit distinctio. Occaecati vero perspiciatis maxime nobis alias ipsam nobis sit.", 230 | "updatedAt": "2020-12-09T08:49:44.802Z", 231 | "publicationDate": "2019-04-16T23:47:46.545Z", 232 | "issue": "#627", 233 | "fileName": "Planner lavender Implementation.pdf", 234 | "publication": "#518124*", 235 | "stats": [ 236 | { 237 | "likes": 21, 238 | "dislikes": 32 239 | }, 240 | { 241 | "likes": 5, 242 | "dislikes": 24 243 | }, 244 | { 245 | "likes": 38, 246 | "dislikes": 34 247 | } 248 | ], 249 | "author": { 250 | "firstName": "Dustin", 251 | "lastName": "Hessel", 252 | "address": { 253 | "street": "0431 Rau Unions", 254 | "city": "New Jadeport", 255 | "state": "Wyoming", 256 | "zipCode": "74472-9276", 257 | "country": "Wallis and Futuna" 258 | } 259 | } 260 | }, 261 | { 262 | "id": 108, 263 | "type": "Im just a String", 264 | "timesClicked": 891343, 265 | "title": "est similique omnis", 266 | "content": "Sit eligendi et illum quia. Consequatur ut similique sed occaecati et. Aut sit rerum repudiandae et id perferendis alias. Recusandae et sunt consectetur voluptatem. Ut incidunt est. Qui velit rerum unde inventore suscipit sunt eius fugit.", 267 | "updatedAt": "2020-12-09T23:51:32.005Z", 268 | "publicationDate": "2019-10-13T03:10:24.100Z", 269 | "issue": "#795", 270 | "fileName": "Soft.pdf", 271 | "publication": "#1356463*", 272 | "stats": [ 273 | { 274 | "likes": 18, 275 | "dislikes": 1 276 | }, 277 | { 278 | "likes": 11, 279 | "dislikes": 29 280 | }, 281 | { 282 | "likes": 15, 283 | "dislikes": 21 284 | } 285 | ], 286 | "author": { 287 | "firstName": "Bradly", 288 | "lastName": "Kertzmann", 289 | "address": { 290 | "street": "35298 Wunsch Passage", 291 | "city": "Louveniastad", 292 | "state": "Idaho", 293 | "zipCode": "97522", 294 | "country": "Turks and Caicos Islands" 295 | } 296 | } 297 | }, 298 | { 299 | "id": 109, 300 | "type": "Im just a String", 301 | "timesClicked": 305209, 302 | "title": "a magnam amet", 303 | "content": "Sit totam quos eum officia error ut ipsum voluptate eos. Natus deserunt sed voluptatum saepe qui cumque et ut deserunt. At quidem et et et doloremque nulla.", 304 | "updatedAt": "2020-12-09T11:32:25.082Z", 305 | "publicationDate": "2019-03-27T21:41:58.292Z", 306 | "issue": "#1393", 307 | "fileName": "up redundant.pdf", 308 | "publication": "#1121579*", 309 | "stats": [ 310 | { 311 | "likes": 1, 312 | "dislikes": 4 313 | }, 314 | { 315 | "likes": 22, 316 | "dislikes": 30 317 | }, 318 | { 319 | "likes": 39, 320 | "dislikes": 36 321 | } 322 | ], 323 | "author": { 324 | "firstName": "Jerrod", 325 | "lastName": "Nicolas", 326 | "address": { 327 | "street": "2042 Juliet Unions", 328 | "city": "Bednarborough", 329 | "state": "New Jersey", 330 | "zipCode": "35473", 331 | "country": "Bahamas" 332 | } 333 | } 334 | }, 335 | { 336 | "id": 110, 337 | "type": "Im just a String", 338 | "timesClicked": 1605225, 339 | "title": "cumque autem voluptatem", 340 | "content": "Ratione est dolorum voluptatum veritatis. In adipisci dolor voluptatibus aspernatur illum voluptatum. Aliquam veniam earum ut qui dignissimos et nulla voluptatum consequatur. Laudantium necessitatibus molestiae a distinctio nemo omnis architecto quo. Officia eos molestiae esse quia voluptatem quo voluptatibus. Perspiciatis esse quam et et exercitationem.", 341 | "updatedAt": "2020-12-09T18:28:49.286Z", 342 | "publicationDate": "2019-12-08T01:40:54.020Z", 343 | "issue": "#1492", 344 | "fileName": "input Chicken.pdf", 345 | "publication": "#6978*", 346 | "stats": [ 347 | { 348 | "likes": 26, 349 | "dislikes": 31 350 | }, 351 | { 352 | "likes": 40, 353 | "dislikes": 38 354 | }, 355 | { 356 | "likes": 36, 357 | "dislikes": 37 358 | } 359 | ], 360 | "author": { 361 | "firstName": "Jodie", 362 | "lastName": "Sipes", 363 | "address": { 364 | "street": "376 Ledner Grove", 365 | "city": "Iciemouth", 366 | "state": "Indiana", 367 | "zipCode": "32896", 368 | "country": "Greece" 369 | } 370 | } 371 | }, 372 | { 373 | "id": 111, 374 | "type": "Im just a String", 375 | "timesClicked": 635096, 376 | "title": "qui aut voluptatem", 377 | "content": "Dolor id est consequatur officiis animi praesentium facilis. Sequi autem sequi quam. Necessitatibus sed commodi culpa esse. Vitae beatae molestiae aut quis ducimus.", 378 | "updatedAt": "2020-12-09T22:41:12.171Z", 379 | "publicationDate": "2019-11-05T22:42:43.202Z", 380 | "issue": "#2479", 381 | "fileName": "Republic.pdf", 382 | "publication": "#2476861*", 383 | "stats": [ 384 | { 385 | "likes": 23, 386 | "dislikes": 40 387 | }, 388 | { 389 | "likes": 38, 390 | "dislikes": 36 391 | }, 392 | { 393 | "likes": 4, 394 | "dislikes": 29 395 | } 396 | ], 397 | "author": { 398 | "firstName": "Louisa", 399 | "lastName": "Lesch", 400 | "address": { 401 | "street": "87903 Muller Tunnel", 402 | "city": "West Winfieldburgh", 403 | "state": "Montana", 404 | "zipCode": "03367", 405 | "country": "Kazakhstan" 406 | } 407 | } 408 | }, 409 | { 410 | "id": 112, 411 | "type": "Im just a String", 412 | "timesClicked": 1160560, 413 | "title": "culpa omnis vero", 414 | "content": "Aut sed molestias consequatur molestiae non vitae. Non rerum accusamus. Iste et sint et sed odio voluptatem error. Omnis rerum consequatur omnis harum voluptatem maiores.", 415 | "updatedAt": "2020-12-09T11:09:31.271Z", 416 | "publicationDate": "2019-11-29T12:20:29.549Z", 417 | "issue": "#1867", 418 | "fileName": "Dollar.pdf", 419 | "publication": "#372985*", 420 | "stats": [ 421 | { 422 | "likes": 40, 423 | "dislikes": 38 424 | }, 425 | { 426 | "likes": 39, 427 | "dislikes": 20 428 | }, 429 | { 430 | "likes": 24, 431 | "dislikes": 21 432 | } 433 | ], 434 | "author": { 435 | "firstName": "Ernest", 436 | "lastName": "Grimes", 437 | "address": { 438 | "street": "443 Lisa Stravenue", 439 | "city": "Quigleyshire", 440 | "state": "Arkansas", 441 | "zipCode": "47035", 442 | "country": "Andorra" 443 | } 444 | } 445 | }, 446 | { 447 | "id": 113, 448 | "type": "Im just a String", 449 | "timesClicked": 583441, 450 | "title": "doloribus saepe et", 451 | "content": "In in est dicta. Excepturi laudantium suscipit nemo. Ea similique non mollitia porro tenetur pariatur doloribus culpa qui.", 452 | "updatedAt": "2020-12-09T17:19:39.073Z", 453 | "publicationDate": "2019-06-14T23:10:58.672Z", 454 | "issue": "#2293", 455 | "fileName": "Parkways Legacy.pdf", 456 | "publication": "#794540*", 457 | "stats": [ 458 | { 459 | "likes": 32, 460 | "dislikes": 4 461 | }, 462 | { 463 | "likes": 32, 464 | "dislikes": 39 465 | }, 466 | { 467 | "likes": 37, 468 | "dislikes": 9 469 | } 470 | ], 471 | "author": { 472 | "firstName": "Edgar", 473 | "lastName": "Abernathy", 474 | "address": { 475 | "street": "797 Raymond Fork", 476 | "city": "Hoytton", 477 | "state": "Nevada", 478 | "zipCode": "64771", 479 | "country": "Lebanon" 480 | } 481 | } 482 | }, 483 | { 484 | "id": 114, 485 | "type": "Im just a String", 486 | "timesClicked": 1857679, 487 | "title": "et qui consequatur", 488 | "content": "Quo tempora reprehenderit rerum quo qui rem. Maiores eligendi soluta rem fugiat. Fuga nam quaerat tenetur provident accusamus quia molestias. Error itaque veniam accusantium rerum quam eaque quidem praesentium illum.", 489 | "updatedAt": "2020-12-09T19:23:11.539Z", 490 | "publicationDate": "2019-08-23T17:09:14.997Z", 491 | "issue": "#141", 492 | "fileName": "National.pdf", 493 | "publication": "#1389101*", 494 | "stats": [ 495 | { 496 | "likes": 19, 497 | "dislikes": 7 498 | }, 499 | { 500 | "likes": 21, 501 | "dislikes": 8 502 | }, 503 | { 504 | "likes": 28, 505 | "dislikes": 11 506 | } 507 | ], 508 | "author": { 509 | "firstName": "Mallie", 510 | "lastName": "Streich", 511 | "address": { 512 | "street": "2792 Crona Trail", 513 | "city": "North Nelda", 514 | "state": "Indiana", 515 | "zipCode": "18947", 516 | "country": "Thailand" 517 | } 518 | } 519 | }, 520 | { 521 | "id": 115, 522 | "type": "Im just a String", 523 | "timesClicked": 818552, 524 | "title": "dolore porro deserunt", 525 | "content": "Fugiat quia necessitatibus ad quae beatae praesentium. Omnis laudantium laudantium odio error suscipit nostrum. Nesciunt voluptate hic non. Provident repudiandae alias eligendi.", 526 | "updatedAt": "2020-12-09T14:37:33.786Z", 527 | "publicationDate": "2019-05-16T10:40:41.451Z", 528 | "issue": "#1530", 529 | "fileName": "Chicken Producer.pdf", 530 | "publication": "#1938277*", 531 | "stats": [ 532 | { 533 | "likes": 35, 534 | "dislikes": 31 535 | }, 536 | { 537 | "likes": 21, 538 | "dislikes": 39 539 | }, 540 | { 541 | "likes": 6, 542 | "dislikes": 14 543 | } 544 | ], 545 | "author": { 546 | "firstName": "Wilma", 547 | "lastName": "Grady", 548 | "address": { 549 | "street": "808 Wolff Vista", 550 | "city": "Rutherfordmouth", 551 | "state": "Nevada", 552 | "zipCode": "84073", 553 | "country": "Indonesia" 554 | } 555 | } 556 | }, 557 | { 558 | "id": 116, 559 | "type": "Im just a String", 560 | "timesClicked": 464326, 561 | "title": "hic aut ut", 562 | "content": "Sunt rem quia et quas natus architecto. Officiis autem cumque. Consequuntur laudantium ut maiores libero beatae aut. Inventore dolorem doloribus unde nobis aut.", 563 | "updatedAt": "2020-12-09T10:29:30.897Z", 564 | "publicationDate": "2019-11-13T22:33:42.616Z", 565 | "issue": "#1960", 566 | "fileName": "Lats.pdf", 567 | "publication": "#1531434*", 568 | "stats": [ 569 | { 570 | "likes": 33, 571 | "dislikes": 35 572 | }, 573 | { 574 | "likes": 27, 575 | "dislikes": 19 576 | }, 577 | { 578 | "likes": 29, 579 | "dislikes": 3 580 | } 581 | ], 582 | "author": { 583 | "firstName": "Dylan", 584 | "lastName": "Mueller", 585 | "address": { 586 | "street": "455 Toy Glens", 587 | "city": "Lake Reed", 588 | "state": "Arizona", 589 | "zipCode": "98866-0213", 590 | "country": "Burundi" 591 | } 592 | } 593 | }, 594 | { 595 | "id": 117, 596 | "type": "Im just a String", 597 | "timesClicked": 1269334, 598 | "title": "recusandae nesciunt cupiditate", 599 | "content": "Est dolor praesentium. Et ea aliquid. Perferendis adipisci recusandae rerum iusto dignissimos saepe quia. Quam repellat rerum recusandae quia veniam sunt.", 600 | "updatedAt": "2020-12-09T18:44:11.546Z", 601 | "publicationDate": "2019-01-06T01:30:22.433Z", 602 | "issue": "#1774", 603 | "fileName": "Small Tools.pdf", 604 | "publication": "#559247*", 605 | "stats": [ 606 | { 607 | "likes": 30, 608 | "dislikes": 29 609 | }, 610 | { 611 | "likes": 40, 612 | "dislikes": 13 613 | }, 614 | { 615 | "likes": 26, 616 | "dislikes": 4 617 | } 618 | ], 619 | "author": { 620 | "firstName": "Barney", 621 | "lastName": "Wilderman", 622 | "address": { 623 | "street": "818 Xavier Track", 624 | "city": "Bernardberg", 625 | "state": "Texas", 626 | "zipCode": "98844-0078", 627 | "country": "El Salvador" 628 | } 629 | } 630 | }, 631 | { 632 | "id": 118, 633 | "type": "Im just a String", 634 | "timesClicked": 1896079, 635 | "title": "cupiditate voluptas et", 636 | "content": "Esse voluptas tenetur. Aut assumenda voluptatum vero et voluptatem ad porro vero. Accusantium itaque pariatur. Temporibus aspernatur magni repellat.", 637 | "updatedAt": "2020-12-09T12:57:22.811Z", 638 | "publicationDate": "2019-03-16T01:15:41.899Z", 639 | "issue": "#1308", 640 | "fileName": "system lavender Berkshire.pdf", 641 | "publication": "#2124479*", 642 | "stats": [ 643 | { 644 | "likes": 13, 645 | "dislikes": 34 646 | }, 647 | { 648 | "likes": 30, 649 | "dislikes": 21 650 | }, 651 | { 652 | "likes": 0, 653 | "dislikes": 22 654 | } 655 | ], 656 | "author": { 657 | "firstName": "Layla", 658 | "lastName": "Upton", 659 | "address": { 660 | "street": "9521 Reinger Locks", 661 | "city": "Kemmershire", 662 | "state": "Colorado", 663 | "zipCode": "29651-4952", 664 | "country": "El Salvador" 665 | } 666 | } 667 | }, 668 | { 669 | "id": 119, 670 | "type": "Im just a String", 671 | "timesClicked": 2445134, 672 | "title": "id accusantium aut", 673 | "content": "Explicabo in aspernatur. Et maiores fugiat quod voluptatem distinctio quas. Ut accusamus saepe vero ut aperiam asperiores ipsam debitis et. Sunt dignissimos omnis eum repudiandae totam repellendus rerum.", 674 | "updatedAt": "2020-12-09T04:31:25.281Z", 675 | "publicationDate": "2019-11-02T19:31:03.472Z", 676 | "issue": "#1869", 677 | "fileName": "software.pdf", 678 | "publication": "#44745*", 679 | "stats": [ 680 | { 681 | "likes": 40, 682 | "dislikes": 19 683 | }, 684 | { 685 | "likes": 37, 686 | "dislikes": 24 687 | }, 688 | { 689 | "likes": 0, 690 | "dislikes": 18 691 | } 692 | ], 693 | "author": { 694 | "firstName": "Allison", 695 | "lastName": "Muller", 696 | "address": { 697 | "street": "71560 Nia Underpass", 698 | "city": "New Fatimaborough", 699 | "state": "Pennsylvania", 700 | "zipCode": "65858-9485", 701 | "country": "Portugal" 702 | } 703 | } 704 | }, 705 | { 706 | "id": 120, 707 | "type": "Im just a String", 708 | "timesClicked": 2415230, 709 | "title": "error temporibus quia", 710 | "content": "Et nobis quisquam nesciunt optio. Deleniti iste dolores adipisci quia sunt reiciendis est perferendis dolorem. Odio qui debitis id odit est. Sint exercitationem neque repudiandae at cumque.", 711 | "updatedAt": "2020-12-10T03:03:44.826Z", 712 | "publicationDate": "2019-03-16T17:32:18.185Z", 713 | "issue": "#1106", 714 | "fileName": "FTP cross-platform Nicaragua.pdf", 715 | "publication": "#995426*", 716 | "stats": [ 717 | { 718 | "likes": 31, 719 | "dislikes": 11 720 | }, 721 | { 722 | "likes": 27, 723 | "dislikes": 14 724 | }, 725 | { 726 | "likes": 14, 727 | "dislikes": 18 728 | } 729 | ], 730 | "author": { 731 | "firstName": "Osbaldo", 732 | "lastName": "Schiller", 733 | "address": { 734 | "street": "063 Huels Circle", 735 | "city": "North Dahliashire", 736 | "state": "New York", 737 | "zipCode": "96218", 738 | "country": "Swaziland" 739 | } 740 | } 741 | }, 742 | { 743 | "id": 121, 744 | "type": "Im just a String", 745 | "timesClicked": 1180801, 746 | "title": "sed ut tempore", 747 | "content": "Voluptatem repellat corrupti ut dignissimos dolor qui deleniti esse id. Magni modi voluptas porro provident iusto architecto. Amet eaque sed quia possimus illum.", 748 | "updatedAt": "2020-12-09T21:13:08.954Z", 749 | "publicationDate": "2019-01-17T19:43:11.423Z", 750 | "issue": "#2374", 751 | "fileName": "Lempira Soft Salad.pdf", 752 | "publication": "#2378126*", 753 | "stats": [ 754 | { 755 | "likes": 31, 756 | "dislikes": 27 757 | }, 758 | { 759 | "likes": 25, 760 | "dislikes": 17 761 | }, 762 | { 763 | "likes": 37, 764 | "dislikes": 15 765 | } 766 | ], 767 | "author": { 768 | "firstName": "Reynold", 769 | "lastName": "O'Hara", 770 | "address": { 771 | "street": "99066 Padberg Stravenue", 772 | "city": "Mariamland", 773 | "state": "New York", 774 | "zipCode": "50798-3901", 775 | "country": "Djibouti" 776 | } 777 | } 778 | }, 779 | { 780 | "id": 122, 781 | "type": "Im just a String", 782 | "timesClicked": 2219334, 783 | "title": "fugiat aliquid facere", 784 | "content": "Ad veritatis sunt cum quisquam autem aliquam earum dolor. Velit nostrum voluptas eos ut ut dolorem ad eum libero. Et quo quod dolorum nostrum velit accusantium saepe voluptatem. Molestiae et fuga quam et quia consequuntur esse.", 785 | "updatedAt": "2020-12-09T13:20:43.960Z", 786 | "publicationDate": "2019-06-15T15:33:30.451Z", 787 | "issue": "#866", 788 | "fileName": "Turkey microchip systematic.pdf", 789 | "publication": "#1420940*", 790 | "stats": [ 791 | { 792 | "likes": 11, 793 | "dislikes": 20 794 | }, 795 | { 796 | "likes": 29, 797 | "dislikes": 35 798 | }, 799 | { 800 | "likes": 16, 801 | "dislikes": 17 802 | } 803 | ], 804 | "author": { 805 | "firstName": "Olaf", 806 | "lastName": "Vandervort", 807 | "address": { 808 | "street": "5593 Audrey Roads", 809 | "city": "East Seth", 810 | "state": "Massachusetts", 811 | "zipCode": "04328", 812 | "country": "South Africa" 813 | } 814 | } 815 | }, 816 | { 817 | "id": 123, 818 | "type": "Im just a String", 819 | "timesClicked": 937723, 820 | "title": "ea ratione in", 821 | "content": "Id ullam mollitia architecto. Excepturi rerum non quaerat. Modi rerum distinctio et labore. Rem odio consectetur velit et adipisci consequatur suscipit. Dolores et labore deserunt quia.", 822 | "updatedAt": "2020-12-09T23:39:06.292Z", 823 | "publicationDate": "2019-03-22T19:20:00.137Z", 824 | "issue": "#1557", 825 | "fileName": "Bedfordshire.pdf", 826 | "publication": "#2188809*", 827 | "stats": [ 828 | { 829 | "likes": 16, 830 | "dislikes": 8 831 | }, 832 | { 833 | "likes": 16, 834 | "dislikes": 22 835 | }, 836 | { 837 | "likes": 38, 838 | "dislikes": 15 839 | } 840 | ], 841 | "author": { 842 | "firstName": "Kieran", 843 | "lastName": "Weber", 844 | "address": { 845 | "street": "2774 Monahan Flats", 846 | "city": "North Myrtisbury", 847 | "state": "Arizona", 848 | "zipCode": "55806", 849 | "country": "Andorra" 850 | } 851 | } 852 | }, 853 | { 854 | "id": 124, 855 | "type": "Im just a String", 856 | "timesClicked": 1559038, 857 | "title": "est aut minima", 858 | "content": "Qui harum eum dolorum mollitia odio repudiandae repellat quia. Praesentium veniam magni aut rerum ullam tempore unde. Reprehenderit iure animi facere amet et exercitationem ut consequuntur. Est est atque aut quibusdam accusamus quidem nulla consectetur.", 859 | "updatedAt": "2020-12-09T06:11:00.903Z", 860 | "publicationDate": "2019-09-24T10:53:10.633Z", 861 | "issue": "#678", 862 | "fileName": "utilize.pdf", 863 | "publication": "#17379*", 864 | "stats": [ 865 | { 866 | "likes": 8, 867 | "dislikes": 21 868 | }, 869 | { 870 | "likes": 29, 871 | "dislikes": 36 872 | }, 873 | { 874 | "likes": 25, 875 | "dislikes": 3 876 | } 877 | ], 878 | "author": { 879 | "firstName": "Aditya", 880 | "lastName": "Metz", 881 | "address": { 882 | "street": "690 Krajcik Walk", 883 | "city": "Mabelleshire", 884 | "state": "Minnesota", 885 | "zipCode": "12669-0070", 886 | "country": "Pakistan" 887 | } 888 | } 889 | }, 890 | { 891 | "id": 125, 892 | "type": "Im just a String", 893 | "timesClicked": 1025890, 894 | "title": "quas saepe corporis", 895 | "content": "Corrupti doloremque aut vel et vel vel. Iste id quaerat quam. Saepe dolorem repellendus. Labore delectus architecto et. Iste est doloremque at facere. Qui consequatur necessitatibus non perferendis nesciunt minus.", 896 | "updatedAt": "2020-12-10T01:22:57.188Z", 897 | "publicationDate": "2019-01-16T00:56:07.937Z", 898 | "issue": "#1402", 899 | "fileName": "discrete Colorado.pdf", 900 | "publication": "#110054*", 901 | "stats": [ 902 | { 903 | "likes": 30, 904 | "dislikes": 32 905 | }, 906 | { 907 | "likes": 13, 908 | "dislikes": 13 909 | }, 910 | { 911 | "likes": 4, 912 | "dislikes": 31 913 | } 914 | ], 915 | "author": { 916 | "firstName": "Antwon", 917 | "lastName": "Lubowitz", 918 | "address": { 919 | "street": "8790 Dixie Gardens", 920 | "city": "Verdafort", 921 | "state": "Illinois", 922 | "zipCode": "60609", 923 | "country": "Saint Barthelemy" 924 | } 925 | } 926 | }, 927 | { 928 | "id": 126, 929 | "type": "Im just a String", 930 | "timesClicked": 177831, 931 | "title": "rerum quo qui", 932 | "content": "Modi fugit est enim quia et quia voluptatem quam minus. Quo sunt harum adipisci laboriosam iure aliquid. Aut doloremque qui amet fugit. Placeat consequatur temporibus iste omnis harum quas provident. Ut quia error iste voluptatem ea nam ipsam officia.", 933 | "updatedAt": "2020-12-09T06:19:43.994Z", 934 | "publicationDate": "2019-02-11T03:20:27.376Z", 935 | "issue": "#1858", 936 | "fileName": "contingency open-source.pdf", 937 | "publication": "#71674*", 938 | "stats": [ 939 | { 940 | "likes": 30, 941 | "dislikes": 39 942 | }, 943 | { 944 | "likes": 1, 945 | "dislikes": 34 946 | }, 947 | { 948 | "likes": 24, 949 | "dislikes": 28 950 | } 951 | ], 952 | "author": { 953 | "firstName": "Narciso", 954 | "lastName": "Kling", 955 | "address": { 956 | "street": "18513 Vandervort Via", 957 | "city": "Bernitaside", 958 | "state": "Maine", 959 | "zipCode": "23352", 960 | "country": "Turks and Caicos Islands" 961 | } 962 | } 963 | }, 964 | { 965 | "id": 127, 966 | "type": "Im just a String", 967 | "timesClicked": 1961998, 968 | "title": "facere sapiente cum", 969 | "content": "Aut in omnis nostrum laudantium sit. Expedita ex provident. Mollitia repellendus expedita quae porro ea alias autem. Vero magni animi repellat laborum pariatur quasi eaque qui. Exercitationem quasi optio natus hic reprehenderit voluptas quo molestias molestiae.", 970 | "updatedAt": "2020-12-10T00:06:33.702Z", 971 | "publicationDate": "2019-08-15T05:27:26.436Z", 972 | "issue": "#208", 973 | "fileName": "Data.pdf", 974 | "publication": "#2227908*", 975 | "stats": [ 976 | { 977 | "likes": 17, 978 | "dislikes": 30 979 | }, 980 | { 981 | "likes": 12, 982 | "dislikes": 9 983 | }, 984 | { 985 | "likes": 16, 986 | "dislikes": 31 987 | } 988 | ], 989 | "author": { 990 | "firstName": "Brianne", 991 | "lastName": "Legros", 992 | "address": { 993 | "street": "8741 Percival Station", 994 | "city": "Douglasport", 995 | "state": "Indiana", 996 | "zipCode": "88130-6772", 997 | "country": "Lesotho" 998 | } 999 | } 1000 | }, 1001 | { 1002 | "id": 128, 1003 | "type": "Im just a String", 1004 | "timesClicked": 57787, 1005 | "title": "ut ut qui", 1006 | "content": "Voluptatibus quia nam sit tempore sit rerum. Minima fugit commodi et quod commodi praesentium itaque. Ut modi modi debitis quod suscipit atque eius sed. Facere ducimus eos sunt porro maiores.", 1007 | "updatedAt": "2020-12-09T18:01:37.352Z", 1008 | "publicationDate": "2019-04-04T13:49:37.551Z", 1009 | "issue": "#552", 1010 | "fileName": "Mobility.pdf", 1011 | "publication": "#976149*", 1012 | "stats": [ 1013 | { 1014 | "likes": 33, 1015 | "dislikes": 13 1016 | }, 1017 | { 1018 | "likes": 6, 1019 | "dislikes": 12 1020 | }, 1021 | { 1022 | "likes": 6, 1023 | "dislikes": 38 1024 | } 1025 | ], 1026 | "author": { 1027 | "firstName": "Dalton", 1028 | "lastName": "Labadie", 1029 | "address": { 1030 | "street": "646 Roel Streets", 1031 | "city": "East Sierra", 1032 | "state": "Georgia", 1033 | "zipCode": "24829-1245", 1034 | "country": "Macao" 1035 | } 1036 | } 1037 | }, 1038 | { 1039 | "id": 129, 1040 | "type": "Im just a String", 1041 | "timesClicked": 879955, 1042 | "title": "corrupti quos sed", 1043 | "content": "Excepturi architecto nam. Veniam voluptate vel a accusantium et et sit rerum porro. Omnis numquam dolores autem saepe sit repellat deleniti magnam ducimus.", 1044 | "updatedAt": "2020-12-09T10:31:19.996Z", 1045 | "publicationDate": "2019-09-27T16:58:47.469Z", 1046 | "issue": "#929", 1047 | "fileName": "Berkshire Associate withdrawal.pdf", 1048 | "publication": "#719112*", 1049 | "stats": [ 1050 | { 1051 | "likes": 11, 1052 | "dislikes": 14 1053 | }, 1054 | { 1055 | "likes": 18, 1056 | "dislikes": 2 1057 | }, 1058 | { 1059 | "likes": 8, 1060 | "dislikes": 5 1061 | } 1062 | ], 1063 | "author": { 1064 | "firstName": "Isabella", 1065 | "lastName": "Stehr", 1066 | "address": { 1067 | "street": "3108 Blanda Hollow", 1068 | "city": "Lake Stephen", 1069 | "state": "Michigan", 1070 | "zipCode": "26286-8345", 1071 | "country": "Jamaica" 1072 | } 1073 | } 1074 | }, 1075 | { 1076 | "id": 130, 1077 | "type": "Im just a String", 1078 | "timesClicked": 1615661, 1079 | "title": "rem non cum", 1080 | "content": "Et officiis a expedita non atque. Quia consectetur est sapiente est sapiente est. Ea et velit.", 1081 | "updatedAt": "2020-12-09T23:58:35.243Z", 1082 | "publicationDate": "2019-10-29T08:39:33.676Z", 1083 | "issue": "#2135", 1084 | "fileName": "invoice.pdf", 1085 | "publication": "#370709*", 1086 | "stats": [ 1087 | { 1088 | "likes": 0, 1089 | "dislikes": 4 1090 | }, 1091 | { 1092 | "likes": 8, 1093 | "dislikes": 5 1094 | }, 1095 | { 1096 | "likes": 20, 1097 | "dislikes": 14 1098 | } 1099 | ], 1100 | "author": { 1101 | "firstName": "Carole", 1102 | "lastName": "Labadie", 1103 | "address": { 1104 | "street": "826 Jenifer Islands", 1105 | "city": "West Adalinefort", 1106 | "state": "Michigan", 1107 | "zipCode": "06237", 1108 | "country": "Virgin Islands, British" 1109 | } 1110 | } 1111 | }, 1112 | { 1113 | "id": 131, 1114 | "type": "Im just a String", 1115 | "timesClicked": 2223912, 1116 | "title": "est distinctio delectus", 1117 | "content": "Et cumque architecto voluptatem. Facere in mollitia rerum est est fuga. Et odio et molestiae beatae doloremque et officiis. Odit qui iure iusto qui.", 1118 | "updatedAt": "2020-12-09T20:54:27.058Z", 1119 | "publicationDate": "2019-03-23T16:47:31.053Z", 1120 | "issue": "#2496", 1121 | "fileName": "Soft.pdf", 1122 | "publication": "#311762*", 1123 | "stats": [ 1124 | { 1125 | "likes": 8, 1126 | "dislikes": 25 1127 | }, 1128 | { 1129 | "likes": 11, 1130 | "dislikes": 1 1131 | }, 1132 | { 1133 | "likes": 28, 1134 | "dislikes": 16 1135 | } 1136 | ], 1137 | "author": { 1138 | "firstName": "Seamus", 1139 | "lastName": "Batz", 1140 | "address": { 1141 | "street": "506 Schaefer Station", 1142 | "city": "Clementinamouth", 1143 | "state": "Illinois", 1144 | "zipCode": "39855", 1145 | "country": "Vanuatu" 1146 | } 1147 | } 1148 | }, 1149 | { 1150 | "id": 132, 1151 | "type": "Im just a String", 1152 | "timesClicked": 2296637, 1153 | "title": "aperiam doloremque velit", 1154 | "content": "Sed dignissimos maxime ut non. Omnis libero qui est ipsa atque autem deserunt. Aliquam eos in voluptatibus cum. Possimus non fugiat. Saepe nam aut alias omnis tempore magnam voluptatem rem tempore. Enim magni cumque maxime sequi quibusdam fugit quas.", 1155 | "updatedAt": "2020-12-09T20:01:57.357Z", 1156 | "publicationDate": "2019-05-18T08:00:22.863Z", 1157 | "issue": "#428", 1158 | "fileName": "TCP.pdf", 1159 | "publication": "#481077*", 1160 | "stats": [ 1161 | { 1162 | "likes": 14, 1163 | "dislikes": 1 1164 | }, 1165 | { 1166 | "likes": 13, 1167 | "dislikes": 4 1168 | }, 1169 | { 1170 | "likes": 29, 1171 | "dislikes": 25 1172 | } 1173 | ], 1174 | "author": { 1175 | "firstName": "Minnie", 1176 | "lastName": "Hand", 1177 | "address": { 1178 | "street": "604 Rippin Pine", 1179 | "city": "East Elzaburgh", 1180 | "state": "Nevada", 1181 | "zipCode": "15827-2747", 1182 | "country": "Zimbabwe" 1183 | } 1184 | } 1185 | }, 1186 | { 1187 | "id": 133, 1188 | "type": "Im just a String", 1189 | "timesClicked": 128561, 1190 | "title": "nihil at voluptatem", 1191 | "content": "Odit dolores eaque neque maiores. Nam doloribus qui quia nisi et. Est voluptatem error voluptatum vitae et maiores omnis impedit voluptatem.", 1192 | "updatedAt": "2020-12-09T12:29:10.750Z", 1193 | "publicationDate": "2019-10-19T12:34:34.097Z", 1194 | "issue": "#960", 1195 | "fileName": "Program.pdf", 1196 | "publication": "#2118026*", 1197 | "stats": [ 1198 | { 1199 | "likes": 20, 1200 | "dislikes": 17 1201 | }, 1202 | { 1203 | "likes": 4, 1204 | "dislikes": 6 1205 | }, 1206 | { 1207 | "likes": 12, 1208 | "dislikes": 14 1209 | } 1210 | ], 1211 | "author": { 1212 | "firstName": "Katarina", 1213 | "lastName": "Luettgen", 1214 | "address": { 1215 | "street": "686 Aglae Square", 1216 | "city": "West Hellen", 1217 | "state": "South Carolina", 1218 | "zipCode": "33691-9700", 1219 | "country": "Cayman Islands" 1220 | } 1221 | } 1222 | }, 1223 | { 1224 | "id": 134, 1225 | "type": "Im just a String", 1226 | "timesClicked": 1232111, 1227 | "title": "repudiandae soluta pariatur", 1228 | "content": "Est ut ratione pariatur et officiis quis. Quisquam et voluptas quaerat et animi. Fugit ipsam illo quia non ad commodi modi est. Aliquid quidem ad illo odio.", 1229 | "updatedAt": "2020-12-09T11:05:29.341Z", 1230 | "publicationDate": "2019-01-14T14:38:45.169Z", 1231 | "issue": "#931", 1232 | "fileName": "Plastic.pdf", 1233 | "publication": "#235099*", 1234 | "stats": [ 1235 | { 1236 | "likes": 33, 1237 | "dislikes": 30 1238 | }, 1239 | { 1240 | "likes": 29, 1241 | "dislikes": 6 1242 | }, 1243 | { 1244 | "likes": 11, 1245 | "dislikes": 40 1246 | } 1247 | ], 1248 | "author": { 1249 | "firstName": "Alessandra", 1250 | "lastName": "Ondricka", 1251 | "address": { 1252 | "street": "8765 Wisoky Turnpike", 1253 | "city": "Port Lillianaview", 1254 | "state": "Kansas", 1255 | "zipCode": "44650-4461", 1256 | "country": "Netherlands" 1257 | } 1258 | } 1259 | }, 1260 | { 1261 | "id": 135, 1262 | "type": "Im just a String", 1263 | "timesClicked": 1584442, 1264 | "title": "officia quos autem", 1265 | "content": "Quos cupiditate quia sequi a qui maiores repellat temporibus voluptatem. Molestias qui minima odio ea non voluptate. Reprehenderit nihil quia voluptas autem officia maxime corporis labore enim. Nam tempore ut occaecati.", 1266 | "updatedAt": "2020-12-09T22:00:03.378Z", 1267 | "publicationDate": "2019-10-09T10:47:18.611Z", 1268 | "issue": "#1034", 1269 | "fileName": "Officer card IB.pdf", 1270 | "publication": "#1705788*", 1271 | "stats": [ 1272 | { 1273 | "likes": 12, 1274 | "dislikes": 13 1275 | }, 1276 | { 1277 | "likes": 37, 1278 | "dislikes": 32 1279 | }, 1280 | { 1281 | "likes": 11, 1282 | "dislikes": 5 1283 | } 1284 | ], 1285 | "author": { 1286 | "firstName": "Benjamin", 1287 | "lastName": "Russel", 1288 | "address": { 1289 | "street": "962 Abernathy Stream", 1290 | "city": "Lake Milo", 1291 | "state": "Alabama", 1292 | "zipCode": "93771", 1293 | "country": "Guadeloupe" 1294 | } 1295 | } 1296 | }, 1297 | { 1298 | "id": 136, 1299 | "type": "Im just a String", 1300 | "timesClicked": 2065488, 1301 | "title": "voluptates quasi et", 1302 | "content": "At dolores tempora in quae numquam. Ad aut et delectus itaque voluptate dolores corrupti. Dignissimos itaque iusto ad aut cumque deleniti omnis.", 1303 | "updatedAt": "2020-12-09T05:52:53.325Z", 1304 | "publicationDate": "2019-07-20T11:34:24.787Z", 1305 | "issue": "#98", 1306 | "fileName": "infomediaries Concrete Micronesia.pdf", 1307 | "publication": "#2102799*", 1308 | "stats": [ 1309 | { 1310 | "likes": 17, 1311 | "dislikes": 26 1312 | }, 1313 | { 1314 | "likes": 25, 1315 | "dislikes": 39 1316 | }, 1317 | { 1318 | "likes": 9, 1319 | "dislikes": 7 1320 | } 1321 | ], 1322 | "author": { 1323 | "firstName": "Mathilde", 1324 | "lastName": "McDermott", 1325 | "address": { 1326 | "street": "244 Hand Summit", 1327 | "city": "Jamaalborough", 1328 | "state": "Delaware", 1329 | "zipCode": "95534-0243", 1330 | "country": "Macedonia" 1331 | } 1332 | } 1333 | }, 1334 | { 1335 | "id": 137, 1336 | "type": "Im just a String", 1337 | "timesClicked": 175178, 1338 | "title": "assumenda qui provident", 1339 | "content": "Corrupti quas autem minima tempore possimus. Omnis molestiae ducimus praesentium debitis dolore et nemo. Saepe ut magnam vitae non. Consectetur unde ipsum accusantium eveniet commodi aperiam qui ipsam. Quo id et nihil et laudantium.", 1340 | "updatedAt": "2020-12-09T07:59:06.881Z", 1341 | "publicationDate": "2019-10-24T06:06:46.712Z", 1342 | "issue": "#320", 1343 | "fileName": "indexing e-business.pdf", 1344 | "publication": "#1325909*", 1345 | "stats": [ 1346 | { 1347 | "likes": 31, 1348 | "dislikes": 36 1349 | }, 1350 | { 1351 | "likes": 23, 1352 | "dislikes": 34 1353 | }, 1354 | { 1355 | "likes": 0, 1356 | "dislikes": 3 1357 | } 1358 | ], 1359 | "author": { 1360 | "firstName": "Mabel", 1361 | "lastName": "Harris", 1362 | "address": { 1363 | "street": "09718 Veum Vista", 1364 | "city": "Darionton", 1365 | "state": "Nevada", 1366 | "zipCode": "87550-0996", 1367 | "country": "Congo" 1368 | } 1369 | } 1370 | }, 1371 | { 1372 | "id": 138, 1373 | "type": "Im just a String", 1374 | "timesClicked": 1213951, 1375 | "title": "quia distinctio harum", 1376 | "content": "Aut omnis quia neque ipsa voluptates tempore ut qui. Fugiat facilis aliquid. Vero necessitatibus dolorem aut dolorem tenetur. Qui eos nemo dignissimos.", 1377 | "updatedAt": "2020-12-09T18:58:49.847Z", 1378 | "publicationDate": "2019-05-18T02:22:28.441Z", 1379 | "issue": "#632", 1380 | "fileName": "Money.pdf", 1381 | "publication": "#525466*", 1382 | "stats": [ 1383 | { 1384 | "likes": 4, 1385 | "dislikes": 17 1386 | }, 1387 | { 1388 | "likes": 37, 1389 | "dislikes": 6 1390 | }, 1391 | { 1392 | "likes": 35, 1393 | "dislikes": 20 1394 | } 1395 | ], 1396 | "author": { 1397 | "firstName": "Owen", 1398 | "lastName": "Reilly", 1399 | "address": { 1400 | "street": "81995 Timmothy Mall", 1401 | "city": "Bergstromchester", 1402 | "state": "Minnesota", 1403 | "zipCode": "99203-1012", 1404 | "country": "United Arab Emirates" 1405 | } 1406 | } 1407 | }, 1408 | { 1409 | "id": 139, 1410 | "type": "Im just a String", 1411 | "timesClicked": 1263288, 1412 | "title": "libero voluptatem aut", 1413 | "content": "Mollitia et et. Expedita repellendus et magnam magnam dolorum facere. Quia voluptates error pariatur quos. Dolor quis ipsam. Cupiditate quis nihil id ut est.", 1414 | "updatedAt": "2020-12-09T09:27:22.939Z", 1415 | "publicationDate": "2019-04-05T03:25:07.942Z", 1416 | "issue": "#1413", 1417 | "fileName": "Response parse.pdf", 1418 | "publication": "#2146933*", 1419 | "stats": [ 1420 | { 1421 | "likes": 8, 1422 | "dislikes": 19 1423 | }, 1424 | { 1425 | "likes": 24, 1426 | "dislikes": 12 1427 | }, 1428 | { 1429 | "likes": 0, 1430 | "dislikes": 3 1431 | } 1432 | ], 1433 | "author": { 1434 | "firstName": "Morgan", 1435 | "lastName": "Stamm", 1436 | "address": { 1437 | "street": "28715 Yasmeen Stravenue", 1438 | "city": "Lednermouth", 1439 | "state": "Connecticut", 1440 | "zipCode": "86273-3309", 1441 | "country": "Zimbabwe" 1442 | } 1443 | } 1444 | }, 1445 | { 1446 | "id": 140, 1447 | "type": "Im just a String", 1448 | "timesClicked": 242709, 1449 | "title": "soluta et reiciendis", 1450 | "content": "Deleniti dicta aut iusto alias animi eveniet in qui. Ea sed asperiores voluptate omnis porro corporis dolor incidunt ab. Quas asperiores numquam omnis aut deleniti fugit numquam modi. Possimus sapiente provident error aut facere qui.", 1451 | "updatedAt": "2020-12-09T04:06:23.213Z", 1452 | "publicationDate": "2019-07-27T06:13:07.699Z", 1453 | "issue": "#1652", 1454 | "fileName": "metrics navigate.pdf", 1455 | "publication": "#1817699*", 1456 | "stats": [ 1457 | { 1458 | "likes": 29, 1459 | "dislikes": 9 1460 | }, 1461 | { 1462 | "likes": 7, 1463 | "dislikes": 39 1464 | }, 1465 | { 1466 | "likes": 28, 1467 | "dislikes": 38 1468 | } 1469 | ], 1470 | "author": { 1471 | "firstName": "Micah", 1472 | "lastName": "Zieme", 1473 | "address": { 1474 | "street": "447 Bradtke Heights", 1475 | "city": "New Kylerport", 1476 | "state": "Hawaii", 1477 | "zipCode": "87160-4481", 1478 | "country": "Samoa" 1479 | } 1480 | } 1481 | }, 1482 | { 1483 | "id": 141, 1484 | "type": "Im just a String", 1485 | "timesClicked": 1708116, 1486 | "title": "exercitationem reiciendis velit", 1487 | "content": "Dolores eos ullam sed nesciunt perspiciatis. Maxime dignissimos ipsum quisquam consequatur eos error repudiandae earum non. Consectetur ratione rerum quibusdam dolore enim rem quo ut. Adipisci voluptatem accusantium omnis odit.", 1488 | "updatedAt": "2020-12-09T12:29:25.392Z", 1489 | "publicationDate": "2019-07-31T14:30:25.612Z", 1490 | "issue": "#445", 1491 | "fileName": "circuit.pdf", 1492 | "publication": "#2470656*", 1493 | "stats": [ 1494 | { 1495 | "likes": 16, 1496 | "dislikes": 2 1497 | }, 1498 | { 1499 | "likes": 14, 1500 | "dislikes": 33 1501 | }, 1502 | { 1503 | "likes": 19, 1504 | "dislikes": 3 1505 | } 1506 | ], 1507 | "author": { 1508 | "firstName": "Lilly", 1509 | "lastName": "Toy", 1510 | "address": { 1511 | "street": "819 Shayna Turnpike", 1512 | "city": "South Candace", 1513 | "state": "New Hampshire", 1514 | "zipCode": "54671", 1515 | "country": "Morocco" 1516 | } 1517 | } 1518 | }, 1519 | { 1520 | "id": 142, 1521 | "type": "Im just a String", 1522 | "timesClicked": 820506, 1523 | "title": "illo est rerum", 1524 | "content": "Ut quae eligendi voluptates. Eum voluptatum placeat pariatur mollitia doloribus. Sit quos eaque perferendis qui sint praesentium commodi. Modi nulla eum quaerat occaecati accusantium ut voluptatem laudantium. Aliquam est sequi inventore nesciunt quis sit maiores.", 1525 | "updatedAt": "2020-12-10T03:26:17.589Z", 1526 | "publicationDate": "2019-03-27T16:37:28.908Z", 1527 | "issue": "#2291", 1528 | "fileName": "withdrawal supply-chains Steel.pdf", 1529 | "publication": "#782167*", 1530 | "stats": [ 1531 | { 1532 | "likes": 36, 1533 | "dislikes": 18 1534 | }, 1535 | { 1536 | "likes": 34, 1537 | "dislikes": 6 1538 | }, 1539 | { 1540 | "likes": 39, 1541 | "dislikes": 6 1542 | } 1543 | ], 1544 | "author": { 1545 | "firstName": "Jeramy", 1546 | "lastName": "Gutkowski", 1547 | "address": { 1548 | "street": "962 Isaac Radial", 1549 | "city": "Lake Magdalenachester", 1550 | "state": "Louisiana", 1551 | "zipCode": "97302", 1552 | "country": "Bahamas" 1553 | } 1554 | } 1555 | }, 1556 | { 1557 | "id": 143, 1558 | "type": "Im just a String", 1559 | "timesClicked": 2200102, 1560 | "title": "ad sunt et", 1561 | "content": "Beatae consectetur et. Qui nulla adipisci deleniti voluptates. Ea omnis quia consequuntur alias ipsa reprehenderit quis optio.", 1562 | "updatedAt": "2020-12-09T04:39:32.043Z", 1563 | "publicationDate": "2019-06-10T08:50:22.752Z", 1564 | "issue": "#1361", 1565 | "fileName": "microchip Islands.pdf", 1566 | "publication": "#1525423*", 1567 | "stats": [ 1568 | { 1569 | "likes": 19, 1570 | "dislikes": 12 1571 | }, 1572 | { 1573 | "likes": 20, 1574 | "dislikes": 30 1575 | }, 1576 | { 1577 | "likes": 35, 1578 | "dislikes": 4 1579 | } 1580 | ], 1581 | "author": { 1582 | "firstName": "Jody", 1583 | "lastName": "Fisher", 1584 | "address": { 1585 | "street": "787 Luettgen Pines", 1586 | "city": "Port Marianshire", 1587 | "state": "California", 1588 | "zipCode": "50611-3574", 1589 | "country": "Croatia" 1590 | } 1591 | } 1592 | }, 1593 | { 1594 | "id": 144, 1595 | "type": "Im just a String", 1596 | "timesClicked": 2209603, 1597 | "title": "voluptatem qui quod", 1598 | "content": "Magni eos rerum nihil et. Adipisci qui occaecati ratione dolorem qui et mollitia et. Dolorem ut et.", 1599 | "updatedAt": "2020-12-09T22:46:34.226Z", 1600 | "publicationDate": "2019-02-14T08:52:10.641Z", 1601 | "issue": "#2310", 1602 | "fileName": "zero.pdf", 1603 | "publication": "#857271*", 1604 | "stats": [ 1605 | { 1606 | "likes": 37, 1607 | "dislikes": 25 1608 | }, 1609 | { 1610 | "likes": 12, 1611 | "dislikes": 17 1612 | }, 1613 | { 1614 | "likes": 15, 1615 | "dislikes": 6 1616 | } 1617 | ], 1618 | "author": { 1619 | "firstName": "Enoch", 1620 | "lastName": "Gusikowski", 1621 | "address": { 1622 | "street": "432 Ortiz Key", 1623 | "city": "East Abigailburgh", 1624 | "state": "North Dakota", 1625 | "zipCode": "37121-2979", 1626 | "country": "Tuvalu" 1627 | } 1628 | } 1629 | }, 1630 | { 1631 | "id": 145, 1632 | "type": "Im just a String", 1633 | "timesClicked": 456626, 1634 | "title": "ut saepe neque", 1635 | "content": "Quisquam quae amet omnis. Et consectetur ut assumenda. Ipsam ipsam nobis aut asperiores enim. Provident tenetur ab iste ducimus repellendus. Et aliquam qui. Fuga est asperiores autem quo pariatur veniam.", 1636 | "updatedAt": "2020-12-09T06:29:04.431Z", 1637 | "publicationDate": "2019-05-28T15:22:09.137Z", 1638 | "issue": "#363", 1639 | "fileName": "wireless Rupee hack.pdf", 1640 | "publication": "#910871*", 1641 | "stats": [ 1642 | { 1643 | "likes": 3, 1644 | "dislikes": 22 1645 | }, 1646 | { 1647 | "likes": 23, 1648 | "dislikes": 24 1649 | }, 1650 | { 1651 | "likes": 8, 1652 | "dislikes": 27 1653 | } 1654 | ], 1655 | "author": { 1656 | "firstName": "Zion", 1657 | "lastName": "Gutmann", 1658 | "address": { 1659 | "street": "1638 Kreiger Branch", 1660 | "city": "Adityaview", 1661 | "state": "West Virginia", 1662 | "zipCode": "39579", 1663 | "country": "Maldives" 1664 | } 1665 | } 1666 | }, 1667 | { 1668 | "id": 146, 1669 | "type": "Im just a String", 1670 | "timesClicked": 2181364, 1671 | "title": "non pariatur neque", 1672 | "content": "Voluptatem fugiat quo possimus qui officiis aut. Est est provident consequatur iure est cum magnam non. Sint odit cumque ut eius corporis.", 1673 | "updatedAt": "2020-12-10T02:00:07.587Z", 1674 | "publicationDate": "2019-05-11T15:04:28.130Z", 1675 | "issue": "#1898", 1676 | "fileName": "hacking.pdf", 1677 | "publication": "#1838462*", 1678 | "stats": [ 1679 | { 1680 | "likes": 23, 1681 | "dislikes": 2 1682 | }, 1683 | { 1684 | "likes": 33, 1685 | "dislikes": 0 1686 | }, 1687 | { 1688 | "likes": 11, 1689 | "dislikes": 17 1690 | } 1691 | ], 1692 | "author": { 1693 | "firstName": "Clark", 1694 | "lastName": "Dickinson", 1695 | "address": { 1696 | "street": "6247 Berneice Trail", 1697 | "city": "North Ronborough", 1698 | "state": "Georgia", 1699 | "zipCode": "60530-1275", 1700 | "country": "Cyprus" 1701 | } 1702 | } 1703 | }, 1704 | { 1705 | "id": 147, 1706 | "type": "Im just a String", 1707 | "timesClicked": 2014765, 1708 | "title": "dolores voluptas fugit", 1709 | "content": "Inventore laboriosam aut incidunt. Voluptatem sed eligendi deserunt iste eius quia nisi qui corporis. Cum sed porro molestiae eos. Excepturi voluptas doloremque similique optio quia unde. Vel mollitia non.", 1710 | "updatedAt": "2020-12-09T06:21:32.750Z", 1711 | "publicationDate": "2019-12-10T18:24:01.880Z", 1712 | "issue": "#1648", 1713 | "fileName": "strategize compressing encoding.pdf", 1714 | "publication": "#2000726*", 1715 | "stats": [ 1716 | { 1717 | "likes": 5, 1718 | "dislikes": 28 1719 | }, 1720 | { 1721 | "likes": 19, 1722 | "dislikes": 18 1723 | }, 1724 | { 1725 | "likes": 10, 1726 | "dislikes": 21 1727 | } 1728 | ], 1729 | "author": { 1730 | "firstName": "Ernesto", 1731 | "lastName": "Gusikowski", 1732 | "address": { 1733 | "street": "04453 Carter Manor", 1734 | "city": "Port Claudineshire", 1735 | "state": "Washington", 1736 | "zipCode": "98568", 1737 | "country": "Saint Vincent and the Grenadines" 1738 | } 1739 | } 1740 | }, 1741 | { 1742 | "id": 148, 1743 | "type": "Im just a String", 1744 | "timesClicked": 1303846, 1745 | "title": "velit quod voluptatem", 1746 | "content": "Libero magnam nihil id exercitationem sit possimus sit. Quis suscipit saepe numquam autem nemo est. Deserunt sed rem deleniti qui et. Deserunt ut adipisci consequuntur minus mollitia maxime incidunt. Autem et aut dolorem in consequatur possimus omnis.", 1747 | "updatedAt": "2020-12-09T05:07:08.088Z", 1748 | "publicationDate": "2019-03-26T07:48:41.540Z", 1749 | "issue": "#849", 1750 | "fileName": "Dollar context-sensitive.pdf", 1751 | "publication": "#386608*", 1752 | "stats": [ 1753 | { 1754 | "likes": 23, 1755 | "dislikes": 26 1756 | }, 1757 | { 1758 | "likes": 37, 1759 | "dislikes": 31 1760 | }, 1761 | { 1762 | "likes": 34, 1763 | "dislikes": 3 1764 | } 1765 | ], 1766 | "author": { 1767 | "firstName": "Jackson", 1768 | "lastName": "Wilkinson", 1769 | "address": { 1770 | "street": "45721 Jeromy Pike", 1771 | "city": "Borerside", 1772 | "state": "Kansas", 1773 | "zipCode": "31921", 1774 | "country": "Kiribati" 1775 | } 1776 | } 1777 | }, 1778 | { 1779 | "id": 149, 1780 | "type": "Im just a String", 1781 | "timesClicked": 1875475, 1782 | "title": "et dolore qui", 1783 | "content": "Quo qui et consectetur. Dolorum omnis reiciendis et exercitationem iusto aut dolore. Aut eaque qui quo rerum quibusdam voluptas repudiandae rem eos.", 1784 | "updatedAt": "2020-12-09T09:16:28.646Z", 1785 | "publicationDate": "2019-10-23T01:37:24.663Z", 1786 | "issue": "#1864", 1787 | "fileName": "navigating Jersey.pdf", 1788 | "publication": "#421711*", 1789 | "stats": [ 1790 | { 1791 | "likes": 25, 1792 | "dislikes": 15 1793 | }, 1794 | { 1795 | "likes": 0, 1796 | "dislikes": 36 1797 | }, 1798 | { 1799 | "likes": 0, 1800 | "dislikes": 22 1801 | } 1802 | ], 1803 | "author": { 1804 | "firstName": "May", 1805 | "lastName": "Price", 1806 | "address": { 1807 | "street": "4098 Bosco Estates", 1808 | "city": "Weissnatberg", 1809 | "state": "Idaho", 1810 | "zipCode": "10157-9272", 1811 | "country": "Swaziland" 1812 | } 1813 | } 1814 | }, 1815 | { 1816 | "id": 150, 1817 | "type": "Im just a String", 1818 | "timesClicked": 1725256, 1819 | "title": "asperiores excepturi dolorem", 1820 | "content": "Eum et doloremque est non. Quisquam tempora consequatur et ipsam quidem tempora recusandae. Numquam est esse ut officia aspernatur ut voluptatibus et fuga. Voluptate natus molestiae dolores accusantium. Nostrum quam sed.", 1821 | "updatedAt": "2020-12-09T15:51:58.676Z", 1822 | "publicationDate": "2019-04-04T02:14:06.853Z", 1823 | "issue": "#1266", 1824 | "fileName": "Wooden green Russian.pdf", 1825 | "publication": "#1989203*", 1826 | "stats": [ 1827 | { 1828 | "likes": 30, 1829 | "dislikes": 9 1830 | }, 1831 | { 1832 | "likes": 7, 1833 | "dislikes": 2 1834 | }, 1835 | { 1836 | "likes": 38, 1837 | "dislikes": 15 1838 | } 1839 | ], 1840 | "author": { 1841 | "firstName": "Eugenia", 1842 | "lastName": "Legros", 1843 | "address": { 1844 | "street": "815 Tillman Village", 1845 | "city": "Reynoldsfort", 1846 | "state": "Missouri", 1847 | "zipCode": "76206-5760", 1848 | "country": "Mongolia" 1849 | } 1850 | } 1851 | } 1852 | ] --------------------------------------------------------------------------------