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

splurt

v0.0.19

Published

Systematic Literate Review Tool

Downloads

5

Readme

SpLuRT

Systematic Literate Review Tool

Install

Globally:

sudo npm install -g --unsafe-perm splurt

Locally:

npm run-script build 
npm link

which will make the binaries available through a series of links, such as:

/usr/local/bin/splurt -> /usr/local/lib/node_modules/splurt/build/src/bin/splurt.js
/usr/local/bin/splurt-fetch -> /usr/local/lib/node_modules/splurt/build/src/bin/splurt-fetch.js
/usr/local/bin/splurt-exclude -> /usr/local/lib/node_modules/splurt/build/src/bin/splurt-exclude.js
/usr/local/bin/splurt-citations -> /usr/local/lib/node_modules/splurt/build/src/bin/splurt-citations.js
/usr/local/bin/splurt-export -> /usr/local/lib/node_modules/splurt/build/src/bin/splurt-export.js
/usr/local/lib/node_modules/splurt -> <DEV_DIR>

Please be aware that you might need to prefix some of these commands with sudo. However, this is a security red-flag, and there's no reason (with the appropriate shell configuration) to leave user-land mode.

Fetch

Options:
  -V, --version            output the version number
  -p, --project <file>     Read config from project YAML file.
  -q, --query <q>          Search query (default: "")
  -d, --databases <list>   Comma separated list of databases to search. (default: [])
  -m, --max [n]            Maximum number of results. (default: 10)
  --scopus <key>           Scopus API key.
  --title                  Title only search (scopus).
  -s, --sqlite <database>  SQLite database used to store articles.
  -h, --help               output usage information

Data

Usage: splurt data|d [options]

Options:
  -V, --version            output the version number
  -p, --project <file>     Read config from project YAML file.
  -d, --delay <s>          Delay between requests. (default: 10)
  -c, --cookie <c>         Cookie to add to header.
  -s, --sqlite <database>  SQLite database used to store articles.
  -h, --help               output usage information

Exclude

Usage: splurt exclude|e [options]

Options:
  -V, --version             output the version number
  -p, --project <file>      Read config from project YAML file.
  -e, --exclude <criteria>  Comma separated exclusion criteria using SQL.
  -s, --sqlite <database>   SQLite database used to store articles.
  -h, --help                output usage information

Export

Usage: splurt export|x [options]

Options:
  -V, --version            output the version number
  -p, --project <file>     Read config from project YAML file.
  -f, --format <format>    Export format. (default: "csv")
  -d, --data <list>        Data columns to export (id, title, authors, year, publication, doi.
  -s, --sqlite <database>  SQLite database used to store articles.
  -h, --help               output usage information

Examples

splurt fetch -s articles.db -q 'blockchain AND cloud' -d 'dblp,scopus' -m 20
splurt exclude -s articles.db -e 'year < 2000, year < 2016 AND cites = 0'
splurt data -s articles.db -c 'COOKIE=value'
splurt export -s articles.db -d 'title,year,cites' -f table

Project

Requires:

  1. SCOPUS_API_KEY that can be obtained by going here and following the "Get API Key" instructions.
  2. cookie from google scholar:
    1. browse to incognito window
    2. open available cookies and copy the value from the GSP cookie
    3. paste it like cookie: "LM=12345678:S=example"

Project project.yaml file example:

sqlite: articles.db

fetch:
  query: 'blockchain AND cloud'
  databases: [dblp,scopus]
  maximum: 20
  scopus: SCOPUS_API_KEY

exclude:
  # SQL like WHERE using these columns: id, doi, title, year, authors, publication, 
  # type, origin, cites, abstract, link, bibtex
  criteria: ['cites = 0 OR cites IS NULL','year < 2000']

data:
  delay: 2
  cookie: 'COOKIE=value'

export:
  # id, doi, title, year, authors, publication, 
  # type, origin, cites, abstract, link, bibtex
  data: [title, doi, year, cites]
  # if the format is html, the data attribute is ignored
  format: table # can be csv,json,table,html
  # if scihub is specified, available pdfs will be downloaded
  # requires the (doi attribute)
  scihub: 'https://sci-hub.se/' # current sci-hub valid url

Using projects:

splurt fetch -p project.yaml -s articles.db
splurt data -p project.yaml -s articles.db
splurt exclude -p project.yaml -s articles.db
splurt export -p project.yaml -s articles.db