Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

ipjs

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipjs

Universal JavaScript build and packaging system


Version published
Weekly downloads
72
increased by414.29%
Maintainers
2
Weekly downloads
 
Created
Source

Schema

The directory layout of every package directory looks something like:

/mypkg
/mypkg/index.js // imports '#ipjs/two'
/two/index.js

Every target is its own directory like this, we don't worry about overlap in the file contents because DAG de-duplication takes care of this for us.

This means that an import of '#ipjs/two' is re-written simply as ../two/index.js for Node.js.

The broswer-ipjs build is slightly different. It links every file to /_ipjs/CID.js for maximal caching in the browser.

type Dependencies { String: Package }

# Directory is a UnixFSv2 directory
type Package struct {
  name String
  deps Dependencies

  lambda optional Directory
  nodejs-esm optional Directory
  nodejs-cjs optional Directory
  deno optional Directory
  browser optional Directory
  browser-esm optional Directory
  browser-ipjs optional Directory
}

From all this we can also output a package for npm that works across every environment using a mix of entry point fields in package.json and a lot of mostly duplicated files.

FAQs

Package last updated on 14 Aug 2020

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