Skip to content

Detecting one of the SPDX master files and print it to terminal as markdown. Gsoc 2021 Dart org. ideas list sample project.

License

Unknown, Unknown licenses found

Licenses found

Unknown
license.xml
Unknown
license-parser.dart
Notifications You must be signed in to change notification settings

sarathsdev/SPDX-license-detection-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SPDX-license-detection-package

Detecting one of the SPDX master files and print it to terminal as markdown. This is attempt to the idea, license detection package in dart. It's for the first example project.

Development Approach

  1. Creating the license file: If person chooses to prepare a new file instead of available template then that file is fetched from https://raw.githubusercontent.com/spdx/license-list-XML/master/src/<licenseId>.xml

  2. Parsing the file:

  • Unnecessary spaces and line breaks are removed and closing p tag </p> is replaced with line-breaks.
  • Everything present inside the <license>..</license> tag, along with the attributes in the tag are used for printing.
  • Opening tags are removed and closing tags replaced with dashed lines.

How to run locally

  • Clone this repository git clone <repository-url>, or download the zip file and unzip.
  • Change your current working directory to this folder.
  • I your terminal, run dart run interactor.dart

Don't delete license.xml file present in the repository

About

Detecting one of the SPDX master files and print it to terminal as markdown. Gsoc 2021 Dart org. ideas list sample project.

Topics

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
license.xml
Unknown
license-parser.dart

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages