mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-23 05:39:22 +08:00
14 lines
323 B
JavaScript
14 lines
323 B
JavaScript
import fs from 'fs';
|
|
import path from 'path';
|
|
import { fileURLToPath } from 'url';
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = path.dirname(__filename);
|
|
|
|
export default function GetCode(){
|
|
let code = ''
|
|
code += fs.readFileSync(`${__dirname}/htmlDivElement.js`) + '\r\n'
|
|
|
|
|
|
|
|
return code
|
|
} |