# create-extractor

> A tool for creating extractor.

Latest version **0.0.5** (published 2019-09-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install create-extractor
pnpm add create-extractor
yarn add create-extractor
bun add create-extractor
```

## 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.5 |
| Published | 2019-09-02 |
| First published | 2019-08-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | imcuttle |
| Maintainers | moyuyc |

## Links

- npm: https://www.npmjs.com/package/create-extractor
- Repository: https://github.com/imcuttle/intuitional-test
- Homepage: https://github.com/imcuttle/intuitional-test#readme
- Issues: https://github.com/imcuttle/intuitional-test/issues
- npm.io page: https://npm.io/package/create-extractor

## Recent versions

- 0.0.5 (latest) — 2019-09-02
- 0.0.4 — 2019-08-27
- 0.0.3 — 2019-08-01
- 0.0.2 — 2019-08-01

## README

# `create-extractor`

> A tool for creating extractor.

## Usage

```javascript
const createExtractor = require('create-extractor')

const extractor = createExtractor((text, options) => {
  return [
    {
      namespace: options.namespace,
      code: text
    }
  ]
})

const extractedList = extractor(`# markdown`, {
  filename: '/path/to.md',
  namespace: 'ns'
})

extractedList.length // => 1
Array.isArray(extractedList) // => true
extractedList[0] // => { namespace: 'ns', code: '# markdown' }
extractedList[0].namespace = null
extractedList.fillNamespace('prefix')
extractedList[0] // => { namespace: 'prefix_1', code: '# markdown' }
```

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