{"id":28490974,"url":"https://github.com/videojs/videojs-languages","last_synced_at":"2026-02-06T08:33:43.331Z","repository":{"id":42124262,"uuid":"46522790","full_name":"videojs/videojs-languages","owner":"videojs","description":null,"archived":false,"fork":false,"pushed_at":"2022-04-12T17:24:29.000Z","size":125,"stargazers_count":4,"open_issues_count":3,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-07-29T21:34:16.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/videojs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-19T21:55:24.000Z","updated_at":"2024-01-23T15:28:36.000Z","dependencies_parsed_at":"2022-08-12T07:11:37.443Z","dependency_job_id":null,"html_url":"https://github.com/videojs/videojs-languages","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/videojs/videojs-languages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-languages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-languages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-languages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-languages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/videojs","download_url":"https://codeload.github.com/videojs/videojs-languages/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/videojs%2Fvideojs-languages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29155478,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-08T07:30:54.258Z","updated_at":"2026-02-06T08:33:43.315Z","avatar_url":"https://github.com/videojs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n**Table of Contents**  *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [videojs-languages](#videojs-languages)\n  - [Installation](#installation)\n  - [CLI Usage](#cli-usage)\n    - [Specifying a Destination Directory](#specifying-a-destination-directory)\n    - [Create as an ES module](#create-as-an-es-module)\n    - [Options](#options)\n  - [API Usage](#api-usage)\n  - [License](#license)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# videojs-languages\n\n[![Build Status](https://travis-ci.org/videojs/videojs-languages.svg?branch=master)](https://travis-ci.org/videojs/videojs-languages)\n[![Greenkeeper badge](https://badges.greenkeeper.io/videojs/videojs-languages.svg)](https://greenkeeper.io/)\n[![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com)\n\n[![NPM](https://nodei.co/npm/videojs-languages.png?downloads=true\u0026downloadRank=true)](https://nodei.co/npm/videojs-languages/)\n\nA CLI program for converting [video.js JSON language files](https://github.com/videojs/video.js/blob/master/docs/guides/languages.md#creating-the-language-file) into [executable video.js language definitions](https://github.com/videojs/video.js/blob/master/docs/guides/languages.md#adding-languages-to-videojs).\n\n## Installation\n\n```sh\n$ npm install -g videojs-languages\n```\n\nThis will install the `vjslang` binary on your `$PATH`.\n\n## CLI Usage\n\nThe `vjslang` binary takes any number of [glob-like arguments](https://www.npmjs.com/package/minimatch) for targeting `.json` files:\n\n```sh\n$ vjslang **/*.json foo/bar/*.json\n```\n\nIf no glob arguments are given, for example:\n\n```sh\n$ vjslang\n```\n\nThe program will fall back to `lang/*.json`.\n\n### Specifying a Destination Directory\n\nBy default, each converted `.js` file will be output alongside its source `.json` file, but a `--dir`/`-d` option can be used to specify a directory where _all_ `.js` file(s) will end up:\n\n```sh\n$ vjslang foo/bar.json --dir baz\n```\n\nThe directory will be created if it does not exist. If creation fails, `vjslang` will fall back to its default behavior.\n\n### Create as an ES module\n\nThe `--asModule`/`-m` option creates an .mjs moduel file which can be directly imported.\n\n```sh\n$ vjslang foo/bar.json --dir baz --asModule\n```\n\n### Options\n\nThe `--dir`/`-d` and `--asModule`/`-m` options are the most interesting/useful. For full option documentation refer to:\n\n```sh\n$ vjslang --help\n```\n\n## API Usage\n\nThere is a very simple programmatic API that can be used in your own programs. It is used like this:\n\n```js\nimport convert from 'videojs-languages';\n\nconst asModule = true;\n\nconvert(['foo/bar.json', 'baz/*.json'], 'langs', asModule);\n```\n\n## License\n\nApache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-languages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvideojs%2Fvideojs-languages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvideojs%2Fvideojs-languages/lists"}