![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.
warp.firstclass
Advanced tools
Allows to access all your modules directly like: require('moduleName') by creating symlinks
Makes your node modules first class, so:
// no more:
require('../../../awesomeModule')
// just:
require('awesomeModule').
It creates symlinks in ./node_modules for all the root directories in provided 'dirToLink' directory. Works on Mac, Linux and Windows.
Say you have project structure like
models
config
controllers
This would allow to require any modules in './backend' directory directly.
npm install warp.firstclass
warp.firstclass './backend/'
Now if you somewhere deep below in you controllers, you can still do:
var db = require('models'); //instead of require('../../../models')
add the following to package.json
scripts": { "preinstall": "warp.firstclass './backend/'"}
You get error " -bash: warp.firstclass: command not found "
node node_modules/warp.firstclass/bin/warp.firstclass.js './backend/'
If you get permissions errors when running npm install
you might need to run it as a root user (admin). so:
Linux/Mac
sudo npm install --unsafe-perm
The --unsafe-perm option insures that it actually gets runned as root, because when you run npm install
as a root NPM tries to downgrade its privileges.
Windows
FAQs
Allows to access all your modules directly like: require('moduleName') by creating symlinks
The npm package warp.firstclass receives a total of 1 weekly downloads. As such, warp.firstclass popularity was classified as not popular.
We found that warp.firstclass 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
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.