42.96.666 • Published 2 years ago

is-not-javascript v42.96.666

Weekly downloads
-
License
WTFPL
Repository
github
Last release
2 years ago

is-not-javascript

Want to make extra sure you aren't using Javascript? This package is for you!

Installation

npm install is-not-javascript

Usage

var isJavascript = require('is-not-javascript')
isNotJavascript();  // false

React Support

Thanks to the glorious community, is-not-javascript has 100% support for React!

Usage

const IsNotJavascriptComponent = () => {
  const notJS = useIsNotJavascript();

  return <p>{notJS ? "Is Not Javascript" : "Is Javascript"}</p>;
};

Testing

Run npm test to run a fully-comprehensive test suite, making sure all the possible edge cases are covered.

License

WTFPL

42.96.666

2 years ago

42.96.420

2 years ago

6.94.20666

2 years ago

6.94.20

2 years ago

4.20.69

2 years ago