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.
Index a nested directory of markdown files for live preview:
$ npm install -g markfound # might need to prefix with sudo
$ cd directory/containing/markdown/files
$ markfound
then navigate to http://localhost:4500
to see the index of markdown files:
Follow a link for a preview which automatically updates as you edit the markdown:
On its first run markfound copies the default configuration file to
$XDG_CONFIG_HOME/markfound.conf
which defaults to
$HOME/.config/markfound.conf
.
This is a leanconf file with the following settings:
basePath:
- (required) path to the directory containing the markdown files.
Set to an absolute path to let markfound be run from anywhere.
Default is the current directory.
names
- (required) a list of one or more wildcard patterns of form *.ext
where ext
is the extension to include.
Place each pattern on its own line indented to the same level.
excludes
- (optional) a list of exclusion patterns passed to the Linux
find -path
option.
Place each path on its own line indented to the same level.
stylusPath:
- (optional) path to a stylus file containing custom styling.
For example, to increase the spacing between index list items and add borders
around code elements, create a file markfound.styl
alongside markfound.conf
with this content:
.index
li
margin 1em
.markdown-body
code
border solid grey 1px
and add setting stylusPath: ./markfound.styl
to markfound.conf
.
$ markfound --help
Usage: markfound [Options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --config-path [path] path to configuration file (default:~/.config/markfound.conf)
-p, --port [port] listening port (default:4500)
-v, --verbose emit detailed trace for debugging
$ git clone --branch=dev https://github.com/dizzib/markfound.git
$ cd markfound
$ npm install # install dependencies
$ npm test # build all and run tests
$ npm start # start the task runner
FAQs
Recursively index directories of markdown files for live preview
The npm package markfound receives a total of 1 weekly downloads. As such, markfound popularity was classified as not popular.
We found that markfound 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’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.