Socket
Socket
Sign inDemoInstall

@publica/xid-js

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@publica/xid-js

XID.js ================================


Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

XID.js

XID.js is a loose port of github.com/rs/xid to JavaScript. This implementation currently assumes little endian.

XID seed providers

Due to brower-side security and privacy, the XIDs assumption of having a readable process ID and machine ID is unavailable on the client. Thus, we are unable to fully compute a unique ID using just a barebones XID implemenation. To facilitate generating an unique ID, the XID seed provider has been split off into its own module that can be overridden at build time.

There are 2 implementation examples:

Webpack v2 Override Settings

In webpack v2, use the resolve.alias setting to override the default xid-js-seed implementation.

{
    resolve: {
        extensions: ['.js'],
        symlinks: false,
        alias: {
            // "xid-js-seed": __dirname + "/node_modules/@publica/xid-js-random/dist/seed"
            "xid-js-seed": __dirname + "/test/seed.test.js"
        },
    },
    ...
}

FAQs

Package last updated on 22 Jul 2017

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