You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
• Converting the final stream to an array using toArray
145
+
146
+
- Creating a lazy stream from an array
147
+
- Using map to transform values
148
+
- Using filter to filter out certain values
149
+
- Using take to limit the results
150
+
- Converting the final stream to an array using toArray
131
151
132
152
## Scripts
133
153
134
154
A set of npm scripts are preconfigured to streamline development and publishing:
135
-
• `npm run build`: Compiles TypeScript to JavaScript in multiple module formats (ESM, CommonJS, UMD, AMD).
136
-
• `npm test`: Runs Jest tests.
137
-
• `npm run lint`: Checks code for linting errors using ESLint.
138
-
• `npm run format`: Formats code with Prettier.
139
-
• `npm run docs`: Generates documentation with TypeDoc.
140
-
• `npm run release`: Bumps version and updates changelog based on commit messages using standard-version.
141
-
• `npm publish`: Publishes the package to npm (run after npm run release).
155
+
156
+
-`npm run build`: Compiles TypeScript to JavaScript in multiple module formats (ESM, CommonJS, UMD, AMD).
157
+
-`npm test`: Runs Jest tests.
158
+
-`npm run lint`: Checks code for linting errors using ESLint.
159
+
-`npm run format`: Formats code with Prettier.
160
+
-`npm run docs`: Generates documentation with TypeDoc.
161
+
-`npm run release`: Bumps version and updates changelog based on commit messages using standard-version.
162
+
-`npm publish`: Publishes the package to npm (run after npm run release).
142
163
143
164
## Configuration
144
165
145
166
This template includes configuration files for various tools, such as:
146
-
• TypeScript (`tsconfig.json`): Configures compiler options and output.
147
-
• ESLint (`eslint.config.cjs`): Configures linting rules for code consistency.
148
-
• Prettier (`.prettierrc`): Configures formatting rules for consistent style.
149
-
• Jest (`jest.config.cjs`): Configures Jest for unit testing.
150
-
• TypeDoc (`typedoc.json`): Configures TypeDoc for documentation generation.
167
+
168
+
- TypeScript (`tsconfig.json`): Configures compiler options and output.
169
+
- ESLint (`eslint.config.cjs`): Configures linting rules for code consistency.
170
+
- Prettier (`.prettierrc`): Configures formatting rules for consistent style.
171
+
- Jest (`jest.config.cjs`): Configures Jest for unit testing.
172
+
- TypeDoc (`typedoc.json`): Configures TypeDoc for documentation generation.
151
173
152
174
## Contributing
153
175
154
-
We welcome contributions! To contribute: 1. Fork the repository and create a new branch (`git checkout -b feature/YourFeature`). 2. Make your changes and commit them (`git commit -m "Add feature"`). 3. Push to the branch (`git push origin feature/YourFeature`). 4. Open a Pull Request.
176
+
We welcome contributions! To contribute:
177
+
178
+
1. Fork the repository and create a new branch (`git checkout -b feature/YourFeature`).
179
+
2. Make your changes and commit them (`git commit -m "Add feature"`).
180
+
3. Push to the branch (`git push origin feature/YourFeature`).
181
+
4. Open a Pull Request.
155
182
156
183
If you have any questions or suggestions, please reach out to us at monadicarts@gmail.com.
157
184
@@ -165,8 +192,8 @@ Thank you for using `@monadica/lazy-streams`!
0 commit comments