pubmed-citation-verifier 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/pubmed-verify.js +1 -1
- package/package.json +29 -7
package/bin/pubmed-verify.js
CHANGED
|
@@ -61,7 +61,7 @@ function load() {
|
|
|
61
61
|
else if (bad.includes(r) && 'suggestion' in r) console.log(' No reliable match found: remove the link or check by hand.');
|
|
62
62
|
});
|
|
63
63
|
const ok = results.filter(r => r.status === 'ok').length;
|
|
64
|
-
console.log(`\n${ok} ok, ${bad.length} wrong, ${results.length - ok - bad.length} without PMID (${results.length}
|
|
64
|
+
console.log(`\n${ok} ok, ${bad.length} wrong, ${results.length - ok - bad.length} without PMID (${results.length} citation${results.length === 1 ? '' : 's'})`);
|
|
65
65
|
}
|
|
66
66
|
process.exit(bad.length ? 1 : 0);
|
|
67
67
|
})().catch(e => { console.error(e.message); process.exit(2); });
|
package/package.json
CHANGED
|
@@ -1,15 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pubmed-citation-verifier",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Checks that each cited PMID belongs to the cited article, using the PubMed API. Finds the right PMID when it does not. No dependencies.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
6
|
+
"bin": {
|
|
7
|
+
"pubmed-verify": "bin/pubmed-verify.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"src",
|
|
11
|
+
"bin"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "node --test test/*.test.js"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"pubmed",
|
|
18
|
+
"pmid",
|
|
19
|
+
"citation",
|
|
20
|
+
"reference",
|
|
21
|
+
"hallucination",
|
|
22
|
+
"llm",
|
|
23
|
+
"fact-checking",
|
|
24
|
+
"ncbi",
|
|
25
|
+
"e-utilities"
|
|
26
|
+
],
|
|
10
27
|
"homepage": "https://github.com/klow-peptide/pubmed-citation-verifier",
|
|
11
|
-
"repository": {
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/klow-peptide/pubmed-citation-verifier.git"
|
|
31
|
+
},
|
|
12
32
|
"author": "Klow Peptide (https://klow-peptide.com)",
|
|
13
33
|
"license": "MIT",
|
|
14
|
-
"engines": {
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18"
|
|
36
|
+
}
|
|
15
37
|
}
|