uni-nope
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i uni-nope

Weekly Downloads

4

Version

1.0.0

License

MIT

Unpacked Size

4.4 kB

Total Files

6

Last publish

Collaborators

  • vincenzomaritato