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

refme

v1.0.4

Published

refme is a CLI tool that generates formatted citations (references) based on various unique identifiers, including URL, DOI, ISBN, PMID, and PMCID.

Downloads

289

Readme

refme

refme is a CLI tool that generates formatted citations (references) based on various unique identifiers, including URL, DOI, ISBN, PMID, and PMCID. Just pass in your identifiers, and refme will handle the rest!

📋 Table of Contents

⚙️ Installation

Install refme globally via npm:

npm install -g refme

Or use it directly with npx without global installation:

npx refme <list of identifiers>

🚀 Usage

To generate citations, provide a list of unique identifiers as arguments. refme will attempt to identify the type of each identifier automatically.

Options

  • --style, -s <style>: Choose the citation style for the output (e.g., apa, modern-language-association, chicago-author-date). The default is APA.
  • --locale, -l <locale>: Set the locale for the citation language (e.g., en-US for U.S. English, fr-FR for French, ar for Arabic). The default is en-US.

Note: You can check available citation styles and locales at:

Examples

# Using globally installed package
refme 10.1000/xyz123 978-3-16-148410-0

# Specifying a citation style and locale
refme --style modern-language-association --locale en-GB 10.1000/xyz123

Or with npx:

npx refme --style chicago-author-date --locale fr-FR https://example.com/article

Specifying Identifier Types

If refme misinterprets an identifier’s type or if you want to force a specific type, you can prefix it with the type and a colon, like so:

refme "url: https://doi.org/10.xyz123" "isbn: 978-3-16-148410-0"

This will force refme to treat the first identifier as a URL and the second as an ISBN. This works for all identifier types: url, doi, isbn, pmid, and pmcid.

🆔 Supported Identifiers

  • DOI: e.g., 10.1093/ajae/aaq063
  • URL: e.g., https://example.com
  • ISBN: e.g., 978-3-16-148410-0
  • PMID: e.g., 27097605
  • PMCID: e.g., PMC6323133

📄 Output

refme generates a formatted citation (reference) for each identifier. The output is styled for easy copy-pasting into documents and includes all relevant citation details, formatted according to standard citation styles and locale settings.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

📧 Contact

For inquiries or more information, you can reach out to us at [email protected].