# safe-to-string-x

> DEPRECATED: Moved to https://github.com/Xotic750/to-string-symbols-supported-x

Latest version **2.0.3** (published 2017-09-26) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install safe-to-string-x
pnpm add safe-to-string-x
yarn add safe-to-string-x
bun add safe-to-string-x
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.3 |
| Published | 2017-09-26 |
| First published | 2015-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | es6, safeToString, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/safe-to-string-x
- Repository: https://github.com/Xotic750/safe-to-string-x
- Issues: https://github.com/Xotic750/safe-to-string-x/issues
- npm.io page: https://npm.io/package/safe-to-string-x

## Dependencies (1)

- [to-string-symbols-supported-x](https://npm.io/package/to-string-symbols-supported-x.md) ^1.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.0.3 (latest) — 2017-09-26
- 2.0.1 — 2017-09-01
- 2.0.0 — 2017-08-30
- 1.5.0 — 2017-07-10
- 1.4.0 — 2017-07-02
- 1.3.0 — 2017-03-29
- 1.2.0 — 2017-02-19
- 1.1.11 — 2016-02-15
- 1.1.10 — 2016-02-13
- 1.1.9 — 2016-02-03
- 1.1.8 — 2016-01-25
- 1.1.7 — 2016-01-25
- 1.1.6 — 2016-01-20
- 1.1.5 — 2016-01-12
- 1.1.4 — 2016-01-05
- … 5 more at https://npm.io/package/safe-to-string-x/versions

## README

<a href="https://travis-ci.org/Xotic750/safe-to-string-x"
   title="Travis status">
<img
   src="https://travis-ci.org/Xotic750/safe-to-string-x.svg?branch=master"
   alt="Travis status" height="18"/>
</a>
<a href="https://david-dm.org/Xotic750/safe-to-string-x"
   title="Dependency status">
<img src="https://david-dm.org/Xotic750/safe-to-string-x.svg"
   alt="Dependency status" height="18"/>
</a>
<a href="https://david-dm.org/Xotic750/safe-to-string-x#info=devDependencies"
   title="devDependency status">
<img src="https://david-dm.org/Xotic750/safe-to-string-x/dev-status.svg"
   alt="devDependency status" height="18"/>
</a>
<a href="https://badge.fury.io/js/safe-to-string-x" title="npm version">
<img src="https://badge.fury.io/js/safe-to-string-x.svg"
   alt="npm version" height="18"/>
</a>
<a name="module_safe-to-string-x"></a>

## safe-to-string-x
DEPRECATED: Moved to https://github.com/Xotic750/to-string-symbols-supported-x

**See**: [to-string-x](https://github.com/Xotic750/to-string-x)  
**Version**: 2.0.3  
**Author**: Xotic750 <Xotic750@gmail.com>  
**License**: [MIT](&lt;https://opensource.org/licenses/MIT&gt;)  
**Copyright**: Xotic750  
<a name="exp_module_safe-to-string-x--module.exports"></a>

### `module.exports` ⇒ <code>string</code> ⏏
DEPRECATED: Moved to https://github.com/Xotic750/to-string-symbols-supported-x
to have a less confusing module name.

The abstract operation ToString converts argument to a value of type String,
however the specification states that if the argument is a Symbol then a
'TypeError' is thrown. This version also allows Symbols be converted to
a string. Other uncoercible exotics will still throw though.

**Kind**: Exported member  
**Returns**: <code>string</code> - The converted value.  

| Param | Type | Description |
| --- | --- | --- |
| value | <code>\*</code> | The value to convert to a string. |

**Example**  
```js
var safeToString = require('safe-to-string-x');

safeToString(); // 'undefined'
safeToString(null); // 'null'
safeToString('abc'); // 'abc'
safeToString(true); // 'true'
safeToString(Symbol('foo')); // 'Symbol(foo)'
safeToString(Symbol.iterator); // 'Symbol(Symbol.iterator)'
safeToString(Object(Symbol.iterator)); // 'Symbol(Symbol.iterator)'
safeToString(Object.create(null)); // TypeError
```

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