Catalog npm
PACKAGE EXPLORERView in registry

@0ti.me/en-path

npm

An enhanced path module

Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 22:15 UTC

README

Current package documentation

en-path

srelative

// This fails because the path ends up being 'module.js' which require will interpret as an npm dependency instead of a file path
const path = require('path');
const module = require(path.relative(__dirname, 'module.js'));

An enhanced path module that adds a srelative function that ensures all paths are usable by require. You can see it in action here:

const enPath = require('en-path');
const module = require(enPath.srelative(__dirname, 'module.js'));

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.0Registry latest15 Aug 20201

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0time/en-path

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:15 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f79e7fdf03009ff6ef468fd190f6d4ea481747d3efaab1e7aa711e874c830a31