# parse-a-little-js

> Slice just enough JavaScript off a string to describe an expression or the closing of a scope

Latest version **0.27.0** (published 2019-12-26) · 0 weekly downloads

## Install

```sh
npm install parse-a-little-js
pnpm add parse-a-little-js
yarn add parse-a-little-js
bun add parse-a-little-js
```

## 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.27.0 |
| Published | 2019-12-26 |
| First published | 2018-04-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 32.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | erikpukinskis |

## Links

- npm: https://www.npmjs.com/package/parse-a-little-js
- Repository: https://github.com/erikpukinskis/parse-a-little-js
- Homepage: https://github.com/erikpukinskis/parse-a-little-js#readme
- Issues: https://github.com/erikpukinskis/parse-a-little-js/issues
- npm.io page: https://npm.io/package/parse-a-little-js

## Dependencies (1)

- [module-library](https://npm.io/package/module-library.md) *

## Recent versions

- 0.27.0 (latest) — 2019-12-26
- 0.26.0 — 2019-02-19
- 0.25.0 — 2019-02-19
- 0.24.0 — 2019-02-19
- 0.23.0 — 2019-02-06
- 0.22.0 — 2019-02-06
- 0.21.0 — 2019-02-05
- 0.20.0 — 2019-02-05
- 0.19.0 — 2019-02-05
- 0.18.0 — 2019-02-05
- 0.17.0 — 2019-02-03
- 0.15.0 — 2018-12-26
- 0.14.0 — 2018-12-26
- 0.13.0 — 2018-12-26
- 0.12.0 — 2018-07-01
- … 11 more at https://npm.io/package/parse-a-little-js/versions

## README

If we give the parser any text, either quoted or not, we the text back as "notIdentifier"

e.g. "\"foo bar baz\"" returns:

{
  notIdentifer: "foo bar baz",
  intro: "\"",
  outro: "\"",
}

while "foo bar baz" returns:

{
  notIdentifer: "foo bar baz",
}

There are some situations where this will trigger out other scenarios.

If you put some variation on "function someValidIdentifier (" then you'll get "function" as the intro

so ""

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