UNPKG

781 BMarkdownView Raw
1# hadron-compile-cache [![][travis_img]][travis_url] [![][npm_img]][npm_url]
2
3> Hadron Compile Cache
4
5## Installation
6
7```
8npm install --save hadron-compile-cache
9```
10
11## Usage
12
13```javascript
14'use strict';
15
16const path = require('path');
17const CompileCache = require('hadron-compile-cache');
18const home = path.join('path', 'to', 'my', 'root');
19
20CompileCache.setHomeDirectory(home);
21
22require('mysource.jsx'); // Will be hooked into the cache.
23```
24
25## License
26
27Apache 2.0
28
29[travis_img]: https://img.shields.io/travis/mongodb-js/hadron-compile-cache.svg?style=flat-square
30[travis_url]: https://travis-ci.org/mongodb-js/hadron-compile-cache
31[npm_img]: https://img.shields.io/npm/v/hadron-compile-cache.svg?style=flat-square
32[npm_url]: https://www.npmjs.org/package/hadron-compile-cache