Automatically include licenses on the top of every source file. This is used in all Laudio repositories to ensure that each file has a license header.
Pre-built binaries for Linux, MacOS and Windows are available under the bin directory.
npm install -g @laudio/licenser
If you have Go installed, binaries can be regenerated for all platforms by running
Provide a platform to
make for building for a specific platform. For example, to create a Linux binary:
make darwin and
make windows for MacOS and Windows platforms.
Run the following command to get a binary in your
go install .
The license is passed via a file which can be set using the
licenser -l /path/to/LICENSE
By default, the
LICENSE file in the current working directory is searched for.
A default license is used if the
-l flag is not specified and the working directory does not
(c) Laudio, Inc. All Rights Reserved. This file contains proprietary and confidential source code. Unauthorized copying of this file, via any medium is strictly prohibited. (r) 2018 Laudio is a registered trademark of Laudio, Inc.
Migration to a New License
-m flag to migrate to a new license.
licenser -l /path/to/LICENSE -m /path/to/new/license
This reads - Migrate the license specified by
-l to license specified by
-d flag for a dry run.
licenser -l /path/to/LICENSE -d
-v flag for verbose output. Since painting to the console can't keep up with the speed that the program runs at,
it might take longer for execution to complete. However, this is typically neglibible - it takes 500ms to 1s longer for ~20k files.
licenser -l /path/to/LICENSE -v
(c) Laudio, Inc. All Rights Reserved.