# @twodashes/node

> Utility functions specifically for Node.js. HTTP requests, CLI arguments, promises, operating system, version, etc. See also @twodashes/universal and @twodashes/browser

Latest version **0.4.11** (published 2021-01-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install @twodashes/node
pnpm add @twodashes/node
yarn add @twodashes/node
bun add @twodashes/node
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.11 |
| Published | 2021-01-07 |
| First published | 2020-12-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 98.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | paulshorey |

## Links

- npm: https://www.npmjs.com/package/@twodashes/node
- Repository: https://github.com/twodashes/node
- Homepage: https://github.com/twodashes/node#readme
- Issues: https://github.com/twodashes/node/issues
- npm.io page: https://npm.io/package/@twodashes/node

## Recent versions

- 0.4.11 (latest) — 2021-01-07
- 0.4.10 — 2021-01-07
- 0.4.8 — 2021-01-07
- 0.4.7 — 2020-12-28
- 0.4.5 — 2020-12-28
- 0.4.0 — 2020-12-13

## README

# Utility functions **for Node.js**

See also [@twodash/universal](#) for all platforms, and [@twodash/browser](#) for the browser (including Webpack). Planned for the future are more platform-specific functions: "@twodash/rnative" for React Native, "@twodash/ionic", and in a galaxy far far away "@twodash/quasar".

# Installation

These are exported for your choice of environment. When importing, specify **cjs**/**esm**/**\_\_** format. The **\_\_** is meant to be used with the browser `<script>` tag. It creates a `window.__` variable.

```JavaScript
  import { sort_by_rating_and_position } from "@twodash/universal/esm/sort_strings"
```

```JavaScript
  const sort_strings = require("@twodash/universal/esm/sort_strings")
```

Why not UMD modules standard? **Code splitting**. By specifying your choice "esm" (ES Modules), "cjs" (CommonJS) or "\_\_" (`window.__`), you're able to download only the specific functions you actually need, not everthing else. Additionally on the browser, you can download multiple times using multiple`<script>`tags (for example both`@twodashes/universal`and`@twodashes/browser`, or`/sort_strings`and`/arrays`). All downloaded scripts will be combined into one single flat`window.__` dictionary/object. See [code sandbox](https://codesandbox.io/s/twodashes-universal-demo-2r4os). Please do message ([Paul](https://paulshorey.com)) if this is unclear, or if may know a better way of accomplishing all this.

# Documentation

- coming soon - for now please see "./src" folder which uses standard JsDoc comments

# Not ready

Currently under development. Not stable. Adding more functions.

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