Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

spdx/spdx-tools-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ This library is going to be deprecated in favor of the "TypeScript library" ⚠️

The TypeScript library is a fresh rewrite that can be used in JavaScript and TypeScript projects and has the goal to replace this project.

Javascript equivalent of SPDX's python-tools

The Software Package Data Exchange (SPDX) specification is a standard format for communicating the components, licenses and copyrights associated with a software package. The goal is to accompany software with special files that hold certain meta information: authorship, copyrights, licenses, etc. A JavaScript library for parsing, validating and creating SPDX documents will go a long way in complimenting the existing Java, Python and GO libraries and to ease the integration of SPDX specifications in project that are build on JavaScript frameworks such as NodeJs, ReactJs e.t.c.

The JavaScript Library will be inspired by the work that has been done already on the Python and/or Java libraries. The implementation would most comprise of porting existing design and code implementation of the Python and/or Java libraries. The diagram below 2 reveals the full architecture of SPDX v2.1 Document Specification which is the most supported and stable version.

The SPDX Java library implements all the aspects and recommendations suggested in the architecture exposing users with the following functions :

  • TagToSpreadsheet - Convert a tag format input file to a spreadsheet output file
  • TagToRDF - Convert a tag format input file to an RDF format output file
  • RdfToTag - Convert an RDF format input file to a tag format output file
  • RdfToHtml - Convert an RDF format input file to an HTML web page output file 3
  • RdfToSpreadsheet - Convert an RDF format input file to a spreadsheeet format output file
  • SpreadsheetToRDF - Convert a spreadsheet input file to an RDF format output file
  • SpreadsheetToTag - Convert a spreadsheet input file to a tag format output file
  • SPDXViewer - Display an SPDX document input file (in either tag/value or RDF format)
  • CompareMultipleSpdxDocs - Compare multiple SPDX documents (in either tag/value or RDF formats) and output to a spreadsheet
  • CompareSpdxDocs - Compare two SPDX documents (in either tag/value or RDF format)
  • GenerateVerificationCode - Geneinkrate a Verification Code from a directory of files.

Installation and Usage

  • Create a virtualenv for the project
  • Activate the virtualenv
  • Clone the project in the virtualenv
  • Install node modules: npm install
  • Build the project: npm run build
  • Use The project is now fit for use in any of your javascript apps. For now, I left the command npm run start to create an spdx tv document

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published