package-json-to-template
v1.0.2
Published
Parses package.json data and prints it in the given template (HTML, LaTeX, etc.)
Downloads
3
Readme
package-json-to-template
Parses package.json data and prints it in the given template (HTML, LaTeX, etc.)
Use Case
- Websites
- LaTeX
- Documentations
- Continous Integration
- etc.
Usage
CLI
npm i -g package-json-to-template
package-json-to-template [-t default/latex.template] [--usebrackets] [--tojson]
NodeJS
const PackageJsonToTemplate = require('package-json-to-template');
const data = await PackageJsonToTemplate({
template: `
{% for dependency in packageJson.dependencies %}
((dependency.name))
{% endfor %}
`,
packageJsonPath: './package.json',
useBrackets: true,
toJson: false
});
Example
See EXAMPLE.md
Installation
See INSTALLATION.md