open-index/open-npm huggingface dataset:
npm package: @garygrossgarten/wach
Description: simple cli tool to prevent your mac from going to sleep when closing the lid. 👀
Author: garygrossgarten
Latest version: 1.2.1

# wach
> prevent your mac from going to sleep when closing the lid. 👀.

[![npm version](https://badge.fury.io/js/%40garygrossgarten%2Fwach.svg)](https://badge.fury.io/js/%40garygrossgarten%2Fwach)
![](https://img.shields.io/david/garygrossgarten/wach.svg?style=flat)
![](https://img.shields.io/npm/l/@garygrossgarten/wach.svg?style=flat)

This is a simple cli tool to prevent your MacBook from going to sleep when closing the lid. 
Use it instead of running tools that require a Kernel Extension. 

*Tested on macOS Mojave 10.14.2*


![](header.png)

## Installation

```sh
npm install -g @garygrossgarten/wach
```

## Usage example
<b>Enable</b> sleep prevention ☕
```sh
wach enable
```
If you want to <b>disable</b> sleep prevention again 🛏 
```sh
wach disable
```

To get a report of all the current Power Management settings 🔋
```sh
wach report
```

## Development setup

1. Clone the repository and cd into the directory
2. run `npm install`
3. run `npm run build`
4. run the application by using `node .` or `npm run start`   

## License

Distributed under the MIT license. See ``LICENSE`` for more information.

[https://github.com/garygrossgarten/wach](https://github.com/garygrossgarten/wach/)
npm package: @garyhtou/prettier-config
Description: Prettier configurations via npm
Author: Gary Tou
Latest version: 1.0.1

# `@garyhtou`'s Prettier Configurations

## Install

```
npm install @garyhtou/prettier-config --save-dev
```

or add to `package.json`:

```json
{
	// ...
	"prettier": "@azz/prettier-config"
}
```

## Usage

After installing, add the following to `.prettierrc.js`

```javascript
module.exports = require('@garyhtou/prettier-config');
```

---

[prettier.io](https://prettier.io/)

Inspired by [@azz](https://github.com/azz/prettier-config)
npm package: @garyliao/pattern-lock-js-advanced
Description: An pattern lock project forked from @tympanix/pattern-lock-js, but with more options and functions to operate with.
Author: garyliao
Latest version: 1.0.1

# pattern-lock-js
A passcode mechanism built with scalable vector graphics (SVG) and javascript for modern web application with mobile and tablet support

## [Demo](https://tympanix.github.io/pattern-lock-js/)

## Install
Install using npm:
```
npm i @garyliao/pattern-lock-js-advanced
```

## Getting started
Import dependecies:
```html
<script src="jquery.js" charset="utf-8"></script>
```
Import the module:
```html
<link rel="stylesheet" href="patternlock.min.css">
<script src="patternlock.min.js" charset="utf-8"></script>
```

Design your desired svg pattern (or use the default one below). Your svg graphics must as a minimum have the `patternlock` class and three groups `<g>` with the classes `lock-actives`, `lock-lines` and `lock-dots`
```html
<svg class="patternlock" id="lock" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
    <g class="lock-actives"></g>
    <g class="lock-lines"></g>
    <g class="lock-dots">
        <circle cx="20" cy="20" r="2"/>
        <circle cx="50" cy="20" r="2"/>
        <circle cx="80" cy="20" r="2"/>

        <circle cx="20" cy="50" r="2"/>
        <circle cx="50" cy="50" r="2"/>
        <circle cx="80" cy="50" r="2"/>

        <circle cx="20" cy="80" r="2"/>
        <circle cx="50" cy="80" r="2"/>
        <circle cx="80" cy="80" r="2"/>
    </g>
</svg>
```
Initialise the component
```javascript
var lock = new PatternLock("#lock", {
  onPattern: function(result) {
    console.log(result.rspCode);
    // check rspCode equals 0000 before you retrieve result.pattern
   }
});
```

## Options
The returned object from `new PatternLock(...)` has the following utility functions:
* **`clear()`** Clears the current pattern
* **`success()`** Validates the pattern as correct
* **`error()`** Validates the pattern as incorrect
* **`switchHide()`** Hide or Show line when running 
* **`getPattern()`** Return an object contains rspCode and pattern result.    
  * `0000` -> Success
  * `1001` -> Input nodes number invalid(Smaller than minimun number)
  * `1002` -> Input nodes number invalid(Exceed manimun accepted number)

The pattern lock constructor accepts a second argument - an object literal with the following properties:

* **`onPattern: function`** Called when a pattern is drawn with the pattern as argument. Returning true/false validates/invalidates the pattern - the same as calling `success()` and `error()`. The context is set to the pattern lock instance itself.
* **`allowRepeat: boolean`** Defines if nodes can be selected repeatly(But can't select one node continuosly). Default: `true`
* **`hideLine: boolean`** Hide the lines if needed. Default: `false`
* **`checkMin: boolean`** Defines if need check min input nodes. Default: `true`
* **`checkMax: boolean`** Defines if need check max input nodes. Default: `true`
* **`min: number`** Defines the minimum valid numbers of input nodes. Default: `4`
* **`max: number`** Defines the maximun valid numbers of input nodes. Default: `9`
npm package: @garylm/number-formatter
Description: A small library that adds commas to numbers
Author: Gary Mendonca
Latest version: 0.1.1

Number Formatter
=========

[![Build Status](https://travis-ci.org/mendoncagary/number-formatter.svg?branch=master)](https://travis-ci.org/mendoncagary/number-formatter)

[![Coverage Status](https://coveralls.io/repos/github/mendoncagary/number-formatter/badge.svg)](https://coveralls.io/github/mendoncagary/number-formatter)

A small library that adds commas to numbers

## Installation

  `npm install @garylm/number-formatter`

## Usage

    var numFormatter = require('@garylm/number-formatter');

    var formattedNum = numFormatter(35666);
  
  
  Output should be `35,666`


## Tests

  `npm test`

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.