🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

buidler-spdx-license-identifier

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

buidler-spdx-license-identifier

Prepend local Solidity source files with an SPDX License Identifier

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
11
-26.67%
Maintainers
1
Weekly downloads
 
Created
Source

Buidler SPDX License Identifer

Prepend Solidity source files in Buidler projects with the SPDX License Identifier specified in package.json.

Installation

yarn add --dev buidler-spdx-license-identifier

Usage

Load plugin in Buidler config:

usePlugin('buidler-spdx-license-identifier');

Add configuration under the spdxLicenseIdentifier key:

optiondescriptiondefault
overwritewhether to overwrite existing SPDX license identifiersfalse
runOnCompilewhether to automatically prepend identifiers during compilationfalse
spdxLicenseIdentifier: {
  overwrite: true,
  runOnCompile: true,
}

The included Buidler task may be run manually:

yarn run buidler prepend-spdx-license

Files which do not contain a license identifier will be prepended with one. Files with a license identifier which does not match that which is specified in package.json may be updated, depending on configuration.

TypeScript Support

For TypeScript compatibility, add 'node_modules/buidler-spdx-license-identifier/type-extensions.d.ts' to the files array in tsconfig.json.

Keywords

buidler

FAQs

Package last updated on 09 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts