# glsl-token-properties

> Takes an array of GLSL tokens and determines whether or not they're a property of another identifier

Latest version **1.0.1** (published 2015-03-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install glsl-token-properties
pnpm add glsl-token-properties
yarn add glsl-token-properties
bun add glsl-token-properties
```

## 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.1 |
| Published | 2015-03-06 |
| First published | 2015-01-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Hugh Kennedy |
| Maintainers | hughsk, substack |
| Keywords | ecosystem:stackgl |

## Links

- npm: https://www.npmjs.com/package/glsl-token-properties
- Repository: https://github.com/stackgl/glsl-token-properties
- Issues: https://github.com/stackgl/glsl-token-properties/issues
- npm.io page: https://npm.io/package/glsl-token-properties

## Recent versions

- 1.0.1 (latest) — 2015-03-06
- 1.0.0 — 2015-01-02

## README

# glsl-token-properties

[![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

Takes an array of GLSL tokens and determines whether or not they're a property
of another identifier.

## Usage

[![NPM](https://nodei.co/npm/glsl-token-properties.png)](https://nodei.co/npm/glsl-token-properties/)

### `properties(tokens)`

Takes an array of GLSL `tokens` from
[`glsl-tokenizer`](http://github.com/stackgl/glsl-tokenizer) and sets a
`property` boolean for whether or not the token is a property.

``` javascript
var tokenizer  = require('glsl-tokenizer/string')
var properties = require('glsl-token-properties')

var src = 'some.value[2];'
var tokens = tokenizer(src)

// determine which tokens are properties
properties(tokens)

tokens[0].data     // "some"
tokens[0].property // false
tokens[2].data     // "value"
tokens[2].property // true
tokens[4].data     // "2"
tokens[4].property // false
```

## See Also

* [glsl-tokenizer](http://github.com/stackgl/glsl-tokenizer)
* [glsl-token-scope](http://github.com/stackgl/glsl-token-scope)
* [glsl-token-depth](http://github.com/stackgl/glsl-token-depth)
* [glsl-token-assignments](http://github.com/stackgl/glsl-token-assignments)

## License

MIT. See [LICENSE.md](http://github.com/stackgl/glsl-token-properties/blob/master/LICENSE.md) for details.

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