# jyglobal

> global functions for faster development and testing.

Latest version **1.0.2** (published 2021-06-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install jyglobal
pnpm add jyglobal
yarn add jyglobal
bun add jyglobal
```

## 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.2 |
| Published | 2021-06-28 |
| First published | 2021-06-26 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | JY |
| Maintainers | jydev |
| Keywords | jy, global |

## Links

- npm: https://www.npmjs.com/package/jyglobal
- Repository: https://github.com/jyydev/npm-jyglobal
- Homepage: https://github.com/jyydev/npm-jyglobal#readme
- Issues: https://github.com/jyydev/npm-jyglobal/issues
- npm.io page: https://npm.io/package/jyglobal

## Recent versions

- 1.0.2 (latest) — 2021-06-28
- 1.0.1 — 2021-06-26
- 1.0.0 — 2021-06-26

## README

![GitHub package.json version](https://img.shields.io/github/package-json/v/jyydev/npm-jyglobal?logo=npm)
![GitHub repo size](https://img.shields.io/github/repo-size/jyydev/npm-jyglobal?label=size&logo=github)
![GitHub contributors](https://img.shields.io/github/contributors/jyydev/npm-jyglobal?color=orange&logo=github)
![GitHub last commit](https://img.shields.io/github/last-commit/jyydev/npm-jyglobal?logo=github)
![GitHub commit activity](https://img.shields.io/github/commit-activity/m/jyydev/npm-jyglobal?logo=github)

# About

jyglobal is a personal npm module for speeding up development, testing and debugging stages.

## Installation

In terminal (navigate to your project folder first):

```
npm i jyglobal
```

then in your .js file, include this code to start using:

```
require('jyglobal');

log('hello, shorthand for console.log')
cc('hi, shorthand for console.log')
```

### Functions (global scope)

- `log(message)`
  - about: shorthand for `console.log(message)`, acts exactly like `console.log(message)`
  - params:
    - `message` [optional]
      - `message`: can be integer, variable, array, object.
      - `log()`: if `message` is ommited, a blank line will be returned.
  - advanced: supports multiple params: `log(msg1, msg2, ...)` = `console.log(msg1, msg2, ...)`
- `cc(message)`
  - about:
    - light weight, shorter version of `console.log(message)`.
    - stands for **c**losed **c**aptioning in subtitle (acts like subtitle in movie 😊).
    - `cc('example)` is the same as `console.log(example)`.
  - param:
    - `message` [optional]
      - `cc()`: function as a separator
      - if `message` is empty -> console.log(`----------`) in terminal
  - extra: only accept 1 param, use `log(message)` for multiple params.

### Notes

More globals will be added in the future for easier testing and debugging.

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