![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@universal-packages/package-json
Advanced tools
package.json
utils.
npm install @universal-packages/package-json
readPackageJson([name: string])
Reads the package.json
file as a JSON of the current working directory or if a package name is passed and its installed under node_modules
the package.json
is read from that package.
import { readPackageJson } from '@universal-packages/package-json'
const json = readPackageJson('jest')
console.log(json)
// > { name: 'jest', ...}
PackageJson
for a more in deep mapping of the package.json
file.
import { PackageJson } from '@universal-packages/package-json'
const packageJson = new PackageJson()
packageJson.read()
read()
Reads the root package.json
file and all its dependencies recursively generating a new PackageJson
object for ech dependency.
name:string
Name of the package being mapped.
version:string
Version of the package being mapped.
json: Object
The package.json
object of the package being mapped.
flatDependencies: Object<PackageJson>
All the uniq dependencies read while reading recursively.
dependencies: Object<PackageJson>
Collection of all dependencies read as PackageJson objects.
devDependencies: Object<PackageJson>
Collection of all devDependencies read as PackageJson objects.
peerDependencies: Object<PackageJson>
Collection of all peerDependencies read as PackageJson objects.
peerDependenciesMeta: Object<PackageJson>
Collection of all peerDependenciesMeta read as PackageJson objects.
bundleDependencies: Object<PackageJson>
Collection of all bundleDependencies read as PackageJson objects.
optionalDependencies: Object<PackageJson>
Collection of all optionalDependencies read as PackageJson objects.
This library is developed in TypeScript and shipped fully typed.
The development of this library happens in the open on GitHub, and we are grateful to the community for contributing bugfixes and improvements. Read below to learn how you can take part in improving this library.
FAQs
package.json utils
The npm package @universal-packages/package-json receives a total of 1,934 weekly downloads. As such, @universal-packages/package-json popularity was classified as popular.
We found that @universal-packages/package-json 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.