# openwhisk-fqn

> Javascript library to convert an OpenWhisk entity name to a fully qualified name.

Latest version **0.0.2** (published 2018-07-27) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install openwhisk-fqn
pnpm add openwhisk-fqn
yarn add openwhisk-fqn
bun add openwhisk-fqn
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2018-07-27 |
| First published | 2018-07-27 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Olivier Tardieu |
| Maintainers | tardieu |
| Keywords | openwhisk |

## Links

- npm: https://www.npmjs.com/package/openwhisk-fqn
- Repository: https://github.com/ibm-functions/openwhisk-fqn
- Issues: https://github.com/ibm-functions/openwhisk-fqn/issues
- npm.io page: https://npm.io/package/openwhisk-fqn

## Recent versions

- 0.0.2 (latest) — 2018-07-27

## README

# openwhisk-fqn

[![Travis](https://travis-ci.org/ibm-functions/openwhisk-fqn.svg?branch=master)](https://travis-ci.org/ibm-functions/openwhisk-fqn)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![Join Slack](https://img.shields.io/badge/join-slack-9B69A0.svg)](http://slack.openwhisk.org/)

Javascript library to convert an [Apache OpenWhisk](https://openwhisk.apache.org) entity name to a fully qualified name.

## Installation

```
npm install openwhisk-fqn
```

## Usage

```javascript
let fqn = require('openwhisk-fqn')

console.log(fqn('action'))                    // outputs '/_/action'
console.log(fqn('package/action'))            // outputs '/_/package/action'
console.log(fqn('/namespace/action'))         // outputs '/namespace/action'
console.log(fqn('/namespace/package/action')) // outputs '/namespace/package/action'
console.log(fqn(null))                        // throws  'Name must be a string'
console.log(fqn('/a/b/c/d'))                  // throws  'Name is not valid'
```

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