Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@rexxars/choosealicense-list
Advanced tools
List of licenses from choosealicense.com
Module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
# NPM
npm install choosealicense-list --save
# Or Using Yarn
yarn add choosealicense-list
const choosealicenseList = require("choosealicense-list")
//choosealicenseList['spdx-id'] or choosealicense.find('spdx-id')
choosealicenseList.MIT
/*
-> {
title: 'MIT License',
id: 'MIT',
description: 'A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.',
using: [{
Babel: 'https://github.com/babel/babel/blob/master/LICENSE'
}, {
'.NET Core': 'https://github.com/dotnet/corefx/blob/master/LICENSE.TXT'
}, {
Rails: 'https://github.com/rails/rails/blob/master/MIT-LICENSE'
}],
permissions: ['commercial-use',
'modifications',
'distribution',
'private-use'
],
conditions: ['include-copyright'],
limitations: ['liability', 'warranty'],
featured: true,
hidden: false,
nickname: null,
note: '',
redirect_from: '',
urls: {
github: 'https://api.github.com/licenses/MIT',
choosealicense: 'https://choosealicense.com/licenses/MIT',
opensource: 'https://www.opensource.org/licenses/MIT'
},
'spdx-id': 'MIT',
how: 'Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.',
body: 'MIT License\n\nCopyright (c) [year] [fullname]\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the "Software"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n'
}
*/
choosealicenseList.data
/*
> [fields, meta, rules]
*/
choosealicenseList.data.rules.permissions[1]
/*
-> {
description: 'This software may be modified.',
label: 'Modification',
tag: 'modifications'
}
*/
To run the test suite, first install the dependencies, then run test
:
# NPM
npm test
# Or Using Yarn
yarn test
None
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. List of all contributors.
FAQs
List of licenses from choosealicense.com
The npm package @rexxars/choosealicense-list receives a total of 1,349 weekly downloads. As such, @rexxars/choosealicense-list popularity was classified as popular.
We found that @rexxars/choosealicense-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.