Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/makotot/is-assemble-partial-exist
Check if the assemble partial is found in the partial directories
https://github.com/makotot/is-assemble-partial-exist
Last synced: 28 days ago
JSON representation
Check if the assemble partial is found in the partial directories
- Host: GitHub
- URL: https://github.com/makotot/is-assemble-partial-exist
- Owner: makotot
- Created: 2015-09-17T01:22:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-27T14:06:23.000Z (about 9 years ago)
- Last Synced: 2024-10-19T12:51:09.627Z (about 1 month ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/is-assemble-partial-exist
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# is-assemble-partial-exist
[![npm version](http://img.shields.io/npm/v/is-assemble-partial-exist.svg?style=flat-square)](https://github.com/makotot/is-assemble-partial-exist)
[![travis](http://img.shields.io/travis/makotot/is-assemble-partial-exist.svg?style=flat-square)](https://github.com/makotot/is-assemble-partial-exist)
[![dependencies](http://img.shields.io/david/makotot/is-assemble-partial-exist.svg?style=flat-square)](https://github.com/makotot/is-assemble-partial-exist)
[![devDependencies](http://img.shields.io/david/dev/makotot/is-assemble-partial-exist.svg?style=flat-square)](https://github.com/makotot/is-assemble-partial-exist)
[![License](http://img.shields.io/npm/l/is-assemble-partial-exist.svg?style=flat-square)](https://github.com/makotot/is-assemble-partial-exist)> Check if the [assemble](http://assemble.io/) partial is found in the partial directories
## Install
```sh
$ npm i --save is-assemble-partial-exist
```## Usage
In assemble plugin:
```js
var isPartialExist = require('is-assemble-partial-exist');module.exports = function (params, cb) {
isPartialExist(params, 'header', function (err, data) {
console.log(data);
// => truecb();
});
};module.exports.options = {
stage: 'render:post:pages'
};
```## License
MIT