{"id":15498188,"url":"https://github.com/getify/typl","last_synced_at":"2025-04-06T12:07:38.349Z","repository":{"id":38290528,"uuid":"167612716","full_name":"getify/TypL","owner":"getify","description":"The Type Linter for JS","archived":false,"fork":false,"pushed_at":"2021-11-11T18:23:30.000Z","size":220,"stargazers_count":374,"open_issues_count":23,"forks_count":13,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-30T11:07:24.380Z","etag":null,"topics":["assertion","javascript","linter","types"],"latest_commit_sha":null,"homepage":"https://TypL.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/getify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["getify"],"patreon":"getify","custom":["https://www.paypal.com/paypalme2/getify","https://www.blockchain.com/btc/address/32R5dVrqirdcbiyvUw85y7YbPFZTd7YpnH"]}},"created_at":"2019-01-25T20:57:25.000Z","updated_at":"2025-01-16T13:17:58.000Z","dependencies_parsed_at":"2022-08-09T02:31:19.890Z","dependency_job_id":null,"html_url":"https://github.com/getify/TypL","commit_stats":null,"previous_names":["getify/typval"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FTypL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FTypL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FTypL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getify%2FTypL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getify","download_url":"https://codeload.github.com/getify/TypL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478320,"owners_count":20945266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["assertion","javascript","linter","types"],"created_at":"2024-10-02T08:42:18.183Z","updated_at":"2025-04-06T12:07:38.322Z","avatar_url":"https://github.com/getify.png","language":"JavaScript","readme":"# TypL\n\nThe ***Typ***e ***L***inter for JS.\n\n## Overview\n\n**TypL** provides optional type annotations for JS programs, so you can verify that you haven't mixed incompatible value-types in any operations (which can cause bugs!). However, **TypL** takes a different approach from the more well-known [TypeScript](https://www.typescriptlang.org/) and [Flow](https://flow.org/) tools.\n\nAs a quick glance at the differences:\n\n* not a typed-language variant of JS, but rather a (type) linter in the truest sense: **TypL** checks code against a set of opinions (that you control!) about how types should be treated in your program; with a **heavy emphasis on type inferencing**, you can run type linting on existing JS programs without any code changes\n\n* for type annotations, uses only standard valid JS syntax (ES6 template tags), so type-annotated code can be executed without any compilation step if desired (as long as the runtime library is present)\n\n* shifts focus from \"typing your variables\" to \"typing your values and expressions\"; variables optionally get assigned \"implied types\" from the annotated value-types\n\n* provides compile-time static type checks as well as runtime dynamic type checks (assertions), both of which are optional\n\n* completely configurable (like [ESLint](https://eslint.org/)), so you're always in control of what is reported as a type error or not -- for example, you decide if some specific type conversion/coercion is allowed, etc\n\nTypL is still in early development. For more information, please see: [TypL.dev](https://typl.dev).\n\n## Run\n\n```\nbin/typl --file=./some-code.js\n```\n\nor:\n\n```\nnode ./lib/cli.js --file=./some-code.js\n```\n\n## Test\n\n```\nnpm test\n```\n\n## Project Champions\n\nI would like to thank the following people for their generous [sponsorship as a project champion](https://github.com/users/getify/sponsorship). You are awesome!\n\n* [Judith Rohatiner @jrohatiner](https://github.com/jrohatiner)\n\n## License\n\nAll code and documentation are (c) 2019 Kyle Simpson and released under the [MIT License](http://getify.mit-license.org/). A copy of the MIT License [is also included](LICENSE.txt).\n","funding_links":["https://github.com/sponsors/getify","https://patreon.com/getify","https://www.paypal.com/paypalme2/getify","https://www.blockchain.com/btc/address/32R5dVrqirdcbiyvUw85y7YbPFZTd7YpnH"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetify%2Ftypl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetify%2Ftypl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetify%2Ftypl/lists"}