A bunch of small utilities that I reuse across projects
This turborepo uses npm as a package manager. It includes the following packages/apps:
- @ulisesgascon/normalize-boolean - Simple and very opinionated wrapper to manage Boolean conversions
- @ulisesgascon/is-different - A limited way to compare two values and return true if they are different
- @ulisesgascon/array-to-chunks - A simple way to slice an array into chunks
- @ulisesgascon/simplify-object - A simple way to return a new object with less properties
- @ulisesgascon/soft-assign-deep-property - A simple way to assign a deep property to an object without overwriting any existing properties within it.
- @ulisesgascon/text-tags-manager - Utils to manage text tags more easy to use, you know what I mean.
- @ulisesgascon/string-to-array - A simple and opinionated way to convert a string to an array.
- @ulisesgascon/rss-feed-parser - A simple and easy to use RSS feed parser.
eslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package is 100% TypeScript.
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
To build all packages, run the following command:
cd micro-utilities
npm run build
To lint all packages, run the following command:
cd micro-utilities
npm run dev
To test all packages, run the following command:
cd micro-utilities
npm run test
npm run test:coverage
npm run test:watch
To benchmark all packages, run the following command:
cd micro-utilities
npm run benchmark
Learn more about the power of Turborepo: