Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@geneontology/curie-util-es5

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geneontology/curie-util-es5 - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

curie-util.js

@@ -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);

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc