
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
mark-to-json
Advanced tools
Parse the markdown into a JSON static file, also support multiple-level directories.
# npm
npm i mark-to-json --save
# yarn
yarn add mark-to-json
API | Required | default | Description |
---|---|---|---|
token | true | Your markdown file content including yaml matter | |
dest | false | ./default.json | Your JSON static file will be created at the place based on the current nodejs working path |
extraHeader | false | {} | It will be mix in JSON file if you want to add some extra data to JSON static file |
contentKey | false | content | It will be the key of markdown content part in JSON static file |
filter | false | It can be used to change output schema (sample). |
const Mtj = require('mark-to-json')
new Mtj({
token: '---\ntitle: Hello world\n---\nThis is content.',
dest: './writings/hello-world.json',
extraHeader: {
errno: 0
},
contentKey: 'content',
// Only work with one parameter: schema
filter (schema) {
// do something
// `return` is optional
}
})
// You can find your json file at the './writings/hello-world.json' based on the current nodejs working path
The sample output file: here
FAQs
parse markdown to json
The npm package mark-to-json receives a total of 5 weekly downloads. As such, mark-to-json popularity was classified as not popular.
We found that mark-to-json 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.