
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
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 10 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
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.