UNPKG

devlien

Version:

Devlien is a lightweight, zero-dependency Node.js framework with clean MVC structure, built-in ORM, and intuitive routing for rapid backend development.

17 lines (15 loc) 342 B
import fs from "fs"; import path from "path"; export default class DIR { constructor(){} static async copy(source, destination) { try { fs.cp(source, destination, { recursive: true }, (err) => { if (err) throw err; }); } catch (err) { throw err; } } }