
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
An ABNF Parser Generator - generates recursive-descent parsers from grammars written in a superset of Augmented Backus-Naur Form (ABNF)
##JavaScript APG
Version: 2.0
Description:
APG is an acronym for "ABNF Parser Generator". Version 2.0 is a complete re-write of version 1.0 (apg-js)with the following objectives in mind:
Its features include:
AND
& NOT
syntactic predicate operators for conditional parsing based on specified, look-ahead phrasesInstallation:
Requires node.js and npm
clone https://github.com/ldthomas/apg-js2.git apg
cd apg
npm install -g ./
apg -v
or just
npm install -g apg
apg -v
You should see something like:
JavaScript APG 2.0, Copyright (C) 2105 Lowell D. Thomas, all rights reserved
Note: If there is a name conflict (for example, Automated Password Generator) there are a couple of options for resolving the conflict.
npm prefix -g
) is left-most in the $PATH variable and clear the cache with
hash -r
/my/npm/prefix
, create an aliasalias apg='/my/npm/prefix/bin/apg'
Examples:
See apg-js2-examples for examples of running JavaScript APG 2.0 and the parsers it generates.
Documentation:
To be done.
For now, run apg -h
for a list of options and you can look at the code in the examples.
Copyright:
Copyright © 2015 Lowell D. Thomas, all rights reserved
License:
Unlike all previous releases of APG, JavaSript APG, Version 2.0 is released with the more permissive BSD-3-Clause license.
FAQs
(Deprecated: use apg-js instead.) An ABNF Parser Generator - generates recursive-descent parsers from grammars written in a superset of Augmented Backus-Naur Form (ABNF)
The npm package apg receives a total of 1,402 weekly downloads. As such, apg popularity was classified as popular.
We found that apg 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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.