UNPKG

update-file-content

Version:

A simple utility for executing RegEx replacement on files, powered by stream.

7 lines (5 loc) 238 B
import { dirname, join } from 'path'; import { fileURLToPath } from 'url'; const __dirname = dirname(join(fileURLToPath(import.meta.url), '/..')); const root_directory = join(__dirname, "/.."); export { __dirname, root_directory }