Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
apg-js
obsoletes apg-js2
, apg-js2-lib
, apg-js2-exp
, apg-js2-api
, apg-conv
and apg-conv-api
. It changes them in two significant ways.
apg-js
is the JavaScript version of APG, an ABNF Parser Generator. APG generates recursive-descent parsers directly from a superset of ABNF (SABNF). Visit the APG website for a complete overview of APG and SABNF.
This package is meant to assist other parsing applications and is normally not installed by itself, rather installed along with those other applications. For details and many examples of using of the libraries, both in node.js and browser applications, see apg-js-examples
at GitHub or npmjs.
However, it does provide access to two, node.js applications, apg
and apg-conv
.
apg
is the parser generator. To see its usage run,
npm run apg
apg-conv
is a data conversion application. To see its usage run,
npm run apg-conv
This package also contains four libraries that can be used in either node.js or browser applications. The libraries depend upon one another and the dependency tree looks like so:
apg-exp
|- apg-api
|-|- apg-lib
|-|-|- apg-conv-api
Each of the libraries is bundled for browser use along with some special styles.
Each bundle contains all of its dependencies explicitly. That is, if a browser application needs both apg-api
and apg-lib
, only the apg-api
bundle need be scripted into the page.
The library and css bundles are in the ./dist
directory.
./dist/apg-exp-bundle.js
./dist/apg-api-bundle.js
./dist/apg-lib-bundle.js
./dist/apg-conv-api-bundle.js
./dist/apg-lib-bundle.css
The bundles can all be regenerated with:
npm install -g browserify@17.0.0
npm install -g minify@7.0.1
npm install -g less@4.1.1
npm run bundle-apg-conv-api
npm run bundle-apg-lib
npm run bundle-apg-api
npm run bundle-apg-exp
npm run bundle-apg-lib-css
The code documentation is in docco format and can be generated with:
npm install -g docco@0.8.1
./bin/docco-gen.sh
(Higher versions of docco may work, but some lower versions definitely do not.)
The documentation is then at ./docs/index.html
or see it here at the APG website.
FAQs
JavaScript APG, an ABNF Parser Generator
The npm package apg-js receives a total of 27,385 weekly downloads. As such, apg-js popularity was classified as popular.
We found that apg-js demonstrated a healthy version release cadence and project activity because the last version was released less than 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.