@geneontology/curie-util-es5
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -55,3 +55,3 @@ | ||
for(val of mapping.values()) { | ||
for(var val of mapping.values()) { | ||
this.trie.insert(val); | ||
@@ -58,0 +58,0 @@ } |
{ | ||
"name": "@geneontology/curie-util-es5", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Javascript Library to Translate CURIEs to IRIs and vice versa. ES5 Version.", | ||
@@ -5,0 +5,0 @@ "main": "curie-util.js", |
@@ -5,4 +5,10 @@ # curie-util-js | ||
## Install | ||
``` | ||
npm install --save @geneontology/curie-util-es5 | ||
``` | ||
# Usage | ||
Use `require` or `import` to use the package in your JavaScript code | ||
## Usage | ||
Retrieve a JSON-LD file such as: https://github.com/prefixcommons/biocontext/blob/master/registry/go_context.jsonld | ||
@@ -15,4 +21,3 @@ | ||
## Get IRI | ||
### Get IRI | ||
``` | ||
@@ -23,3 +28,3 @@ curie.getIri("ZFIN:ZDB-GENE-031112-7"); | ||
## Get CURIE | ||
### Get CURIE | ||
``` | ||
@@ -30,3 +35,3 @@ curie.getCurie("http://identifiers.org/zfin/ZDB-GENE-031112-7"); | ||
# Notes | ||
## Notes | ||
* Learn about [JSON-LD](https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=2ahUKEwjOtNqao7ncAhX3IjQIHXhIAOcQFjADegQIAxAB&url=https%3A%2F%2Fjson-ld.org%2F&usg=AOvVaw0KYV5lDp9ZQ0M18tp93C6E) | ||
@@ -33,0 +38,0 @@ * Learn about [IRI](https://www.w3.org/International/iri-edit/draft-duerst-iri.html) |
@@ -57,3 +57,3 @@ var TrieNode = require('./trie-node'); | ||
// down the Trie | ||
for (level = 0; level < length; level++) { | ||
for (var level = 0; level < length; level++) { | ||
// Find current character of str | ||
@@ -60,0 +60,0 @@ var ch = input.charAt(level); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9084
37