MCPcopy Index your code
hub / github.com/nodejs/nodejs.org / formatPost

Function formatPost

apps/site/scripts/release-post/index.mjs:234–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232};
233
234const formatPost = results => {
235 return new Promise((resolve, reject) => {
236 format(results.content, { ...prettierConfig, parser: 'markdown' })
237 .then(content => resolve({ ...results, content }))
238 .catch(error => reject(ERRORS.FAILED_FILE_FORMATTING(error.message)));
239 });
240};
241
242const writeToFile = results => {
243 const blogPostPath = resolve(

Callers

nothing calls this directly

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected