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

@draganfilipovic/anketa

v2.1.4

Published

NodeJs script for totalpoll

Downloads

10

Readme

anketa

Headless browser nodejs script

Requirement

NodeJs v8+

How to install -> https://nodejs.org/en/download/

Info

During first install additional time is needed in order to download Chromium.

If you use it without install (with npx), Chromium will be downloaded each time.

If you see a lot of errors when opening a page:

ERROR: opening page ... 14

Page is probably broken, so there is no response. Please stop script manually:

CTRL + c

Install

npm i @draganfilipovic/anketa -g

Run

anketa ne -u https://example.com/anketa

With params

  • Add 10000 votes
anketa ne -u https://example.com/anketa -v 10000
  • Speed up, increase simultaneous browsers.
anketa ne -u https://example.com/anketa -v 10000 -l 40

Usage (without install)

npx @draganfilipovic/anketa ne -u https://example.com/anketa

How to use

Usage: anketa <vote> [options]

Options:

  -V, --version              output the version number
  -u, --url <url>            Page url (required)
  -v, --votes [votes]        Number of votes, default 12 (default: 12)
  -t, --timeout [timeout]    Time to wait after page load, default 10, in seconds (default: 10)
  -r, --response [response]  Time to wait for form response, default 10, in seconds (default: 10)
  -l, --limit [limit]        Limit number of browsers to open at once, default 10 (default: 10)
  -c, --cookie [cookie]      Name of the cookie, default `tpc_1539354118305` (default: "tpc_1539354118305")
  -h, --headless [headless]  is browser headless, default true (default: true)
  -h, --help                 output usage information

###The only required params are vote and -u <url>.