New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bibtex-search

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bibtex-search - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

.npmignore

34

index.js

@@ -12,8 +12,6 @@ #!/usr/bin/env node

const chalk = require('chalk');
const hyperlinker = require('hyperlinker');
const MAX_ARTICLES = 10;
const ACM_BASE = 'https://dl.acm.org';
const ACM_SEARCH_URL = `${ACM_BASE}/results.cfm`;
const ACM_REFERENCE_URL = `${ACM_BASE}/exportformats.cfm`;
const ACM_SEARCH_URL = 'https://dl.acm.org/results.cfm';
const ACM_REFERENCE_URL = 'https://dl.acm.org/exportformats.cfm';

@@ -37,10 +35,10 @@ /**

const url = link.attr('href');
const { id } = querystring.parse(url.split('?').pop());
return {
id,
title,
authors,
href: `${ACM_BASE}/${url}`
};
const { id } = querystring.parse(
link
.attr('href')
.split('?')
.pop()
);
return { id, title, authors };
});

@@ -71,10 +69,6 @@ }

function buildQuestions(articles) {
const choices = articles.map(({ id, href, title, authors }, i) => {
const prefix = hyperlinker(title, href);
const suffix = chalk.dim(`(${authors})`);
return {
value: id,
name: `${prefix} ${suffix}`
};
});
const choices = articles.map(({ id, title, authors }, i) => ({
value: id,
name: `${title} ${chalk.dim(`(${authors})`)}`
}));

@@ -81,0 +75,0 @@ return [

{
"name": "bibtex-search",
"version": "0.1.2",
"version": "0.1.3",
"description": "Search for BibTeX references",

@@ -34,3 +34,2 @@ "main": "index.js",

"got": "^8.0.0",
"hyperlinker": "^1.0.0",
"inquirer": "^4.0.0",

@@ -37,0 +36,0 @@ "meow": "^4.0.0",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc