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

ext-check

v0.1.0

Published

Check and fix extensions before importing into Qlik Sense Server.

Downloads

21

Readme

ext-check

Check and fix extensions before importing into Qlik Sense Server.

About

ext-check is a NodeJS based command line tool which was primarily developed to solve a degrade in Qlik Sense 2.1.1 which prevents extensions containing specific files from being uploaded to Qlik Sense server.

The following scenarios are supported:

  • Check a zip file whether it will likely work in Qlik Sense server or not
  • List all file-types in a zip file
  • List all files for a given file-type in a zip file
  • Fix a zip file and remove all files which are not working in the official Qlik Sense 2.1.1 release

Prerequisites

Node.js + NPM installed on your system.

Install

Install the tool globally.

npm install ext-check -g  

Run

Run ext-check in the command line using one of the following options:

Options

  • --help (alias -h) - Show the help
  • --list (alias -l) - List all file-extensions and their usage count in the given zip file
  • --listdir (alias -ldir) - List all file-extensions in a directory, grouped by zip file
  • --listdetails (alias -ld) - List all files where a specific file extension is used
  • --fix (alias -f) - Whether to fix the file or not (defaults to false) -- NOT WORKING YET
  • --backup (alias -b) - Whether to create a backup or not (defaults to true)

Usage Examples

Just check

Just check the visualization extension, the output in the command line will indicate if there is a problem which needs to be fixed.

ext-check "myExtension.zip"
or 
ext-check "c:\MyExtensions\myExtension.zip"

List file-extensions used

ext-check "myExtension.zip" --list
or
ext-check "myExtension.zip" -l

List file-extensions used for each zip file in a directory

ext-check "myExtension.zip" --listdir
or 
ext-check "myExtension.zip" -ldir

List all files for a specific file extension

ext-check "myExtension.zip" --listdetails=".json"
or 
ext-check "myExtension.zip" --ld=".json"

Check and fix

Checks the extension, fixes potential problems in the source zip-file (create a backup with %filename%.bak before) immediately.

ext-check "myExtension.zip" --fix

Check and fix, no backup

ext-check "myExtension.zip" --fix --backup=false

Get the MIME type for a file extension

ext-check ".json" --mime

Known limitations

  • Currently the tool is developed especially to validate scenarios around Qlik Sense 2.1.1 (but this might change in the future)
  • Password protected zip files are currently not supported

Contribution

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue. The process for contributing is outlined below:

  1. Create a fork of the project
  2. Work on whatever bug or feature you wish
  3. Create a pull request (PR)

I cannot guarantee that I will merge all PRs but I will definitely evaluate them all.

Author

Stefan Walther

License

Released under the MIT license.


This file was generated by verb-cli on October 14, 2015.