
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
node-doxide
Advanced tools
A tool for transforming documentation in JavaScript files to markdown.
A tool for transforming jsDoc style documentation in JavaScript files into API documentation in markdown.
$ npm install --save-dev node-doxide -g
There are a few different approaches for using Doxide for your application. You can either create a doxyfile.json
to define a set of files to scan and where to write the output to, or you can manually define these arguments in the command line.
$ doxide --help
Usage: doxide <command>
Possible <commands> could be:
doxide Compiles based on your doxyfile.json
doxide --h Prompts the help screen
doxide --help Prompts the help screen
doxide <file> Compiles <file>
doxide <directory> Compiles all valid files in <directory>
doxide <file1> -o <file2> Compiles <file1> and stores output in <file2>
doxide <directory> -o <file> Compiles all valid files in <directory> and stores output in <file>
$ doxide path/to/file -o path/to/output
A doxyfile.json
consists of a few main fields:
The targets
field consist of an array of files that are to be parsed by Doxide. Being an array, it can consist of a single file or multiple files. You can also include a path to a directory here, and it's important to note that the directory will include all subdirectories within.
The output
field is a single string of the name of the file to write the output to. If no output destination is specified, the compiler will default to writing the output to the console.
Example of the doxyfile.json
being used for Needle which parses every source file and then stores the results into a single markdown file:
{
"targets" : [
"./src"
],
"output" : "./docs/doxide_output.md"
}
Using a doxyfile.json
$ cd root/director/with/doxyfile
$ doxide
Using the cli arguments
$ doxide main.js component.jsx router.js -o docs/output.md
[02:03:28] Attempting to fetch files
[02:03:28] Working on 3 files
[02:03:28] Cleared docs/output.md prepping for output
[02:03:28] Successfully wrote all of main.js documention from to output.md
[02:03:28] Successfully wrote all of component.jsx documention from to output.md
[02:03:28] Successfully wrote all of router.js documention from to output.md
[02:03:28] Finished after 15 ms
While parsing through the documentation comments in a file, sometimes there hasn't been enough information provided for a particular block to be able to fill out the markdown function template. When this happens, we simply skip over that block and let you know that we've done so.
"Missing fields" could be something like a documentation block that wasn't given a function to document, but for things like a missing type definition in a param
tag, we will throw an error.
If you try to set your output destination to a file within a directory that doesn't yet exist, we'll throw an error. Sending the output to a non existent file is fine, so long as we can get there. The directory must first exist.
Copyright (c) 2015-Present Nick Zuber
FAQs
A tool for transforming documentation in JavaScript files to markdown.
The npm package node-doxide receives a total of 1 weekly downloads. As such, node-doxide popularity was classified as not popular.
We found that node-doxide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.