Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Electronで作るおれおれマークダウンエディタ2

yud0uhu
December 15, 2021

 Electronで作るおれおれマークダウンエディタ2

Electronでマークダウンエディタを自作した話
cistLT by Dec 15, 2021

yud0uhu

December 15, 2021
Tweet

More Decks by yud0uhu

Other Decks in Programming

Transcript

  1. レンダラプロセスからファイル操作を実装する fs.writeFileSync(file, data[, options]) # History • file <string> |

    <Buffer> | <URL> | <integer> filename or file descriptor • data <string> | <Buffer> | <TypedArray> | <DataView> | <Object> • options <Object> | <string> ◦ encoding <string> | <null> Default: 'utf8' ◦ mode <integer> Default: 0o666 ◦ flag <string> See support of file system flags. Default: 'w'. Returns undefined . If data is a plain object, it must have an own (not inherited) toString function property. The mode option only affects the newly created file. See fs.open() for more details. For detailed information, see the documentation of the asynchronous version of this API: fs.writeFile() .