Skip to content

Commit

Permalink
🎨 Chore: update got and convert to esm module.
Browse files Browse the repository at this point in the history
  • Loading branch information
bambooom committed Jun 6, 2023
1 parent cd83e04 commit ed08884
Show file tree
Hide file tree
Showing 6 changed files with 361 additions and 379 deletions.
10 changes: 5 additions & 5 deletions db-notes-img-dl.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const fs = require('fs');
const path = require('path');
const {promisify} = require('util');
const download = require('image-downloader');
const {sleep} = require('./util');
import fs from "node:fs";
import path from "node:path";
import { promisify } from 'node:util';
import download from 'image-downloader';
import { sleep } from './util';
// const pinyin = require("pinyin"); // no need to convert Chinese titles now

const writeFile = promisify(fs.writeFile);
Expand Down
Loading

0 comments on commit ed08884

Please sign in to comment.