![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.
Loads the package.json from the root of the user's current project.
HEADS UP!
Breaking changes in v2.0. The main export is now a function that must be called. This is so that the package.json is lazily loaded when the function is called.
Install with npm
$ npm i load-pkg --save
var loadPkg = require('load-pkg');
// get the package.json from the cwd
loadPkg(function(err, pkg) {
console.log(pkg.name);
//=> 'load-pkg'
});
// get the package.json from the specified directory
loadPkg('~/foo/bar', function(err, pkg) {
console.log(pkg.name);
//=> 'load-pkg'
});
var pkg = require('load-pkg').sync(process.cwd());
console.log(pkg.name);
//=> 'load-pkg'
Specify the cwd or filepath to start from:
var pkg = require('load-pkg').sync('a/b/c');
console.log(pkg.name);
//=> 'foo'
Install dev dependencies:
$ npm i -d && npm test
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Brian Woodward
Copyright © 2015 Brian Woodward Released under the MIT license.
This file was generated by verb on December 13, 2015.
FAQs
Loads package.json, by finding the first directory with a package.json, recursing up, starting with the given directory.
The npm package load-pkg receives a total of 37,052 weekly downloads. As such, load-pkg popularity was classified as popular.
We found that load-pkg 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.