chiisai-event-emitter 0.0.0-development

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -0
  3. package/package.json +118 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Ryan Sonshine
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.
package/README.md ADDED
@@ -0,0 +1,68 @@
1
+ # Chiisai Event Emitter
2
+
3
+ A minimal event emitter library for Node.JS.
4
+
5
+ ---
6
+
7
+ # chiisai-event-emitter
8
+
9
+ [![npm package][npm-img]][npm-url]
10
+ [![Build Status][build-img]][build-url]
11
+ [![Downloads][downloads-img]][downloads-url]
12
+ [![Issues][issues-img]][issues-url]
13
+ [![Code Coverage][codecov-img]][codecov-url]
14
+ [![Commitizen Friendly][commitizen-img]][commitizen-url]
15
+ [![Semantic Release][semantic-release-img]][semantic-release-url]
16
+
17
+ > My awesome module
18
+
19
+ ## Install
20
+
21
+ ```bash
22
+ npm install chiisai-event-emitter
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```ts
28
+ import { myPackage } from 'chiisai-event-emitter';
29
+
30
+ myPackage('hello');
31
+ //=> 'hello from my package'
32
+ ```
33
+
34
+ ## API
35
+
36
+ ### myPackage(input, options?)
37
+
38
+ #### input
39
+
40
+ Type: `string`
41
+
42
+ Lorem ipsum.
43
+
44
+ #### options
45
+
46
+ Type: `object`
47
+
48
+ ##### postfix
49
+
50
+ Type: `string`
51
+ Default: `rainbows`
52
+
53
+ Lorem ipsum.
54
+
55
+ [build-img]:https://github.com/ryansonshine/chiisai-event-emitter/actions/workflows/release.yml/badge.svg
56
+ [build-url]:https://github.com/ryansonshine/chiisai-event-emitter/actions/workflows/release.yml
57
+ [downloads-img]:https://img.shields.io/npm/dt/chiisai-event-emitter
58
+ [downloads-url]:https://www.npmtrends.com/chiisai-event-emitter
59
+ [npm-img]:https://img.shields.io/npm/v/chiisai-event-emitter
60
+ [npm-url]:https://www.npmjs.com/package/chiisai-event-emitter
61
+ [issues-img]:https://img.shields.io/github/issues/ryansonshine/chiisai-event-emitter
62
+ [issues-url]:https://github.com/ryansonshine/chiisai-event-emitter/issues
63
+ [codecov-img]:https://codecov.io/gh/ryansonshine/chiisai-event-emitter/branch/main/graph/badge.svg
64
+ [codecov-url]:https://codecov.io/gh/ryansonshine/chiisai-event-emitter
65
+ [semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
66
+ [semantic-release-url]:https://github.com/semantic-release/semantic-release
67
+ [commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
68
+ [commitizen-url]:http://commitizen.github.io/cz-cli/
package/package.json ADDED
@@ -0,0 +1,118 @@
1
+ {
2
+ "name": "chiisai-event-emitter",
3
+ "version": "0.0.0-development",
4
+ "description": "A minimal event emitter.",
5
+ "main": "./lib/index.js",
6
+ "files": [
7
+ "lib/**/*"
8
+ ],
9
+ "scripts": {
10
+ "build": "tsc --project tsconfig.build.json",
11
+ "clean": "rm -rf ./lib/",
12
+ "cm": "cz",
13
+ "lint": "eslint ./src/ --fix",
14
+ "prepare": "husky install",
15
+ "semantic-release": "semantic-release",
16
+ "test:watch": "jest --watch",
17
+ "test": "jest --coverage",
18
+ "typecheck": "tsc --noEmit"
19
+ },
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/bencelaszlo/chiisai-event-emitter.git"
23
+ },
24
+ "license": "MIT",
25
+ "author": {
26
+ "name": "Bence László",
27
+ "email": "bence@bencelaszlo.hu",
28
+ "url": "https://bencelaszlo.hu"
29
+ },
30
+ "engines": {
31
+ "node": ">=12.0"
32
+ },
33
+ "keywords": [
34
+ "event",
35
+ "event-driven",
36
+ "event-emitter",
37
+ "minimal",
38
+ "typescript"
39
+ ],
40
+ "bugs": {
41
+ "url": "https://github.com/bencelaszlo/chiisai-event-emitter/issues"
42
+ },
43
+ "homepage": "https://github.com/bencelaszlo/chiisai-event-emitter#readme",
44
+ "devDependencies": {
45
+ "@ryansonshine/commitizen": "^4.2.8",
46
+ "@ryansonshine/cz-conventional-changelog": "^3.3.4",
47
+ "@types/jest": "^27.5.2",
48
+ "@types/node": "^12.20.11",
49
+ "@typescript-eslint/eslint-plugin": "^4.22.0",
50
+ "@typescript-eslint/parser": "^4.22.0",
51
+ "conventional-changelog-conventionalcommits": "^5.0.0",
52
+ "eslint": "^7.25.0",
53
+ "eslint-config-prettier": "^8.3.0",
54
+ "eslint-plugin-node": "^11.1.0",
55
+ "eslint-plugin-prettier": "^3.4.0",
56
+ "husky": "^6.0.0",
57
+ "jest": "^27.2.0",
58
+ "lint-staged": "^13.2.1",
59
+ "prettier": "^2.2.1",
60
+ "semantic-release": "^21.0.1",
61
+ "ts-jest": "^27.0.5",
62
+ "ts-node": "^10.2.1",
63
+ "typescript": "^4.2.4"
64
+ },
65
+ "config": {
66
+ "commitizen": {
67
+ "path": "./node_modules/@ryansonshine/cz-conventional-changelog"
68
+ }
69
+ },
70
+ "lint-staged": {
71
+ "*.ts": "eslint --cache --cache-location .eslintcache --fix"
72
+ },
73
+ "release": {
74
+ "branches": [
75
+ "main"
76
+ ],
77
+ "plugins": [
78
+ [
79
+ "@semantic-release/commit-analyzer",
80
+ {
81
+ "preset": "conventionalcommits",
82
+ "releaseRules": [
83
+ {
84
+ "type": "build",
85
+ "scope": "deps",
86
+ "release": "patch"
87
+ }
88
+ ]
89
+ }
90
+ ],
91
+ [
92
+ "@semantic-release/release-notes-generator",
93
+ {
94
+ "preset": "conventionalcommits",
95
+ "presetConfig": {
96
+ "types": [
97
+ {
98
+ "type": "feat",
99
+ "section": "Features"
100
+ },
101
+ {
102
+ "type": "fix",
103
+ "section": "Bug Fixes"
104
+ },
105
+ {
106
+ "type": "build",
107
+ "section": "Dependencies and Other Build Updates",
108
+ "hidden": false
109
+ }
110
+ ]
111
+ }
112
+ }
113
+ ],
114
+ "@semantic-release/npm",
115
+ "@semantic-release/github"
116
+ ]
117
+ }
118
+ }