https://github.com/bramkok/module-exports-functions
Repository for trying out a new module/project structure
https://github.com/bramkok/module-exports-functions
boilerplate-template module-exports nodejs test-project
Last synced: 24 days ago
JSON representation
Repository for trying out a new module/project structure
- Host: GitHub
- URL: https://github.com/bramkok/module-exports-functions
- Owner: bramkok
- Created: 2018-05-20T00:19:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-21T11:00:17.000Z (about 8 years ago)
- Last Synced: 2025-11-30T23:49:10.976Z (6 months ago)
- Topics: boilerplate-template, module-exports, nodejs, test-project
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/module-exports-functions
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# module-exports-functions
> Test anonymous and named functions with `module.exports`
## Install
```
$ yarn global add module-exports-functions
```
## Usage
```
$ module-exports-functions --help
Usage: index [options]
Options:
-V, --version output the version number
-n, --named throw error inside a named function
-a, --anonymous throw error inside an anonymous function
-h, --help output usage information
```
## FAQ
### What's the value of this project?
This is a demo project to test behavior of anonymous and named functions
when exported with `module.exports`. Running the cli will offer the user
to choose either anonymous or named functions and an Error object will be
thrown.
### Ehhh, but why build a fully fledged project around it?
To test [eslint-config-bramkok](https://github.com/bramkok/eslint-config-bramkok)
and to create blueprint for JavaScript/Node projects. When finished it can be
made into a boilerplate and be used with [`boil`](https://github.com/bramkok/boil).
## License
MIT © [Bram Kok](https://bramkok.com)