Getting Started
Supported Formats
Languages and formats supported by jscpd.
Overview
jscpd supports 150+ programming languages and document formats for duplication detection.
Supported Formats
jscpd supports the following formats:
- abap
- actionscript
- ada
- apacheconf
- apl
- applescript
- arduino
- arff
- asciidoc
- asm6502
- aspnet
- autohotkey
- autoit
- bash
- basic
- batch
- bison
- brainfuck
- bro
- c
- c-header
- clike
- clojure
- coffeescript
- comments
- cpp
- cpp-header
- crystal
- csharp
- csp
- css-extras
- css
- d
- dart
- diff
- django
- docker
- eiffel
- elixir
- elm
- erb
- erlang
- flow
- fortran
- fsharp
- gedcom
- gherkin
- git
- glsl
- go
- graphql
- groovy
- haml
- handlebars
- haskell
- haxe
- hpkp
- hsts
- http
- ichigojam
- icon
- inform7
- ini
- io
- j
- java
- javascript
- jolie
- json
- jsx
- julia
- keymap
- kotlin
- latex
- less
- liquid
- lisp
- livescript
- lolcode
- lua
- makefile
- markdown
- markup
- matlab
- mel
- mizar
- monkey
- n4js
- nasm
- nginx
- nim
- nix
- nsis
- objectivec
- ocaml
- opencl
- oz
- parigp
- pascal
- perl
- php
- plsql
- powershell
- processing
- prolog
- properties
- protobuf
- pug
- puppet
- pure
- python
- q
- qore
- r
- reason
- renpy
- rest
- rip
- roboconf
- ruby
- rust
- sas
- sass
- scala
- scheme
- scss
- smalltalk
- smarty
- soy
- sql
- stylus
- swift
- tap
- tcl
- textile
- tsx
- tt2
- twig
- typescript
- vbnet
- velocity
- verilog
- vhdl
- vim
- visual-basic
- wasm
- wiki
- xeora
- xojo
- xquery
- yaml
Custom Format Extensions
You can define custom format extensions:
jscpd --formats-exts "javascript:js,es6,vue" ./src
Or in configuration:
.jscpd.json
{
"formatsExts": {
"javascript": ["js", "es6", "vue"]
}
}
Format Detection
jscpd automatically detects the format based on file extension. You can also force a specific format:
jscpd --format javascript ./src
View Full List
You can also view the full list of supported formats by running:
jscpd --list