@qiwi/license
    TypeScript icon, indicating that this package has built-in type declarations

    1.3.2 • Public • Published

    QIWI Open Source Software License

    Build Status npm (tag) dependencyStatus Maintainability Test Coverage

    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' --dir=. --lang=en --file=LICENSE --type=mit --year=2019

    With npx

    npx @qiwi/license --type=mit --year=2019 --dir=/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',
      dir: resolve(__dirname, '../foo/bar'),
      lang: 'en',
      year: '2019'
    })

    Options

    Option Description Default
    year Sets year Current .getFullYear()
    lang Text language en
    file License file name LICENSE
    dir License target dir Project root
    name Project name name from package.json
    type License type qosl

    Install

    npm i @qiwi/license

    DownloadsWeekly Downloads

    5

    Version

    1.3.2

    License

    MIT

    Unpacked Size

    34.4 kB

    Total Files

    26

    Last publish

    Collaborators

    • antongolub
    • qiwibot
    • pismenskiy