summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md b/bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md
new file mode 100644
index 00000000..ab388cf9
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/spdx-correct/README.md
@@ -0,0 +1,14 @@
+```javascript
+var correct = require('spdx-correct')
+var assert = require('assert')
+
+assert.equal(correct('mit'), 'MIT')
+
+assert.equal(correct('Apache 2'), 'Apache-2.0')
+
+assert(correct('No idea what license') === null)
+
+// disable upgrade option
+assert(correct('GPL-3.0'), 'GPL-3.0-or-later')
+assert(correct('GPL-3.0', { upgrade: false }), 'GPL-3.0')
+```