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

list-references

v1.1.1

Published

Transform links to reference list

Downloads

8

Readme

List References

Transform links to reference list

Quick use

npx list-references file.txt
$ npx list-references --help                    
Usage: list-references [options] <file>

Options:
  -V, --version                  output the version number
  -p, --pattern <pattern>        custom reference pattern. Use ${title}, ${url}, and ${date}
  -f, --formatting <formatting>  formatting type (choices: "VAK_UKRAINE", "DSTU_8302_2015", default: "VAK_UKRAINE")
  -h, --help                     display help for command

Example call:
  $ list-references -f DSTU_8302_2015 links.txt 
  $ list-references -p "Title: ${title}. URL:${url}". Date: ${date} links.txt

Convert your links for diploma in references list easily:

file.txt

https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F
https://www.atlassian.com/software/jira/guides/use-cases/what-is-jira-used-for
https://www.atlassian.com/software/jira/guides/getting-started/basics
https://www.altexsoft.com/blog/engineering/what-is-api-definition-types-specifications-documentation/
https://www.google.com/calendar/about/
https://www.google.com/chrome/
https://developer.chrome.com/docs/devtools/
https://www.jetbrains.com/webstorm/
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript
https://www.typescriptlang.org/
https://www.npmjs.com/
https://angular.io/guide/architecture
https://www.npmjs.com/package/smile-track
https://smile-track.web.app/track

Will be converted to:

Git - What is Git? [Електронний ресурс]. - Режим доступу: https://git-scm.com/book/en/v2/Getting-Started-What-is-Git%3F (Дата звернення: 30.05.2021).
What is Jira Software used for? | Atlassian [Електронний ресурс]. - Режим доступу: https://www.atlassian.com/software/jira/guides/use-cases/what-is-jira-used-for (Дата звернення: 30.05.2021).
Getting Started with Jira Software |Free Tutorial |Atlassian [Електронний ресурс]. - Режим доступу: https://www.atlassian.com/software/jira/guides/getting-started/basics (Дата звернення: 30.05.2021).
What is API: Definition, Specifications, Types, Documentation | AltexSoft [Електронний ресурс]. - Режим доступу: https://www.altexsoft.com/blog/engineering/what-is-api-definition-types-specifications-documentation/ (Дата звернення: 30.05.2021).
Google Calendar: Free Calendar App for Personal Use [Електронний ресурс]. - Режим доступу: https://www.google.com/calendar/about/ (Дата звернення: 30.05.2021).
Google Chrome - Download the Fast, Secure Browser from Google [Електронний ресурс]. - Режим доступу: https://www.google.com/chrome/ (Дата звернення: 30.05.2021).
Chrome DevTools - Chrome Developers [Електронний ресурс]. - Режим доступу: https://developer.chrome.com/docs/devtools/ (Дата звернення: 30.05.2021).
WebStorm: The Smartest JavaScript IDE by JetBrains [Електронний ресурс]. - Режим доступу: https://www.jetbrains.com/webstorm/ (Дата звернення: 30.05.2021).
What is JavaScript? - Learn web development | MDN [Електронний ресурс]. - Режим доступу: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript (Дата звернення: 30.05.2021).
TypeScript: Typed JavaScript at Any Scale. [Електронний ресурс]. - Режим доступу: https://www.typescriptlang.org/ (Дата звернення: 30.05.2021).
npm [Електронний ресурс]. - Режим доступу: https://www.npmjs.com/ (Дата звернення: 30.05.2021).
Angular [Електронний ресурс]. - Режим доступу: https://angular.io/guide/architecture (Дата звернення: 30.05.2021).
smile-track - npm [Електронний ресурс]. - Режим доступу: https://www.npmjs.com/package/smile-track (Дата звернення: 30.05.2021).
Smile Track - Best Way to Track Tickets! [Електронний ресурс]. - Режим доступу: https://smile-track.web.app/track (Дата звернення: 30.05.2021).

Programmatically use

const links = [
  'https://angular.io/guide/architecture',
  'https://www.npmjs.com/package/smile-track',
  'https://smile-track.web.app/track',
];

const listReferences = new ListReferences();
listReferences.processLinks(links).then((references) => {
  // [
  //  'Angular [Електронний ресурс]. - Режим доступу: https://angular.io/guide/architecture (Дата звернення: 30.05.2021).',
  //  'smile-track - npm [Електронний ресурс]. - Режим доступу: https://www.npmjs.com/package/smile-track (Дата звернення: 30.05.2021).',
  //  'Smile Track - Best Way to Track Tickets! [Електронний ресурс]. - Режим доступу: https://smile-track.web.app/track (Дата звернення: 30.05.2021).'
  // ]
  console.log(references);
});