{"_id":"@0ti.me/en-path","_rev":"1-12fbe887098f458724b750a6a8aa7b4a","name":"@0ti.me/en-path","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@0ti.me/en-path","version":"0.1.0","description":"An enhanced path module","license":"GPL-3.0","main":"src/index.js","scripts":{"lint":"eslint .","run-coveralls":"NODE_ENV=unit nyc report --reporter=text-lcov | coveralls","test":"yarn lint && yarn test:unit && yarn test:coveralls && yarn test:integration","test:coveralls":"yarn if-env-run CI yarn run-coveralls","test:integration":"NODE_ENV=integration yarn nyc mocha","test:unit":"NODE_ENV=unit yarn nyc mocha"},"repository":{"type":"git","url":"git+https://github.com/0time/en-path.git"},"private":false,"publishConfig":{"access":"public"},"devDependencies":{"@0ti.me/test-deps":"^0.1.16"},"gitHead":"3c1c56ab523ba55770448b3af08e87f93951189e","bugs":{"url":"https://github.com/0time/en-path/issues"},"homepage":"https://github.com/0time/en-path#readme","_id":"@0ti.me/en-path@0.1.0","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-lde72ajBq/CN3eXiztuP4vsFgMzfLk8HRhnqdzbTiY5yjQiisaC2CC0a/vfdSms2ZsAxiz94GeAijktI4t+KPw==","shasum":"410504d6b47a07573ffe94ac8a2666c8d5fd053c","tarball":"https://registry.npmjs.org/@0ti.me/en-path/-/en-path-0.1.0.tgz","fileCount":4,"unpackedSize":1674,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfN2ezCRA9TVsSAnZWagAAMFEQAII1+1xSJ2+pKjVQd1QF\n4Yj0anROiALjRG/IntRW+oysXZ8DzdhKtFnWvb7D+WutV8esbqwHpw8CJAVp\nbVY8ZzAgf/Bpy2PMmbOmtVv3d0JWRM9DWms5nuwr/2AKZiA6rWuPlJb7kdBL\n41fv28oGGXJLNVNNJR3AZmxkeJb5xbN4PEegLTSzZe2p2wLxxdkPtmQc1n2g\ndRoyuGSkX7baP0+0PMXfzKLmk2BNQ6WCxL+7vOyLbrQW7javSbOJVDJclcoK\nGl2d2BcJY6tFBHFbwKvhYk5dP05qOibSoa+RKEshI8+qmY99uVOg9sADUbYc\nu4Lxs5fIeVFkU0TqNslnC2Ncz9mmIu67djT2ukOIDp6DHuhHRbllp6jWLPJt\njaqPtouHlAjNS/IQb2lKV4JEPvHjN5Mg7gGZy58BH8Y1LydCpODM22Evh5hH\nrVBotSjTtvCWKQTGcSY5aenY41AQja1OFAMOyZ9x6164kzy+1XyRrsUZ5Irp\nei6diEzIt1bdpEcuuJ1CjSFyUIyLlXY6deY1wDQs5ixCv9tSdkN7KeUwkUut\nVekSoGcg3AQaCVGwLpUIiwGxpHPVo03yiodP/LGwcNcsF5wBoopMX3d5igLo\nfvRLFbC6Hc8cGdcZOBcSH52eEZjQOO1YnVcg6P5cBgwN/15AlXwOILXV0V/h\njDWv\r\n=YaSB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBA9IctZOrBK5f57rwQhFxt6KrDTGCqV6MoMQ2EmLe+wIgFG0s+J89j9fA9RNtuUMhtsdMzl5abbrpr+X534TWZR8="}]},"maintainers":[{"name":"hibes","email":"npm@0ti.me"}],"_npmUser":{"name":"hibes","email":"npm@0ti.me"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/en-path_0.1.0_1597466546812_0.7596444494329395"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-15T04:42:26.597Z","0.1.0":"2020-08-15T04:42:26.949Z","modified":"2022-04-04T10:26:15.809Z"},"maintainers":[{"name":"hibes","email":"npm@0ti.me"}],"description":"An enhanced path module","homepage":"https://github.com/0time/en-path#readme","repository":{"type":"git","url":"git+https://github.com/0time/en-path.git"},"bugs":{"url":"https://github.com/0time/en-path/issues"},"license":"GPL-3.0","readme":"# en-path\n\n## srelative\n    // This fails because the path ends up being 'module.js' which require will interpret as an npm dependency instead of a file path\n    const path = require('path');\n    const module = require(path.relative(__dirname, 'module.js'));\n\nAn enhanced path module that adds a srelative function that ensures all paths are usable by require. You can see it in action here:\n\n    const enPath = require('en-path');\n    const module = require(enPath.srelative(__dirname, 'module.js'));\n","readmeFilename":"README.md"}