![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@alanscodelog/utils
Advanced tools
A collection of my utility functions and types. Mostly intended for use within my own projects.
npm install @alanscodelog/utils
# or
yarn add @alanscodelog/utils
There's four types of utility functions available, with some having node only variants:
utils
- the main utility functions
node_utils
- node only utility functionstesting
- functions that are only useful for testing purposesretypes
- existing functions typed as something else (e.g. Object.keys cast to a type that's useful for iterating, etc)types
- all the types used internally + any utility types
colors
- contains the basic ansi escape codes, for small scripts, or debugging, where I don't need to add chalk.Some utility functions are browser only, but they are included with the regular functions since they'll just throw when you try to use them (they should not cause errors when just getting imported). The node only ones will though so they must be separated.
// everything can be imported directly from the package (except individual colors and node_* only imports)
import { keys, debounce, colors, ...} from "@alanscodelog/utils"
// or you can import them like this to be clearer
import { MakeOptional, ...} from "@alanscodelog/utils/types"
// direct imports are also supported
import {debounce} from "@alanscodelog/utils/utils/debounce.js"
Vite seems to properly treeshake the 99.9%* of the root imports, but it might be a problem with other bundlers, in which case import from one of the export paths.
* There is one small namespace (Result) that it does not seem to be able to treeshake, but this is regardless of where you import it from, unless you use direct imports everywhere.
FAQs
My utility functions and typescript types.
The npm package @alanscodelog/utils receives a total of 2 weekly downloads. As such, @alanscodelog/utils popularity was classified as not popular.
We found that @alanscodelog/utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.