Giter Club home page Giter Club logo

jarfile's People

Contributors

limulus avatar ricksbrown avatar stovmascript avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

jarfile's Issues

Fix graceful-fs Node v7 deprecation warnings on install

Here’s the warning:

[email protected]: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible.

And here is the npm ls graceful-fs:

Hopefully all that is necessary is upgrading ls-archive and tar. We may also need to update the engines property of package.json to match that of the dependency tree.

Option for getting a manifest entry synchronously?

I'd like to use this module inside of a webpack config file where I have to synchronously resolve all of the values inside of module.exports. Is there any way or workaround for getting the manifest entries synchronously?

Can't delete the jar once I read the Manifest

Hello!
Thanks for the job, I tested the package and it worked well... until I would delete the jar.
I use jarfile in an electron application and once I read infos from a jar, I need to delete it.
However, it seems the jar stays open, or used somewhere, because while the application is running I get an error when I try to delete it :
Error: EPERM: operation not permitted, lstat '<path_of_jar>'

Do you have any idea about this ?

Process not closed after getting info

I was trying to get some info from a jar file, after that I tried to delete that file (filePath) but I got an error telling I didn't have the required permission, as the file was still running. I'm quite sure it's the fetchJarAtPath method.

      const jarFile = await promisify(jarFile.fetchJarAtPath)(filePath);
      const mainClass = jarFile.valueForManifestEntry('Main-Class');

Failed to parse valid manifest file due to incorrect regular expression

Steps to reproduce:

  • parse a valid jdbc driver jar file.
  • the manifest.mf file contains entries as bellow:
    SHA-256-Digest: i68JQ1kocrRMFY73CPfLbGDIDnLKYDutWCyV2OVPs1M=

Seems that the problem is in the regular expression in Jar.js file:
// Extract the name and value from entry line
var pair = line.match(/^([a-z_-]+): (.*)$/i)

The expression could be more generic to extract pair.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.