/selenic

create license header of packages

Primary LanguageTypeScriptMIT LicenseMIT

@selenic/core

Actions Status codecov npm version

selenic is create license header of packages.

Install

npm install @selenic/core

Usage

import { createLicenseHeader } from '@selenic/core'

createLicenseHeader({
  main: {
    name: 'main-pakcage',
    license: 'MIT'
  },
  deps: {
    'dep-package': {
      name: 'dep-package',
      license: 'MIT'
    },
    'dep-package2': [
      {
        name: 'dep-package2',
        version: '1.0.0',
        license: 'MIT'
      },
      {
        name: 'dep-package2',
        version: '2.0.0',
        license: 'MIT'
      },
      {
        name: 'dep-package2',
        version: '3.0.0',
        license: 'ISC'
      }
    ]
  }
})

// /**
//  * @license
//  *
//  * main-pakcage:
//  *   license: MIT
//  *
//  * dep-package:
//  *   license: MIT
//  *
//  * dep-package2:
//  *   version: 1.0.0, 2.0.0
//  *   license: MIT
//  *
//  *   version: 3.0.0
//  *   license: ISC
//  *
//  */

Related

License

MIT © mkwtys