![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.
use-secret-code
Advanced tools
Custom hook for adding cheat codes to your React app.
npm install use-secret-code
This is a custom React hook for adding "cheat codes" to your app. It will listen for a given sequence of keystrokes and track whether the corresponding "cheat" is enabled or disabled. You can then react (😏) accordingly (e.g. toggle a feature, pop an alert or notification, etc.). Just having a little fun here with this throwback to how we used to enter cheat codes in video games.
This package was originally called use-cheat-code
but apparently the word
"cheat" is against npm policies, so they denied my attempt to
publish the package under that name and I was forced to pick a new name. I went
with use-secret-code
(it's not great, but what else do you call a cheat
code?), but I still export useCheatCode
as well as useSecretCode
. They are
the same thing, but I will personally be importing useCheatCode
in my own
projects.
// import { useSecretCode } from 'use-secret-code'; // alternate
import { useCheatCode } from 'use-secret-code';
function CheatCodeExample() {
const invulnerability = useCheatCode(['i', 'd', 'd', 'q', 'd']);
return (
<span>Invulnerability: {invulnerability ? 'enabled' : 'disabled'}</span>
);
}
This should work in all modern browsers, but you'll need to polyfill Set
for
use in IE11. See the playground project in the example
directory
for one approach.
This module is distributed under the MIT License.
FAQs
Custom hook for adding cheat codes to your React app
The npm package use-secret-code receives a total of 0 weekly downloads. As such, use-secret-code popularity was classified as not popular.
We found that use-secret-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.