Skip to content

generateLicense

지정된 인수의 저자 정보를 기반으로 특정 라이선스 형식으로 텍스트를 반환합니다. 인수는 Object 유형을 사용합니다.

Parameters

이름타입필수기본값
optionsLicenseOption
LicenseOption
이름타입필수기본값
authorstring
emailstring
yearStartstring | number
yearEndstring
htmlBrboolean
type'mit' | 'apache20' | 'bsd3'

Returns

string

Examples

javascript
generateLicense({
	type: 'mit',
	holder: 'example',
	email: '[email protected]',
	yearStart: 2020,
	yearEnd: 2021,
	htmlBr: true
});
python
generateLicense(
	type='mit',
	author='example',
	email='[email protected]',
	yearStart=2020,
	yearEnd=2021,
	htmlBr=True
)

Released under the MIT License