# page-object-loader

> Dynamic page object loader

Latest version **1.1.0** (published 2017-09-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install page-object-loader
pnpm add page-object-loader
yarn add page-object-loader
bun add page-object-loader
```

## 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.1.0 |
| Published | 2017-09-29 |
| First published | 2017-09-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Giuseppe DiBella |
| Maintainers | gd46 |
| Keywords | protractor, testing, page object |

## Links

- npm: https://www.npmjs.com/package/page-object-loader
- Repository: https://github.com/gd46/page-object-loader
- Homepage: https://github.com/gd46/page-object-loader#readme
- Issues: https://github.com/gd46/page-object-loader/issues
- npm.io page: https://npm.io/package/page-object-loader

## Dependencies (2)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2017-09-29
- 1.0.1 — 2017-09-17
- 1.0.0 — 2017-09-17

## README

# Page Object Loader

[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

## Install

```
npm install page-object-loader
```

## Goals

To dynamically require page objects any where in a project. 

## Format

This page object loader will return an object with the following pattern: 

```javascript
pages = {
	pageName : require(path)
}
```

This also enforces page object names to follow the following patterns: 
1. First letter must be capital
2. Page name must be camel case
3. No need to hage page as apart of the name

### Examples

#### Good Examples

```
function Example () {
	
}

function ExampleTest () {
	
}
```


#### Bad Examples

```
function ExamplePage () {
	
}

function examplePage () {
	
}

function example () {
	
}
```

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