Socket
Book a DemoInstallSign in
Socket

@bcoe/test-alternate-main

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bcoe/test-alternate-main

teting a scoped package search (abc123)

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

test alternate main

Test specifying an alternate main:

package.json:

{
  "name": "@bcoe/test-alternate-main",
  "version": "1.0.1",
  "description": "teting a scoped package search (abc123)",
  "main": "foo.min.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "Ben Coe <ben@npmjs.com>",
  "license": "ISC",
  "dependencies": {
  },
  "repository": {
   "url": "https://github.com/bcoe-test/testing-publishes.git"
  }
}

index.js:

module.exports = {donotload: 'me'}

foo.min.js:

module.exports = {test: 'two'}
Benjamins-MacBook-Pro:tmp benjamincoe$ npm i  @bcoe/test-alternate-main
@bcoe/test-alternate-main@1.0.1 node_modules/@bcoe/test-alternate-main
Benjamins-MacBook-Pro:tmp benjamincoe$ node
> require('@bcoe/test-alternate-main')
{ test: 'two' }

FAQs

Package last updated on 16 Aug 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