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

obsidian-file

v3.0.2

Published

Library and CLI tool to read and write the Obsidian Project file format

Downloads

1,585

Readme

Obsidian Project File

Lint and test NPM Version License Discord

Library and CLI tool to read and write the Obsidian Project file format.

Install

npm install obsidian-file

obsidian-file CLI tool

Usage

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

Get informations about a project file

obsidian-file -d project.wprj

Extract a project

obsidian-file -xf project.wprj [outputdir/]

Create a project

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.

Library

TODO

File format

See doc/obsidian-project-file-format.md.

Contributing

Questions

If you have any question, you can:

Bugs

If you found a bug, please open an issue on Github with as much information as possible.

Pull Requests

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.

Coding Style / Lint

To check coding style, run the follwoing command:

npx grunt jshint

Tests

Tu run tests, use the following command:

npx grunt test

Changelog

  • [NEXT] (changes on master that have not been released yet):

  • v3.0.2:

    • Replaced deprecated mocha-phantomjs by mocha-headless-chrome to run tests (@jbghoul, #26)
    • Updated dependencies (@jbghoul, #26)
  • v3.0.1:

    • Fix implicit and deprecated usages of Buffer (@tneullas, #18, #19)
    • Updated dependencies
  • v3.0.0:

    • Pako replaced by zlib to improve perfs on Node.js (pako is still used in browser when the module is built using Browserify) (#17)
  • v2.0.4:

    • Updated dependencies
  • v2.0.3:

    • Fixed documentation errors
  • v2.0.2:

    • Updated cli dependencie
  • v2.0.1:

    • Updated dependencies
  • v2.0.0:

    • First public release