본문으로 건너뛰기
Dart에서는 제공하지 않습니다이 함수는 Dart 패키지에 없습니다. 아래 문서는 JavaScript, Python 기준입니다.

generateLicense

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

Parameters

이름타입필수기본값
optionsLicenseOption
LicenseOption
이름타입필수기본값
authorstringstr
emailstringstr
yearStartstring | numberstr | int
yearEndstringstr
htmlBrbooleanbool
type'mit' | 'apache20' | 'bsd3'

Returns

string

str

Examples

javascript
generateLicense({
	type: 'mit',
	author: '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