Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including tolmach with all npm packages installed. Try it out:

var tolmach = require("tolmach")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

tolmach v1.0.1

Programming language classifier of a code for node.js

tolmach

Build Status

Programming language classifier based on natural classifier module.

Installation

$ npm install tolmach

Example

var tolmach = require('tolmach');

tolmach.detect('for item in items:');
// => "python"

tolmach.detect('#include <stdio.h>');
// => "c"

tolmach.detect('prices = items.map{ |i| i.price }');
// => "ruby"

Supported languages

c
csharp
fortran
go
haskell
java
javascript
lisp
lua
objective-c
perl
php
python
ruby
rust
shell
swift
vbnet

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free