# @unisharp/pug-inheritance

> Pug Inheritance

Latest version **1.0.4** (published 2017-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @unisharp/pug-inheritance
pnpm add @unisharp/pug-inheritance
yarn add @unisharp/pug-inheritance
bun add @unisharp/pug-inheritance
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2017-06-27 |
| First published | 2016-12-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | UniSharp Ltd. |
| Maintainers | unisharp, youchenlee |
| Keywords | pug, inheritance |

## Links

- npm: https://www.npmjs.com/package/@unisharp/pug-inheritance
- Repository: https://github.com/UniSharp/pug-inheritance
- Homepage: https://github.com/UniSharp/pug-inheritance#readme
- Issues: https://github.com/UniSharp/pug-inheritance/issues
- npm.io page: https://npm.io/package/@unisharp/pug-inheritance

## Dependencies (4)

- [glob](https://npm.io/package/glob.md) ^7.1.1
- [pug-walk](https://npm.io/package/pug-walk.md) ^1.0.0
- [pug-lexer](https://npm.io/package/pug-lexer.md) ^2.3.0
- [pug-parser](https://npm.io/package/pug-parser.md) ^2.0.1

## Recent versions

- 1.0.4 (latest) — 2017-06-27
- 1.0.3 — 2017-06-27
- 1.0.2 — 2017-06-13
- 1.0.1 — 2016-12-06
- 1.0.0 — 2016-12-05
- 0.1.0 — 2016-12-04

## README

# Pug Inheritance - Another Implementation by UniSharp

[![Build Status](https://travis-ci.org/UniSharp/pug-inheritance.svg?branch=master)](https://travis-ci.org/UniSharp/pug-inheritance)

Get files which include or extend the given [Pug](https://github.com/pugjs/pug) file.

## Installation

### Via npm

```bash
npm install @unisharp/pug-inheritance --save
```

### Via yarn

```bash
yarn add @unisharp/pug-inheritance
```

## Usage

```javascript
const PugInheritance = require('@unisharp/pug-inheritance');

let pugInheritance = new PugInheritance('resources/pug/**/*.pug');
```

### Inheritance files

```javascript
console.log(pugInheritance.getInheritance('resources/pug/layout/app.pug'));
```

#### Output

```
[
    'resources/pug/layout/app.pug',
    'resources/pug/index.pug',
    'resources/pug/page.pug'
]
```

## Integration with [gulp-pug](https://github.com/pugjs/gulp-pug)

See [@unisharp/gulp-pug-inheritance](https://github.com/UniSharp/gulp-pug-inheritance).

## License

[MIT](https://unisharp.mit-license.org/)

---
_Source: https://npm.io/package/@unisharp/pug-inheritance · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
