Migration workflow
1
Preview the migration
Run Fallow searches for
fallow migrate --dry-run to see the generated config without writing anything:.jscpd.json and the jscpd field in package.json.2
Generate the config
Once you’re happy with the preview, run the migration:
3
Review the config
Open the generated config and verify the translated thresholds, token counts, and ignore patterns.
4
Run fallow dupes
Run your first duplication analysis:
What gets migrated
Comparison
Detection mode mapping
jscpd v5 supportsstrict, mild, and weak modes. The closest fallow equivalent for exact token matching is strict.
Fallow defaults to mild mode, which normalizes syntax variations and may flag more clones than jscpd did. To match jscpd’s behavior more closely, use strict mode:
One tool for the full picture
One binary replaces separate jscpd, knip, and madge workflows:See also
Duplication analysis
Deep dive into fallow’s duplication detection engine.
fallow dupes
Full CLI reference for the dupes command.