Test Package
raw JSON → 0.0.1 verified Sat Apr 25 auth: no javascript
A minimal test package with version 0.0.1. This package has no README and appears to be a placeholder or early-stage project. Its release cadence and key differentiators are unknown. No alternative comparisons are available. Use with caution as the API surface is undefined and may change without notice.
Common errors
error ERR_PACKAGE_PATH_NOT_EXPORTED: Package subpath './dist/index.js' is not defined by "exports" in package.json ↓
cause Using a subpath import that is not exported by the package.
fix
Import from main entry: import pkg from 'test-package'
Warnings
gotcha Package version 0.0.1 is pre-release and may break without major version bump. ↓
fix Pin version or use ^0.0.1 for unstable API.
Install
npm install test-package yarn add test-package pnpm add test-package Imports
- default wrong
const pkg = require('test-package')correctimport pkg from 'test-package' - namedExport wrong
import namedExport from 'test-package'correctimport { namedExport } from 'test-package' - Type wrong
import { Type } from 'test-package'correctimport type { Type } from 'test-package'
Quickstart
import pkg from 'test-package'
// Assuming a default export function
const result = pkg.doSomething({
key: process.env.KEY ?? 'fallback',
})
console.log(result)