New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

install-self

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

install-self

Self-reference an NPM module and get rid of relative references

  • 1.0.0-beta.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

install-self

reference your npm module from itself

Usage

npm install install-self --save-dev

Add install-self to your npm scripts or install it globally and run direct from your CLI

Reference your package

// es5
var package = require("package-name");

// es6
import { something } from "package-name";

Good news it works with TypeScript too (including typings!)

Why?

Simplify the process of integration testing NPM modules

If your NPM module depends on a package that depends on a different version of the original module then this can cause problems with using things like npm link

How?

It simply puts your package.json into the node_modules folder and updates the references

Keywords

FAQs

Package last updated on 06 Dec 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc