list-references

1.1.1 • Public • Published

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);
});

Package Sidebar

Install

npm i list-references

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

11.2 kB

Total Files

11

Last publish

Collaborators

  • drsmile