![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
example-docstring-parser
Advanced tools
This package contains a parser for a custom docstring syntax
A source code docstring parser for C-like (including C++, JavaScript, Rust) and Python-like syntax.
A text is considered a named fragment when it is located between // BEGIN FRAGMENT: <name>
and // END FRAGMENT
, <>
not included. This syntax is case-sensitive.
Don't use special characters in names; snakeCase is preferrable.
Fragments can be included in one another. In that case the lines matching // BEGIN FRAGMENT: <name>
and // END FRAGMENT
are removed.
Elements between // BEGIN ESCAPE
and // END ESCAPE
are excluded unconditionally from the tutorial.
Type npm install example-docstring-parser --save-dev
if you want to install it as a development dependency of your package.
Type npm install example-docstring-parser -g
to install the parser globally.
import { ExampleParser } from "example-docstring-parser"
let text = `
// BEGIN FRAGMENT: Test
This text is displayed
// BEGIN ESCAPE
OR IS IT?
// END ESCAPE
// END FRAGMENT
`
let parser_inst = new ExampleParser(text)
console.log(parser_inst.mapLines())
FAQs
This package contains a parser for a custom docstring syntax
The npm package example-docstring-parser receives a total of 0 weekly downloads. As such, example-docstring-parser popularity was classified as not popular.
We found that example-docstring-parser 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.