Skip to content

Commit

Permalink
Reduce the number of lorem ipsum paragraphs to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
theninthsky committed Nov 4, 2022
1 parent 9466e3f commit 9221a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/fetch-static.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ const path = 'public/json'
const axiosOptions = { transformResponse: res => res }

mkdir(path, { recursive: true })
process.on('beforeExit', () => console.log('Fetched all static assets.'))
process.on('beforeExit', () => console.log('Fetched all static assets'))

const fetchLoremIpsum = async () => {
const { data } = await axios.get('https://loripsum.net/api/200/long/plaintext', axiosOptions)
const { data } = await axios.get('https://loripsum.net/api/100/long/plaintext', axiosOptions)

writeFile(`${path}/lorem-ipsum.json`, JSON.stringify(data))
}
Expand Down

0 comments on commit 9221a10

Please sign in to comment.