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.
Helps a module find its package.json
mothership.
var findShip = require('mothership')
, path = require('path');
findShip(
path.join(__dirname, 'uno', 'dos', 'tres')
, function ismothership (pack) {
return !!(pack.dependencies && pack.dependencies.unodep);
}
, function (err, res) {
if (err) return console.error(err);
console.log('first mothership', res.path); // => [..]/example/uno/package.json
}
)
npm install mothership
Searches upwards from start for package.json files, asking for each if it is the mothership. If a mothership is found it calls back with that. If it reaches the top of the univers it calls back with nothing.
path
: full path to the package.json
that is the mother shippack
: the package.json
object, same that was passed to ismothershipName | Type | Description |
---|---|---|
start | string | full path at which to start looking for the mothership |
ismothership | function | invoked with the package object, needs to return true if it is the mothership |
cb | function | called back with either an error or full path to package.json that is the mothership |
generated with docme
MIT
FAQs
Helps a module find its package.json mothership.
The npm package mothership receives a total of 24,502 weekly downloads. As such, mothership popularity was classified as popular.
We found that mothership 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.