├── LICENSE
├── README.md
├── logo.png
├── nope.js
├── nope.min.js
├── package.json
└── webpack.config.js
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Ben Gadbois
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | NopeJS says "Nope!" to Javascript and stops all execution
4 |
5 | ## Installation
6 |
7 | `npm install @bengadbois/nopejs`
8 |
9 | Using a `
12 |
13 |
14 | ```
15 |
16 | For the minified version, use `nope.min.js`.
17 |
--------------------------------------------------------------------------------
/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/bengadbois/nopejs/9697fba9c47209e0c1303850316b5a28459ab2f0/logo.png
--------------------------------------------------------------------------------
/nope.js:
--------------------------------------------------------------------------------
1 | throw 'Nope!';
2 |
--------------------------------------------------------------------------------
/nope.min.js:
--------------------------------------------------------------------------------
1 | throw'Nope!'
2 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "@bengadbois/nopejs",
3 | "version": "1.2.0",
4 | "description": "NopeJS says 'nope!' to the JS and stops execution",
5 | "main": "nope.js",
6 | "scripts": {
7 | "build": "webpack"
8 | },
9 | "repository": {
10 | "type": "git",
11 | "url": "git+https://github.com/bengadbois/nopejs.git"
12 | },
13 | "author": "Ben Gadbois",
14 | "license": "MIT",
15 | "bugs": {
16 | "url": "https://github.com/bengadbois/nopejs/issues"
17 | },
18 | "homepage": "https://github.com/bengadbois/nopejs#readme",
19 | "devDependencies": {
20 | "webpack": "^2.3.1"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | const webpack = require('webpack');
2 | const path = require('path');
3 |
4 | const NAME = 'nope';
5 |
6 | const OUT = `${NAME}.js`;
7 | const OUT_DIR = path.join(__dirname, 'dist');
8 |
9 | module.exports = {
10 | entry: './nope.js',
11 | output: {
12 | path: OUT_DIR,
13 | filename: OUT,
14 | libraryTarget: 'umd',
15 | umdNamedDefine: true
16 | }
17 | }
--------------------------------------------------------------------------------