atom-oss-license Archived

A simple package to add a OSS license to your file.

mmk2410

1,785

7

1.1.2

MIT

GitHub

atom-oss-license

A simple package to add a OSS license to your file. It is inspired by atom-license and license-plus, but complete rewritten. It has no deprecations, includes 48 Licenses and a few features for customizing the license.

Screenshot

Usage

Adding a license

CTRL+SHIFT+P (Windows and Linux) / CMD+SHIFT+P (Mac)

Search for License and choose one you like

Updating the license year

CTRL+SHIFT+P (Windows and Linux) / CMD+SHIFT+P (Mac)

Search for License: Update Year

Copyright Line

This feature is enabled by default, but you can disable it in the package settings and with License: Toggle Copyright Line in the command palette. The Copyright Line looks like this:

COPYRIGHT (c) <YEAR> <NAME>

The package automatically inserts the current year and you can set the name in the package settings.

Additional Text

This feature is disabled by default, but you can enable it in the package settings and with License: Toggle Header in the command palette.

If you wanna add an addtional text (e.g. an Ascii art) you have to save this text in a file and enter the absolute path in the package settings.

Licenses

The following licenses are included:

Contributing

  1. Fork it
  2. Create a feature branch with a meaningful name (git checkout -b my-new-feature)
  3. Add yourself to the CONTRIBUTORS file
  4. Commit your changes (git commit -am 'Add some feature')
  5. Push to your branch (git push origin my-new-feature)
  6. Create a new pull request

Useful snippets for contributors

'.source.coffee':
  'license':
    'prefix': 'license'
    'body': """
      $1: ->
        @addLicense('$1')

    """