Skip to main content

Built and signed on GitHub Actions

Allows you to specify to folders which should be merged into one

This package works with Deno
This package works with Deno
JSR Score
94%
Published
a month ago (1.0.0)

@md/merge-folders

Exports a function mergeFolders which allows you to specify to folders which should be merged into one.

The function will move each file for toMerge into target where no equivalent file exists. If both have the same file, it will compute a SHA-256 hash for each file's content to check if they're the same. If not, it will keep the file in toMerge for manual resolution.

Finally, it will clean up the toMerge directory removing any empty subdirectories including itself if no files has conflicts.

Built and signed on
GitHub Actions
View transparency log

Add Package

deno add jsr:@md/merge-folders

Import symbol

import * as mod from "@md/merge-folders";

---- OR ----

Import directly with a jsr specifier

import * as mod from "jsr:@md/merge-folders";