List of licenses from choosealicense.com by Tiago Danin.
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
/* eslint-disable no-unused-expressions */
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.
JavaScript
2