lang2extension
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

lang2extension

  • Determine extension from language name.

Support for getting the extension from the language name.

I used it to determine the file extension for scraping when I could only get the language name.

Usage

Package

$ npm install lang2extension
import { lang2extension } from "lang2extension";

console.log(lang2extension("Python (3.8.2)"));
// => .py

console.log(lang2extension("!?!?!?!?"));
// => undefined

License

MIT ©ivgtr

Twitter Follow MIT License Donate

Readme

Keywords

Package Sidebar

Install

npm i lang2extension

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

20 kB

Total Files

32

Last publish

Collaborators

  • ivgtr