# @dendronhq/common-server

> common-server

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

## Install

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

## 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 | 524.8 KB |
| Known vulnerabilities | 0 (+3 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7475 |
| Author | Kevin Lin |
| Maintainers | kevins8 |

## Links

- npm: https://www.npmjs.com/package/@dendronhq/common-server
- 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-server

## Dependencies (22)

- [ajv](https://npm.io/package/ajv.md) ^8.6.0
- [tmp](https://npm.io/package/tmp.md) ^0.2.1
- [pino](https://npm.io/package/pino.md) ^6.3.2
- [execa](https://npm.io/package/execa.md) ^5.0.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.15
- [js-yaml](https://npm.io/package/js-yaml.md) ^4.1.0
- [anymatch](https://npm.io/package/anymatch.md) ^3.1.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^9.0.1
- [spark-md5](https://npm.io/package/spark-md5.md) ^3.0.2
- [ajv-errors](https://npm.io/package/ajv-errors.md) ^3.0.0
- [handlebars](https://npm.io/package/handlebars.md) ^4.7.7
- [simple-git](https://npm.io/package/simple-git.md) ^3.3.0
- [vscode-uri](https://npm.io/package/vscode-uri.md) ^2.1.2
- [gray-matter](https://npm.io/package/gray-matter.md) ^4.0.2
- [pino-pretty](https://npm.io/package/pino-pretty.md) ^4.3.0
- [@sentry/node](https://npm.io/package/@sentry/node.md) 7.11.1
- [comment-json](https://npm.io/package/comment-json.md) 4.2.0
- [analytics-node](https://npm.io/package/analytics-node.md) ^5.1.0
- [textextensions](https://npm.io/package/textextensions.md) ^5.15.0
- [yaml-unist-parser](https://npm.io/package/yaml-unist-parser.md) ^1.3.1
- [@sentry/integrations](https://npm.io/package/@sentry/integrations.md) 7.11.1
- [@dendronhq/common-all](https://npm.io/package/@dendronhq/common-all.md) ^0.122.0

## 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
- … 423 more at https://npm.io/package/@dendronhq/common-server/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-server · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
