{"id":13563563,"url":"https://github.com/licenses/lice-js","last_synced_at":"2025-04-03T20:31:11.045Z","repository":{"id":7897708,"uuid":"9277378","full_name":"licenses/lice-js","owner":"licenses","description":null,"archived":false,"fork":false,"pushed_at":"2014-05-19T00:10:34.000Z","size":233,"stargazers_count":18,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-25T16:03:39.253Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/licenses.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"licenseTemplate.js","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-07T14:01:09.000Z","updated_at":"2024-10-03T22:33:38.000Z","dependencies_parsed_at":"2022-08-20T05:10:41.531Z","dependency_job_id":null,"html_url":"https://github.com/licenses/lice-js","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenses%2Flice-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenses%2Flice-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenses%2Flice-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenses%2Flice-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/licenses","download_url":"https://codeload.github.com/licenses/lice-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222270723,"owners_count":16958589,"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":[],"created_at":"2024-08-01T13:01:20.683Z","updated_at":"2024-11-04T16:30:54.653Z","avatar_url":"https://github.com/licenses.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"====\nlice-js\n====\n\nA javascript port of [lice](https://github.com/licenses/lice-python) originally by [jcarbaugh](https://github.com/jcarbaugh) \n\n\u003eLice generates license files. No more hunting down licenses from other projects.\n\n\nInstallation\n------------\n\n    npm install lice-js\n\nor:\n\n    git clone git@github.com:licenses/lice-js.git\n    cd lice-js\n    (sudo)npm link\n    \n\n\nOverview\n--------\n\nGenerate a BSD-3 license, the default:\n\n    $ licejs\n    Copyright (c) 2013, Jeremy Carbaugh\n\n    All rights reserved.\n\n    Redistribution and use in source and binary forms, with or without modification,\n    ...\n\nGenerate an MIT license:\n\n    $ licejs mit\n    The MIT License (MIT)\n    Copyright (c) 2013 Jeremy Carbaugh\n\n    Permission is hereby granted, free of charge, to any person obtaining a copy\n    ...\n\n\nGenerate an apache license header , specifying the year and organization to be used:\n\n```\n $ licejs gpl3 -y 2013 -o \"aplomb bomb inc\" -p \"mySuperProjectName\" --header\nmySuperProjectName\nCopyright (C) 2013  aplomb bomb inc\n\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\n...\n```\n\n\n##Defaults  \n\nIf no arguments are provided for available variables, the following will be used:\n\n| Variable      \t\t| Default \t\t\t\t| \n| --------------------\t|--------------------:\t| \n| owner / organization \t| git user.name || $USER env variable | \n| year     \t\t\t\t| current year\t\t\t| \n| project\t\t\t\t| current working directory|\n| license type\t\t\t| bsd3 \t\t\t\t\t|\n\nYou can change any of these by using `--config` in the cli:\n\n```\nlicejs --config.organization \"The Interesing Co.\"\n```\nthen if you want an MIT license for example:\n\n```\n$ licejs mit\nThe MIT License (MIT)\nCopyright (c) 2013 The Interesing Co.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\n...\n\n```\n\nThe Cli will check the config file first. Then if no value is found for a particular key it will get the values specified in table above.  \n\n\n\nI want XXXXXXXXX license in here!\n---------------------------------\n\nGreat! Is it a license that is commonly used? If so, open an issue or, if you are feeling generous, fork and submit a pull request in the [license-templates](https://github.com/licenses/license-templates) repo.\n\n\nUsage\n-----\n\n\n```\nUsage: licejs [-h]\nlicejs [-l]\nlicejs [ -o [OWNER] -p [PROJECT] -y [YEAR] ] [license] [--header]\nlicejs [--config[.key \u003cVALUE\u003e]]\n\nOptions:\n  -h, --help          show this help menu                                                                                     \n  -l, --list          list all available license templates                                                                    \n  -o, --organization  the organisation/owner that holds the copy[right,left]\n  -p, --project       the name of the project\n  -y, --year          copyright year \n  --config            set default values: usage --config.key value\n  \tavailable:[year], [project], [licenseType], [organisation]\n  --header            just get the license header\n  \n```\n\n## TODO:\n- Error handling.\n- Unit testing.\n- Include [license-templates](https://github.com/licenses/license-templates) as submodule.\n- include --vars option to list template variables.\n- suggestions?\n\nChangelog\n---------\n\n**0.2**\n* npm installable release\n\n**0.1**\n\n* Initial release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicenses%2Flice-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flicenses%2Flice-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicenses%2Flice-js/lists"}