![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.
Re-Require a module bypassing the cache when in a development environment (using NODE_ENV).
Re-Require a module bypassing the cache when not in a production environment.
Useful for development purposes when you need to freshly require a module after modifying it.
$ npm install --save requi-re
By default, requi-re
returns node's native require
, in order to not fuck things up in bad setups.
Only when NODE_ENV
is set to anything else than production
(and is not undefined
) all calls will return be fleshly required modules.
There are various ways of setting NODE_ENV
on different operation systems. To avoid cross-plattform problems, the usage of the module cross-env is recommended.
package.json
"scripts": {
"start": "cross-env NODE_ENV=production node app",
"development": "cross-env NODE_ENV=development node app"
}
Then start your app using npm development
to enable cache-deletion when calling requi-re
.
Notice: npm start
and any other scripts starting your app will continue to behave as usual.
// foo.js
let i = 0;
module.exports = () => ++i;
require('./foo')();
//=> 1
require('./foo')();
//=> 2
// overwrite node's require for convenience
require = require('requi-re');
require('./foo')();
//=> 1
require('./foo')();
//=> 1
NODE_ENV
requi-re
is a fork of require-uncached
: MIT © Sindre Sorhus
FAQs
Re-Require a module bypassing the cache when in a development environment (using NODE_ENV).
The npm package requi-re receives a total of 4 weekly downloads. As such, requi-re popularity was classified as not popular.
We found that requi-re 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.