# nodetype

> Checking for variable type

Latest version **0.0.6** (published 2012-11-15) · BSD license · 0 weekly downloads

## Install

```sh
npm install nodetype
pnpm add nodetype
yarn add nodetype
bun add nodetype
```

## 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.6 |
| Published | 2012-11-15 |
| First published | 2012-11-10 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | poying |
| Maintainers | poying |
| Keywords | type |

## Links

- npm: https://www.npmjs.com/package/nodetype
- Repository: https://github.com/poying/node-type
- npm.io page: https://npm.io/package/nodetype

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2012-11-15
- 0.0.5 — 2012-11-11
- 0.0.4 — 2012-11-11
- 0.0.3 — 2012-11-11
- 0.0.2 — 2012-11-11
- 0.0.1 — 2012-11-11
- 0.0.0 — 2012-11-10

## README

## NODE-TYPE

### Installation

	npm install nodetype

### Usage

	// nodetype.check(type, value, convert);
	nodetype.check('Boolean', 'True', true);


	function MyObject () {
		this.hello = 'world';
		this.world = 'hello';
	}
	
	nodetype.set('MyObject', function (val) {
		return (val.hello || undefined) === 'world' && (val.world || undefined) === 'hello';
	});
	
	var myobj = new MyObject;

	console.log(nodetype.check('MyObject', myobj));

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