A monorepo to manage my open source packages.
If I should maintain this repo, please ⭐️
DM me on Twitter if you have questions or suggestions.
Packages that can be used in both Node.js and the browser.
- all-package-names*: Get all NPM package names
- as-typed-array: Make any value an array
- can-use-dom: Typed version of can-use-dom to check if you can use the DOM
- char-to-string: Convert a character or character code to string
- clee: Create CLI applications with glee 🎉
- cross-fetch-json: Universal fetch API that returns JSON
- ends-with-string: Check if a string or buffer ends with a given string
- extract-first-json: Extract the first JSON object or array from a string
- for-any: Use standard array functions on both arrays and non-array types.
- is-obj-empty: Check if an object is empty.
- is-zod: Typeguard to check if a value matches a zod schema
- join-newlines: Join an array of strings with newlines.
- p-lock: Simple promise lock
- parse-json-object: Parse a typed JSON object.
- read-boolean: A simple utility for parsing boolean values from strings.
- reduce-first: Return early from reduce.
- slice-all: Slice a string at multiple locations
- stringify-json-object: Stringify and format a JSON object
- terminating-newline: Add or remove a terminating newline
- typed-case: Convert between typesafe string casings
- types-eslintrc: Type checking for ESLint configs
- types-json: Type checking for JSON values
- types-tsconfig: Type checking for tsconfig.json
Packages that require a Node.js runtime.
- @bconnorwhite/environment: A utility for checking node environment.
- clee: Create CLI applications with glee 🎉
- file-exists-safe: Check if a file exists without try catch
- gitkraken-cli: CLI to launch GitKraken from a given path.
- has-script: Check if package.json contains a script.
- make-executable: Set the executable bits on a file.
- package-add: Programmatically install packages. Supports yarn, npm, and pnpm.
- package-run: Node API for running package.json scripts.
- read-file-safe: Read files without try catch
- read-json-safe: Read JSON files without try catch
- remove-file-safe: Remove files without try catch
- which-pm-lockfile: Check if a project uses yarn, npm, or pnpm
- write-dir-safe: Create directories and their parents recursively
- write-json-safe: Write formatted JSON to a file.
- write-file-safe: Write files atomically, and create parent directories if necessary.
Packages that require a browser runtime.
- autorepo: Autorepo abstracts away your dev dependencies, providing a single command to run all of your scripts.
* Not yet migrated to ESM.