
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@hashml/hashml
Advanced tools
npm install @hashml/hashml
Hashml is a markup language. It's more structured than Markdown, but less verbose than XML. Here's what this README would look like in Hashml:
#document Hashml parser
#section Installation
#code bash
npm install @hashml/hashml
#section What is Hashml?
Hashml is a markup language. It's more structured than Markdown, ...
You can read more about the Hashml language in the docs.
To parse a Hashml document from a Typescript program:
import { parse, ParsedSchema } from "@hashml/hashml";
const file = "#tag example";
const schemaFile = "#block tag"
const schemaSchemaFile = "#block block";
// Parse with a schema:
const schemaSchema = new ParsedSchema(parse(schemaSchemaFile));
const schema = new ParsedSchema(parse(schemaFile, schemaSchema));
const doc = parse(file, schema)
// ... or parse without a schema:
const noSchemaDoc = parse(file)
Parsing with a schema allows you to define syntactic sugar in the schema, like default elements and inline syntactic sugar.
To validate the document using the schema, use the validateBlock method on the schema. This returns an array of validation errors. If there are no errors, it will return an empty array.
const errors = schema.validateBlock(doc);
To export the document to JSON or XML:
import { toXML, toJSON} from "@hashml/hashml";
const xml: string = toXML(doc);
const json: string = toJSON(doc);
See the @hashml/cli package.
FAQs
Hashml parser
The npm package @hashml/hashml receives a total of 0 weekly downloads. As such, @hashml/hashml popularity was classified as not popular.
We found that @hashml/hashml 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.