
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
CLI for Citation.js.
npm install --global @citation-js/cli
Usage: citation-js [options]
Options:
-V, --version output the version number
-i, --input <path> Input file. If all input options are omitted, it uses stdin
-t, --text <string> Input text. If all input options are omitted, it uses stdin
-u, --url <string> Deprecated in favor of -t, --text. If all input options are omitted, it uses stdin
-o, --output <path> Output file (omit file extension). If this option is omitted, the output is written to stdout
-R, --output-non-real Output as a text file
-f, --output-type <option> Output structure type: string, html, json (default: "json")
-s, --output-style <option> Output scheme. A combination of --output-format json and --output-style citation-* is considered invalid. Options: csl (Citation Style Lanugage JSON), bibtex, citation-* (where * is any formatting style) (default: "csl")
-l, --output-language <option> Output language. [RFC 5646](https://tools.ietf.org/html/rfc5646) codes (default: "en-US")
-h, --help output usage information
Input can be read from stdin, passed as a file with -i, --input <path> or, for simple IDs, as plain text with -t, --text or the deprecated alias -u, --url.
$ echo "Q30000000" > input.txt
$ cat input.txt | citation-js
[{"title": "The Synergistic Activity ...", ...}]
$ citation-js --input input.txt
[{"title": "The Synergistic Activity ...", ...}]
$ citation-js --text Q30000000
[{"title": "The Synergistic Activity ...", ...}]
The CLI outputs to stdout by default, but can write to a file with the -o, --output option.
$ citation-js --text Q30000000
[{"title": "The Synergistic Activity ...", ...}]
$ citation-js -t Q30000000 -o output
$ more output.json
[{"title": "The Synergistic Activity ...", ...}]
Note: the file extension is determined automatically, and should therefore be omitted in the
-ooption. To force a file extension, simply omit-oand redirectstdoutto the preferred file.
To format the output, use the -R, -s, -f and -l options. These options map to the old output options.
| CLI option | Default value | Other values |
|---|---|---|
-R, --output-non-real | omitted (real) | present (string, plain text) |
-f, --output-type | json | json, string |
-s, --output-style | csl | citation-*, bibtex, bibtxt, data |
-l, --output-language | en-US | es-ES, fr-FR, du-DU, nl-NL |
For example, to format doi:10.5281/zenodo.1005176 in French in the APA format:
$ citation-js -t 10.5281/zenodo.1005176 -f string -s citation-apa -l fr-FR
Willighagen, L., & Willighagen, E. (2017, octobre 9). Larsgw/Citation.Js V0.3.3. Zenodo. https://doi.org/10.5281/zenodo.1005176
FAQs
Unknown package
We found that sunteius demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.