2.0.3 • Published 4 months ago

@qiwi/license v2.0.3

Weekly downloads
13
License
MIT
Repository
github
Last release
4 months ago

QIWI Open Source Software License

CI Maintainability Test Coverage npm (scoped)

MIT compatible and corresponding to the Civil Code of the Russian Federation.

Install

yarn add @qiwi/license -D
npm add @qiwi/license -D

Usage

Through CLI

qiwilicense --name='@qiwi/some-project' --cwd=. --lang=en --file=LICENSE --type=mit --year=2019

With npx

npx @qiwi/license --type=mit --year=2019 --cwd=/some/path

TS/JS

import {generate, render} from '@qiwi/license'

// Get the text and do something next
const text = render({
  lang: 'ru',
  year: '2010-2019'
})

// Or just write to a file:
generate({
  name: 'PROJECT_NAME',
  cwd: resolve(__dirname, '../foo/bar'),
  lang: 'en',
  year: '2019'
})

Options

OptionDescriptionDefault
year, ySets yearnew Date().getFullYear()
lang, lText languageen
file, fLicense file nameLICENSE
cwd, c, dir, dLicense target dirprocess.cwd()
name, nProject namename from package.json
type, tLicense typeqosl
patch-pkg-jsonSet/update license field of package.jsonfalse

License

MIT

2.0.1-draft.3

4 months ago

2.0.3

4 months ago

2.0.1-draft.0

4 months ago

2.0.1-draft.1

4 months ago

2.0.1-draft.2

4 months ago

2.0.0

12 months ago

1.4.4

2 years ago

1.4.3

2 years ago

1.3.3

2 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.2.0

3 years ago

1.3.0

3 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago