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

electronjsxp

v1.0.4

Published

Advanced Electron Tools.

Downloads

1

Readme

Using

const electronjsxp = require("electronjsxp");

Commands => Download

electronjsxp.download(url, path, textid, onend);

URL - File URL

Path - Save Path

TextID - ID of text to show percentage of download

onEnd - Function to run when download is end

Example: electronjsxp.download("https://test.website/downloads/your_file.txt", "C:\Example\your_file.txt", "percentOfDownload");

Commands => File management

electronjsxp.json_write(data, path);

Data - JSON data (for more, read example)

Path - Save Path (end on .json!)

Example: electronjsxp.json_write({ "Example": "This is a test!" }, "C:\Example\your_file.json");

electronjsxp.json_read(path);

Path - Read from path

Example: var data = electronjsxp.json_read("C:\Example\your_file.json");

Example: console.log(data.Example);

Example - Result: This is a test!

electronjsxp.text_write(data, path);

Data - Text

Path - Save Path

Example: electronjsxp.text_write("This is a test!", "C:\Example\your_file.txt");

electronjsxp.text_read(path);

Path - Read from path

Example: var data = electronjsxp.text_read("C:\Example\your_file.txt");

Example: console.log(data);

Example - Result: This is a test!

electronjsxp.delete(path);

Path - File to remove

Example: electronjsxp.delete("C:\Example\your_file.txt");

Commands => HTML Arguments

electronjsxp.html_setattribute(id, attribute, value);

ID - ID of object to set attribute

Attribute - Attribute to set

Value - Value to set

Example: electronjsxp.html_setattribute("buttonToDownload", "disabled", "true");

electronjsxp.html_removeattribute(id, attribute);

ID - ID of object where remove argument

Attribute - Attribute to remove

Example: electronjsxp.html_removeattribute("buttonToDownload", "disabled");

electronjsxp.html_enableobject(id);

ID - ID of object to enable

Example: electronjsxp.html_enableobject("buttonToDownload");

electronjsxp.html_disableobject(id);

ID - ID of object to disable

Example: electronjsxp.html_disableobject("buttonToDownload");

Commands => Redirects

electronjsxp.redirect_noback(url);

Redirects without back button (so you can't go back with back button)

URL - URL to redirect

Example: elextronjsxp.redirect_noback("https://test.website/second.html");

electronjsxp.redirect(url);

Redirects with back button (so you can go back with back button)

URL - URL to redirect

Example: elextronjsxp.redirect("https://test.website/second.html");

Commands => App Managment

electronjsxp.getAppData();

Example: var data = electronjsxp.getAppData();

Example: console.log(data);

Example - Result: Name: Test Electron App, version: 1.0.2

electronjsxp.getAppPath();

Example: var data = electronjsxp.getAppPath();

Example: console.log(data);

Example - Result: C:\Example\TestApp.exe

electronjsxp.overridePath(path);

Path - Path to override

Example: electronjsxp.overridePath("C:\NotMyExampleFolder");

Commands => Other

electronjsxp.test();

Example: electronjsxp.test();

Example - Result: ElectronJSXP v.1.0.2 by StopperTech. Advanced Electron Tools

Example - Result: If you see this, ElectronJSXP is working fine!

electronjsxp.exit();

Exits from application.

Example: electronjsxp.exit();