Skip to content

Writing JSON files in choosen directory given a JavaScript objects array.

Notifications You must be signed in to change notification settings

alvaroOnCode/writing-json-from-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧑‍💻 Writing JSON from endpoint 🧑‍💻 standard-readme compliant

🔖 Description

Writing JSON files in choosen directory given a JavaScript objects array.

⚙️ How To

  • Input

Set array in src/utils/endpoints.js like this:

const endpoints = [
  {
    hostname: '',
    path: ''
  },
  {
    hostname: '',
    path: ''
  },
];
  • Output

Set options in config.output object in index.js:

  • clearOnInit | boolean Use this to remove all existing files in output directory.
  • dir | string Use this to set output folder.
  • Modify Custom ignores in .gitignore in case you prefer tracking outputs in repository.

📈 Roadmap

  • Not creating json file if endpoint does not exist.

🌍 Languages

  • 🇺🇸 English

Powered by

NodeJS.

This README.md file looks pretty thanks to

GitHub Markdown
Emojipedia

About

Writing JSON files in choosen directory given a JavaScript objects array.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published