## replace-comments-x
Replace the comments in a string.
**Version**: 2.0.0
**Author**: Xotic750
**License**: [MIT](<https://opensource.org/licenses/MIT>)
**Copyright**: Xotic750
### `module.exports(string, [replacement])` ⇒ string ⏏
This method replaces comments in a string.
**Kind**: Exported function
**Returns**: string - The new string with the comments replaced.
**Throws**:
- TypeError If string is null or undefined or not coercible.
- TypeError If replacement is not coercible.
| Param | Type | Description |
| --- | --- | --- |
| string | string | The string to be stripped. |
| [replacement] | string | The string to be used as a replacement. |
**Example**
```js
var replaceComments = require('replace-comments-x');
replaceComments(test;/* test * /, ''), // 'test;'
replaceComments(test; // test, ''), // 'test;'
```