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

@types/franc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/franc

TypeScript definitions for franc

  • 5.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Installation

npm install --save @types/franc

Summary

This package contains type definitions for franc (https://github.com/wooorm/franc/).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/franc.

index.d.ts

// ISO 639-3 code (see: https://iso639-3.sil.org/code_tables/639/data)
type ISO6393 = string;

// Range [0, 1]
type Confidence = number;

interface Options {
    minLength?: number | undefined;
    whitelist?: ISO6393[] | undefined;
    blacklist?: ISO6393[] | undefined;
    only?: ISO6393[] | undefined;
}

declare function detect(text: string, options?: Options): ISO6393;

declare namespace detect {
    function all(text: string, options?: Options): Array<[ISO6393, Confidence]>;
}

export = detect;

Additional Details

  • Last updated: Wed, 18 Oct 2023 01:17:34 GMT
  • Dependencies: none

Credits

These definitions were written by William LeGate.

FAQs

Package last updated on 18 Oct 2023

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