is-ascii

1.0.0 • Public • Published

isAscii


Test if a string is 100% ascii.

npm version Build Status License: MIT


Why

I needed to see if a string was 100% ascii.


Usage

import isAscii from 'is-ascii';
 
isAscii('foo bar baz !?!!!!???? @#$%^&*(){}[]\|-_+=`~'); // true
isAscii('💩💩💩‽‽‽'); // false

License

MIT: http://ariporad.mit-license.org.

Readme

Keywords

Package Sidebar

Install

npm i is-ascii

Weekly Downloads

1,360

Version

1.0.0

License

MIT

Last publish

Collaborators

  • ariporad