# mac-window

> Elements like mac's window

Latest version **0.0.1** (published 2017-03-26) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install mac-window
pnpm add mac-window
yarn add mac-window
bun add mac-window
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-03-26 |
| First published | 2017-03-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | nju33 |
| Maintainers | nju33 |
| Keywords | ui, browser, commonjs, es, window, mac |

## Links

- npm: https://www.npmjs.com/package/mac-window
- Repository: https://github.com/nju33/mac-window
- Homepage: https://github.com/nju33/mac-window#readme
- Issues: https://github.com/nju33/mac-window/issues
- npm.io page: https://npm.io/package/mac-window

## 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
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-03-26

## README

# MacWindow

<!-- [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)

[![Build Status](https://travis-ci.org/nju33/mac-window.svg?branch=master)](https://travis-ci.org/nju33/mac-window) -->

Elements like mac's window.


![screenshot](https://github.com/nju33/mac-window/raw/master/images/screenshot.png?raw=true)

## Install or Download

```sh
yarn add mac-window
npm i -S mac-window
```

Or access to [releases page](https://github.com/nju33/mac-window/releases).
Then, download the latest version.

## Usage

First, if you read as a separate file.

```html
<script src="/path/tp/mac-window.js"></script>
```

Markup and script are like this.

```html
<div id="mac-window" style="
  position: relative;
  width: 100%;
  height: 70vh;
">
  <!-- Inner contents -->
</div>
```

```js
// For es
import MacWindow from 'mac-window';
new MacWindow({target: document.getElementById('mac-window')});
```

As an important point, there are only two.
It is to specify the `position:relative` and the size (`width`, `height`, ...) as the container element.

Then, please adjust so that the inner element is just fine.

### Example

- `test/fixtures/index.js`
- `example/webpack/index.js`

## LICENSE

The MIT License (MIT)

Copyright (c) 2017 nju33 <nju33.ki@gmail.com>

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