# slack-entities-extended

> Methods for extracting entities like channels and users from Slack messages.

Latest version **1.0.3** (published 2018-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install slack-entities-extended
pnpm add slack-entities-extended
yarn add slack-entities-extended
bun add slack-entities-extended
```

## 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.3 |
| Published | 2018-01-24 |
| First published | 2018-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=5.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Flip |
| Maintainers | syzer |

## Links

- npm: https://www.npmjs.com/package/slack-entities-extended
- Repository: https://github.com/syzer/slack-entities
- Homepage: https://github.com/syzer/slack-entities#readme
- Issues: https://github.com/syzer/slack-entities/issues
- npm.io page: https://npm.io/package/slack-entities-extended

## Recent versions

- 1.0.3 (latest) — 2018-01-24
- 1.0.2 — 2018-01-24

## README

# slack-entities-extended

Fork of [slack entities](https://github.com/flipactual/slack-entitiess)
Methods for extracting entities like channels and users from Slack messages.

## Example:

```js
const slackEntities = require('../')
const getChannels = slackEntities.getChannels
const getUsers = slackEntities.getUsers
const getGroups = slackEntities.getGroups
const getFiles = slackEntities.getFiles
const getLinks = slackEntities.getLinks

getChannels('hey <@USLACKBOT> check out <#C0000000>')
// [{
//   tag: '<#C0000000>',
//   id: 'C0000000'
// }]
getUsers('i bet <@USLACKBOT> knows <HTML/>')
// [{
//   tag: '<@USLACKBOT>',
//   id: 'USLACKBOT'
// }]
getGroups('lylas <!subteam^S0000000|@besties>')
// [{
//   tag: '<!subteam^S0000000|@besties>',
//   id: 'S0000000'
// }]
getFiles('check out <https://austinprivatelibrary.slack.com/files/flip/F00000000/README.md> and <https://get.slack.help/hc/en-us/articles/204399343-Sharing-links-in-Slack>')
// [{
//   tag: '<https://austinprivatelibrary.slack.com/files/flip/F00000000/README.md>',
//   id: 'https://austinprivatelibrary.slack.com/files/flip/F00000000/README.md',
// }]
getLinks('Have this query string <https://www.google.com/?url=has-querystring> is quite nice.')
// [{
//   tag: '<https://www.google.com/?url=has-querystring>',
//     id: 'https://www.google.com/?url=has-querystring' 
// }]
```

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