npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ncbi-eutil-server

v0.0.4

Published

ncbi-eutils-server with Node

Downloads

2

Readme

ncbi-eutils-server.js

ncbi-eutils-server is a utility module which provides straight-forward way of transforming NCBI eutil XML documents into RESTFUL JSON format

Quick Examples

var ncbiEutilService = require("./index");

// Set up our routes and start the server
ncbiEutilService.server.get('/ncbi/:db/:term', ncbiEutilService.processncbieutilrequest);
ncbiEutilService.server.get('/', function(req, res, next) {
    res.send("hi there, you reached a page that it doesn't exists. ");
});

ncbiEutilService.server.listen(process.env.VMC_APP_PORT || 1337, function() {
    console.log('%s listening at %s, love & peace', ncbiEutilService.server.name, ncbiEutilService.server.url);
});

Sample JSON Output

{
	"success": true,
	"responseHeader": {
		"count": "2",
		"retmax": "0",
		"retstart": "0",
		"querykey": "1",
		"webenv": "NCID_1_35062342_165.112.9.24_5555_1358039612_282655023",
		"idlist": null,
		"translationset": null,
		"translationstack": {
			"termset": {
				"term": "11231 12[UID]",
				"field": "UID",
				"count": "-1",
				"explode": "Y"
			},
			"op": "GROUP"
		},
		"querytranslation": "11231 12[UID]"
	},
	"response": [
		{
			"pubdate": "1976 Mar-Apr",
			"epubdate": null,
			"source": "J Dent Assoc Thai",
			"authors": {
				"author": {
					"name": "Chavalit N",
					"authtype": "Author",
					"clusterid": "1278757"
				}
			},
			"lastauthor": "Chavalit N",
			"title": "[Influence of low concentration fluoride on the rate of dissolution of hydroxyapatite in acid buffer solution].",
			"sorttitle": "influence of low concentration fluoride on the rate of dissolution of hydroxyapatite in acid buffer solution",
			"volume": "26",
			"issue": "2",
			"pages": "35-40",
			"lang": {
				"string": "tha"
			},
			"nlmuniqueid": "7505601",
			"issn": "0045-9917",
			"essn": null,
			"pubtype": {
				"flag": "Journal Article"
			},
			"recordstatus": "PubMed - indexed for MEDLINE",
			"pubstatus": "4",
			"articleids": {
				"articleid": [
					{
						"idtype": "pubmed",
						"idtypen": "1",
						"value": "11231"
					}, {
						"idtype": "eid",
						"idtypen": "8",
						"value": "11231"
					}, {
						"idtype": "rid",
						"idtypen": "8",
						"value": "11231"
					}
				]
			},
			"history": {
				"pubmedpubdate": [
					{
						"pubstatus": "pubmed",
						"date": "1976/03/01 00:00"
					}, {
						"pubstatus": "medline",
						"date": "1976/03/01 00:01"
					}, {
						"pubstatus": "entrez",
						"date": "1976/03/01 00:00"
					}
				]
			},
			"references": null,
			"attributes": null,
			"pmcrefcount": "0",
			"fulljournalname": "The Journal of the Dental Association of Thailand",
			"elocationid": null,
			"viewcount": "0",
			"doctype": "citation",
			"srccontriblist": null,
			"booktitle": null,
			"medium": null,
			"edition": null,
			"publisherlocation": null,
			"publishername": null,
			"srcdate": null,
			"reportnumber": null,
			"availablefromurl": null,
			"locationlabel": null,
			"doccontriblist": null,
			"docdate": null,
			"bookname": null,
			"chapter": null,
			"sortpubdate": "1976/03/01 00:00",
			"sortfirstauthor": "Chavalit N"
		}, {
			"pubdate": "1975 Sep 15",
			"epubdate": null,
			"source": "Biochem Pharmacol",
			"authors": {
				"author": {
					"name": "Stein JM",
					"authtype": "Author",
					"clusterid": "6355762"
				}
			},
			"lastauthor": "Stein JM",
			"title": "The effect of adrenaline and of alpha- and beta-adrenergic blocking agents on ATP concentration and on incorporation of 32Pi into ATP in rat fat cells.",
			"sorttitle": "effect of adrenaline and of alpha and beta adrenergic blocking agents on atp concentration and on incorporation of 32pi into atp in rat fat cells",
			"volume": "24",
			"issue": "18",
			"pages": "1659-62",
			"lang": {
				"string": "eng"
			},
			"nlmuniqueid": "0101032",
			"issn": "0006-2952",
			"essn": "1873-2968",
			"pubtype": {
				"flag": "Journal Article"
			},
			"recordstatus": "PubMed - indexed for MEDLINE",
			"pubstatus": "4",
			"articleids": {
				"articleid": [
					{
						"idtype": "pubmed",
						"idtypen": "1",
						"value": "12"
					}, {
						"idtype": "pii",
						"idtypen": "4",
						"value": "0006-2952(75)90002-7"
					}, {
						"idtype": "eid",
						"idtypen": "8",
						"value": "12"
					}, {
						"idtype": "rid",
						"idtypen": "8",
						"value": "12"
					}
				]
			},
			"history": {
				"pubmedpubdate": [
					{
						"pubstatus": "pubmed",
						"date": "1975/09/15 00:00"
					}, {
						"pubstatus": "medline",
						"date": "1975/09/15 00:01"
					}, {
						"pubstatus": "entrez",
						"date": "1975/09/15 00:00"
					}
				]
			},
			"references": null,
			"attributes": null,
			"pmcrefcount": "5",
			"fulljournalname": "Biochemical pharmacology",
			"elocationid": null,
			"viewcount": "223",
			"doctype": "citation",
			"srccontriblist": null,
			"booktitle": null,
			"medium": null,
			"edition": null,
			"publisherlocation": null,
			"publishername": null,
			"srcdate": null,
			"reportnumber": null,
			"availablefromurl": null,
			"locationlabel": null,
			"doccontriblist": null,
			"docdate": null,
			"bookname": null,
			"chapter": null,
			"sortpubdate": "1975/09/15 00:00",
			"sortfirstauthor": "Stein JM"
		}
	]
}