
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
JS client for the BridgeDb ID mapping framework webservice. If you want to use the version, see the 5x
branch.
Browser
<script src="https://bridgedb.github.io/bridgedbjs/dist/bridgedb-5.0.13.min.js"></script>
Node.js
npm install --save bridgedb
var BridgeDb = require('bridgedb').default; // Omit this line unless you're using Node.js
var bridgeDbInstance = new BridgeDb();
bridgeDbInstance.search('Mouse', 'Nfkb1')
.subscribe(function(searchResult) {
console.log('Result for Nfkb1');
console.log(searchResult);
});
Use ES2015, options and error catching.
import BridgeDb from 'bridgedb';
const bridgeDbInstance = new BridgeDb({
baseIri: 'http://example.org/',
dataSourcesHeadersIri: 'http://example.org/data-sources-headers.txt'
dataSourcesMetadataIri 'http://example.org/data-sources.txt',
});
bridgeDbInstance.search('Mouse', 'Nfkb1')
.subscribe(function(searchResult) {
console.log('Result for Nfkb1');
console.log(searchResult);
}, function(err) {
throw err;
}, function() {
console.log('complete');
});
The methods return RxJS Observables, meaning can use subscribe
as shown above to get the next values, catch errors and be notified when the observable is complete.
For more examples, see the test directory.
git clone https://github.com/bridgedb/bridgedbjs.git
(or use your fork's URL)cd bridgedbjs
npm install
Each time this library is instantiated, it downloads the following files:
These files are accessed via the RawGit CDN. The desired version of the files to download is specified in src/main.ts
as the commit hash of the latest release of bridgedbjs
, e.g/, 24186142d05b5f811893970b9a5d61a06f241f68
to produce a URL like https://cdn.rawgit.com/bridgedb/BridgeDb/24186142d05b5f811893970b9a5d61a06f241f68/org.bridgedb.bio/resources/org/bridgedb/bio/datasources.txt
attributeSearch
for both the API client and the UI component.attributeSearch
be at least three characters in length.npm install
throws an error like library not found for -lgcc_s.10.5
cd /usr/local/lib
>sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib
FAQs
JS client for BridgeDb.org ID mapping framework webservices
The npm package bridgedb receives a total of 13 weekly downloads. As such, bridgedb popularity was classified as not popular.
We found that bridgedb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.