# @dendronhq/common-all

> common-all

Latest version **0.122.0** (published 2023-05-05) · GPLv3 license · 0 weekly downloads

## Install

```sh
npm install @dendronhq/common-all
pnpm add @dendronhq/common-all
yarn add @dendronhq/common-all
bun add @dendronhq/common-all
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.122.0 |
| Published | 2023-05-05 |
| First published | 2020-07-13 |
| Weekly downloads | 0 |
| License | GPLv3 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=12.0.0 |
| Dependencies | 22 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 (+28 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7473 |
| Author | Kevin Lin |
| Maintainers | kevins8 |
| Keywords | common |

## Links

- npm: https://www.npmjs.com/package/@dendronhq/common-all
- Repository: https://github.com/dendronhq/dendron
- Homepage: https://github.com/dendronhq/dendron#readme
- Issues: https://github.com/dendronhq/dendron/issues
- npm.io page: https://npm.io/package/@dendronhq/common-all

## Dependencies (22)

- [qs](https://npm.io/package/qs.md) ^6.10.1
- [zod](https://npm.io/package/zod.md) 3.19.1
- [axios](https://npm.io/package/axios.md) ^0.21.4
- [luxon](https://npm.io/package/luxon.md) ^1.25.0
- [title](https://npm.io/package/title.md) ^3.4.4
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [nanoid](https://npm.io/package/nanoid.md) ^3.1.23
- [semver](https://npm.io/package/semver.md) ^7.3.2
- [dropbox](https://npm.io/package/dropbox.md) ^4.0.30
- [fuse.js](https://npm.io/package/fuse.js.md) ^6.4.6
- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [minimatch](https://npm.io/package/minimatch.md) 5.1.0
- [spark-md5](https://npm.io/package/spark-md5.md) ^3.0.2
- [neverthrow](https://npm.io/package/neverthrow.md) ^6.0.0
- [vscode-uri](https://npm.io/package/vscode-uri.md) ^3.0.3
- [gray-matter](https://npm.io/package/gray-matter.md) ^4.0.2
- [@swc/helpers](https://npm.io/package/@swc/helpers.md) ^0.3.2
- [github-slugger](https://npm.io/package/github-slugger.md) ^1.3.0
- [normalize-path](https://npm.io/package/normalize-path.md) ^3.0.0
- [fast-levenshtein](https://npm.io/package/fast-levenshtein.md) ^3.0.0
- [http-status-codes](https://npm.io/package/http-status-codes.md) ^2.1.4
- [zod-validation-error](https://npm.io/package/zod-validation-error.md) ^0.1.1

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.122.0 (latest) — 2023-05-05
- 0.121.0 — 2023-05-04
- 0.120.0 — 2023-05-04
- 0.119.0 — 2022-12-06
- 0.118.0 — 2022-11-22
- 0.117.0 — 2022-11-08
- 0.116.3 — 2022-11-04
- 0.116.2 — 2022-10-26
- 0.116.1 — 2022-10-25
- 0.116.0 — 2022-10-25
- 0.115.1 — 2022-10-13
- 0.115.0 — 2022-10-11
- 0.114.0 — 2022-09-27
- 0.113.1 — 2022-09-20
- 0.113.0 — 2022-09-20
- … 402 more at https://npm.io/package/@dendronhq/common-all/versions

## README

[![Build Status](https://travis-ci.org/{{github-user-name}}/{{github-app-name}}.svg?branch=master)](https://travis-ci.org/{{github-user-name}}/{{github-app-name}}.svg?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/{{github-user-name}}/{{github-app-name}}/badge.svg?branch=master)](https://coveralls.io/github/{{github-user-name}}/{{github-app-name}}?branch=master)
[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)

# Using this module in other modules

Here is a quick example of how this module can be used in other modules. The [TypeScript Module Resolution Logic](https://www.typescriptlang.org/docs/handbook/module-resolution.html) makes it quite easy. The file `src/index.ts` is a [barrel](https://basarat.gitbooks.io/typescript/content/docs/tips/barrel.html) that re-exports selected exports from other files. The _package.json_ file contains `main` attribute that points to the generated `lib/index.js` file and `typings` attribute that points to the generated `lib/index.d.ts` file.

> If you are planning to have code in multiple files (which is quite natural for a NodeJS module) that users can import, make sure you update `src/index.ts` file appropriately.

Now assuming you have published this amazing module to _npm_ with the name `my-amazing-lib`, and installed it in the module in which you need it -

- To use the `Greeter` class in a TypeScript file -

```ts
import { Greeter } from "my-amazing-lib";

const greeter = new Greeter("World!");
greeter.greet();
```

- To use the `Greeter` class in a JavaScript file -

```js
const Greeter = require("my-amazing-lib").Greeter;

const greeter = new Greeter("World!");
greeter.greet();
```

## Setting travis and coveralls badges

1. Sign in to [travis](https://travis-ci.org/) and activate the build for your project.
2. Sign in to [coveralls](https://coveralls.io/) and activate the build for your project.
3. Replace {{github-user-name}}/{{github-app-name}} with your repo details like: "ospatil/generator-node-typescript".

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