1.0.0 • Published 1 year ago

uni-nope v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

uni-nope

npm version license

uni-nope is a Node.js package that provides a simple way to filter non-ASCII characters from strings using regular expressions.

Installation

You can install the package via npm:

npm install uni-nope

Usage

const rejectASCII = require('uni-nope');

const input = 'Hello, 世界!';
const filtered = rejectASCII(input);
console.log(filtered); // Output: Hello, !

API

rejectASCII(inputString)

  • inputString (string): The input string to filter.
  • Returns: The filtered string with non-ASCII characters removed.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.