simple-parsing
v0.0.25
Published
simple parsing helpers
Downloads
6
Readme
Purpose of this Project
I do a lot of "partial parsing" of various files (e.g. .xml, .swift) to extract information for various purposes (e.g. generate code from extracted info).
There are MANY MANY full-blown parsers, that do many many things, and do these very very well! But these open-source parsers mean (lots of) extra dependancies, and most come with heavy learning curves and long-term commitments/investments.
I implemented a simple set of parsing utilities which simplify writing VERY SIMPLE parsers for the primary purpose of extracting some information out of easy-enough-to-parse source files (e.g. xml files)
Notes on NPM (pita)
- be wary of npm being
npm installed
on system (e.g. in ~/node_modules/().bin|npm))- will be version used when running scripts NOT the global system-installed version (so might interfere with scripts if older version not compatible with newer node version)
- to authenticate publishing, need to set Granular Auth Token in ~/.npmrc file as:
//registry.npmjs.org/:_authToken=npm_TYB...KJ
- more info here: https://docs.npmjs.com/about-access-tokens
- set them up here: https://www.npmjs.com/settings/{your-user-id-here}}/tokens/