
Product
Introducing Custom Tabs for Org Alerts
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.
parser-cache
Advanced tools

express.js inspired template-parser manager.
npm i parser-cache --save
var parsers = require('parser-cache');
Create a new instance of Engines, optionally passing the default options to use.
options {Object}: Default options to use.Example:
var Engines = require('parser-cache')
var parsers = new Engines()
Register the given view parser callback fn as ext.
ext {String}fn {Function|Object}: or optionsoptions {Object}var consolidate = require('consolidate')
parsers.register('hbs', consolidate.handlebars)
Load an object of parsers onto the cache. Mostly useful for testing, but exposed as a public method.
obj {Object}: Engines to load.parsers.load(require('consolidate'))
Return the parser stored by ext. If no ext is passed, the entire cache is returned.
ext {String}: The parser to get.var consolidate = require('consolidate')
parser.set('hbs', consolidate.handlebars)
parser.get('hbs')
// => {render: [function], renderFile: [function]}
Remove ext from the cache, or if no value is specified the entire cache is reset.
Example:
parsers.clear()
Set or get an option.
key {String}value {*}parsers.option('a', true)
parsers.option('a')
// => true
Extend the options with the given obj.
obj {Object}parsers.extend({a: 'b'})
parsers.option('a')
// => 'b'
Jon Schlinkert
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license
This file was generated by verb-cli on August 10, 2014.
FAQs
Cache and load parsers, similiar to consolidate.js engines.
The npm package parser-cache receives a total of 105 weekly downloads. As such, parser-cache popularity was classified as not popular.
We found that parser-cache 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.

Product
Create and share saved alert views with custom tabs on the org alerts page, making it easier for teams to return to consistent, named filter sets.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.