{"id":20183276,"url":"https://github.com/martonlederer/licensist","last_synced_at":"2026-05-02T11:43:49.502Z","repository":{"id":115971660,"uuid":"281168185","full_name":"martonlederer/licensist","owner":"martonlederer","description":"[W.I.P] A simple node package to get the license title and other info from a license string, using GitHub's license api","archived":false,"fork":false,"pushed_at":"2020-07-20T18:17:17.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T06:24:25.791Z","etag":null,"topics":["github","license","node","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/martonlederer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-20T16:22:40.000Z","updated_at":"2020-07-20T18:20:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4b0bb11-4b1a-4883-9d43-a3584aad7edb","html_url":"https://github.com/martonlederer/licensist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/martonlederer/licensist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martonlederer%2Flicensist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martonlederer%2Flicensist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martonlederer%2Flicensist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martonlederer%2Flicensist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/martonlederer","download_url":"https://codeload.github.com/martonlederer/licensist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/martonlederer%2Flicensist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27308392,"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","status":"online","status_checked_at":"2025-11-28T02:00:06.623Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["github","license","node","typescript"],"created_at":"2024-11-14T02:44:59.249Z","updated_at":"2025-11-28T13:06:45.238Z","avatar_url":"https://github.com/martonlederer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# licensist\n A simple node package to get the license title and other info from a license string, using GitHub's license api\n\n## How to use\n Add with yarn or npm\n ```sh\n yarn add licensist\n ```\n ```sh\n npm i licensist\n ```\n\n You can use it for both front-end and back-end, since we are using axios for requests\n\n### Compare\nFirst, create a new instance (you can use this instance for multiple compares) and initialize it, to request the available licenses from GitHub\n\n```ts\nimport { LicenseComparer } from 'licensist'\n\n...\n\nconst comparer = new LicenseComparer()\nawait comparer.init()\n```\nAfter this, you'll be able to input LICENSE texts for comparison\n\n```ts\n// let's get the nest.land license\n// you don't need axios, just the license text\n// this is to demonstrate how can you get the license with a license text\naxios\n  .get('https://raw.githubusercontent.com/nestdotland/nest.land/master/LICENSE')\n  .then(response =\u003e {\n\n    const license = comparer.compare(response.data) // returns the license or null\n\n    if(license === null) return console.log('Could not identify LICENSE')\n\n    console.log(`License is ${ license.name }. Full LICENSE data: \\n${ license }`)\n\n  })\n```\n\n## License\nlicenser is licensed under the MIT License. Funny right?","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartonlederer%2Flicensist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmartonlederer%2Flicensist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmartonlederer%2Flicensist/lists"}