# @f/set-value

> Set the value of an input-type DOM node

Latest version **1.0.0** (published 2015-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @f/set-value
pnpm add @f/set-value
yarn add @f/set-value
bun add @f/set-value
```

## 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.0 |
| Published | 2015-12-24 |
| First published | 2015-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | f |

## Links

- npm: https://www.npmjs.com/package/@f/set-value
- Repository: https://github.com/micro-js/set-value
- Homepage: https://github.com/micro-js/set-value#readme
- Issues: https://github.com/micro-js/set-value/issues
- npm.io page: https://npm.io/package/@f/set-value

## Dependencies (1)

- [@f/can-select-text](https://npm.io/package/@f/can-select-text.md) ^1.0.0

## Recent versions

- 1.0.0 (latest) — 2015-12-24

## README

# set-value

[![Build status][travis-image]][travis-url]
[![Git tag][git-image]][git-url]
[![NPM version][npm-image]][npm-url]
[![Code style][standard-image]][standard-url]

Set the value of an input-type DOM node while preserving the user's selection.

## Installation

    $ npm install @f/set-value

## Usage

```js
var setValue = require('@f/set-value')

setValue(input, 'test')
```

## API

### setValue(node, value)

- `node` - A DOM node that can accept a value (e.g. input, textarea)
- `value` - The new value to set in the field specified by `node`

**Returns:** void

## License

MIT

[travis-image]: https://img.shields.io/travis/micro-js/set-value.svg?style=flat-square
[travis-url]: https://travis-ci.org/micro-js/set-value
[git-image]: https://img.shields.io/github/tag/micro-js/set-value.svg
[git-url]: https://github.com/micro-js/set-value
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat
[standard-url]: https://github.com/feross/standard
[npm-image]: https://img.shields.io/npm/v/@f/set-value.svg?style=flat-square
[npm-url]: https://npmjs.org/package/@f/set-value

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