limulus / jarfile Goto Github PK
View Code? Open in Web Editor NEWA Node.js module for getting information about a jar file.
License: MIT License
A Node.js module for getting information about a jar file.
License: MIT License
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?
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
:
[email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected]
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.
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');
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 ?
Steps to reproduce:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.