Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

franc

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

franc

  • 0.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Franc

Gem Version

A simple ruby wrapper to Titus Wormer's awesome javascript language detection called Franc.

Description

At this time, this gem depends on a system wide npm installation of franc and runs a bash command within ruby to invoke the franc javascript.

If you do not have franc installed, this gem will install it for you on the first run by using npm. If you don't have npm installed or are not sure what it is, check out the docs.

Here are all supported languages.

Installation

$ gem install franc

Set Up

require 'franc'

How it works

Franc is included in the String class and can be called on any string using the language method:


'Alle menslike wesens word vry'.language 
# => "afr"

'এটি একটি ভাষা একক IBM স্ক্রিপ্ট'.language
# => "ben"

'Alle mennesker er født frie og'.language
# => "nno"

'asdfasdf'.language
# => "und"

License

The MIT License (MIT)

Copyright (c) 2015 John Mason

FAQs

Package last updated on 21 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc