Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
obsidian-file
Advanced tools
Library and CLI tool to read and write the Obsidian Project file format
Library and CLI tool to read and write the Obsidian Project file format.
npm install obsidian-file
Usage:
obsidian-file [OPTIONS] [ARGS]
Options:
-x, --extract Extract the sections of the given project
-c, --create Create a project file from the given files
-d, --detail Get informations about the given project file
-f, --file FILE The project file to read or write
-t, --type [STRING] Project type (Default is GENERIC)
-m, --metadata FILE JSON file that contains project's metadata
-M, --metadata-format [N]Format of the metadata section (0: JSON, 1:
JSON+Deflate) (Default is 1)
-p, --project FILE JSON file that contains the seriallized project
-P, --project-format [N]Format of the project section (0: JSON, 1:
JSON+Deflate) (Default is 1)
-i, --index FILE JSON file that contains the blob index
(automatically built by default)
-I, --index-format [N] Format of the blob index section (0: JSON, 1:
JSON+Deflate) (Default is 1)
-k, --no-color Omit color from output
--debug Show debug information
-h, --help Display help and usage details
obsidian-file -d project.wprj
obsidian-file -xf project.wprj [outputdir/]
obsidian-file -cf project.wprj [files]
obsidian-file -t PROJTYPE -cf project.wprj [files]
NOTE: files containing metadata
, project
and blobIndex
sections can
be passed explicitly with the -m
, -p
and -i
options, or can be listed
with other files but must me named __metadata__.json
, __project__.json
and
__blobindex__.json
.
TODO
See doc/obsidian-project-file-format.md.
If you have any question, you can:
If you found a bug, please open an issue on Github with as much information as possible.
Please consider filing a bug before starting to work on a new feature. This will allow us to discuss the best way to do it. This is of course not necessary if you just want to fix some typo or small errors in the code.
To check coding style, run the follwoing command:
npx grunt jshint
Tu run tests, use the following command:
npx grunt test
[NEXT] (changes on master that have not been released yet):
v3.0.2:
v3.0.1:
v3.0.0:
v2.0.4:
v2.0.3:
v2.0.2:
cli
dependenciev2.0.1:
v2.0.0:
FAQs
Library and CLI tool to read and write the Obsidian Project file format
We found that obsidian-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.