Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
refactor: Make licenses-conformance web compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
fabnguess committed Nov 27, 2023
1 parent 0574c2b commit dcbf1fd
Show file tree
Hide file tree
Showing 3 changed files with 2,986 additions and 2,990 deletions.
8 changes: 2 additions & 6 deletions src/licenses.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// Import Node.js Dependencies
import fs from "node:fs/promises";

// Import Third-party Dependencies
import * as levenshtein from "fastest-levenshtein";

const spdx = JSON.parse(
await fs.readFile(new URL("./spdx.json", import.meta.url))
);
// Import Internal Dependencies
import { spdx } from "./spdx.js";

// CONSTANTS
const kMaximumLicenseDistance = 1;
Expand Down
Loading

0 comments on commit dcbf1fd

Please sign in to comment.