Skip to content

Small library to guess which programming language a project is

Notifications You must be signed in to change notification settings

loft-sh/programming-language-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

programming-language-detection

This is a simple library to guess which programming language is a project.

Simple usage:

package main

import (
	"os"
	"github.com/loft-sh/programming-language-detection/pkg/detector"
)

func main() {
	lang := detector.GetLanguage("/path/to/my/project", -1)
	println(lang)
}

it will return None if it didn't match anything, else it will return one of:

  • JavaScript
  • TypeScript
  • Python
  • C
  • Cpp
  • DotNet
  • Go
  • PHP
  • Java
  • Rust
  • Ruby

About

Small library to guess which programming language a project is

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages