{"id":25252,"library":"es6-node-module","title":"es6-node-module","description":"An early experimental library for describing Node.js modules using ES6 module notation and transpiling them to CommonJS. Version 0.1.0 is the initial release. It resolves local and npm imports. This project is an early prototype from 2014 and has not seen updates; it is effectively abandoned. Key differentiator: allows authoring ES6 modules and transpiles to ES5 CommonJS, but predates modern standards like Babel.","status":"abandoned","version":"0.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/christyharagan/es6-node-module","tags":["javascript","node","es6","harmony","module","commonjs","transpiler"],"install":[{"cmd":"npm install es6-node-module","lang":"bash","label":"npm"},{"cmd":"yarn add es6-node-module","lang":"bash","label":"yarn"},{"cmd":"pnpm add es6-node-module","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM import works if using modern Node (>=13) or bundler; original usage was CommonJS require()","symbol":"NodePackage","correct":"import { NodePackage } from 'es6-node-module'"},{"note":"Original documentation used .nodePackage on the require result; same as destructuring but valid","wrong":"const NodePackage = require('es6-node-module').nodePackage;","symbol":"nodePackage","correct":"const { nodePackage: NodePackage } = require('es6-node-module');"},{"note":"Can be imported as named export or via destructuring require","wrong":"const getDependencies = require('es6-node-module').getDependencies;","symbol":"getDependencies","correct":"import { getDependencies } from 'es6-node-module'"}],"quickstart":{"code":"const { NodePackage, getDependencies } = require('es6-node-module');\n\nconst nodePackage = new NodePackage('/some/node/path');\nconst utilModule = nodePackage.getModule('./lib/util');\n\nconsole.log(utilModule.fullPath);\nconsole.log(utilModule.src);\nconsole.log(utilModule.toCJSString());\n\nconst deps = getDependencies(true, false, utilModule);\ndeps.forEach(dep => console.log(dep.fullPath));","lang":"javascript","description":"Shows how to load a NodePackage, retrieve a module, transpile to CJS, and get recursive dependencies."},"warnings":[{"fix":"Use modern tools like Babel, SWC, or esbuild instead.","message":"Package is no longer maintained and does not support modern ES6/ES2015+ syntax.","severity":"deprecated","affected_versions":"<=0.1.0"},{"fix":"Use Node.js 0.10.x – 0.12.x, or avoid this package.","message":"The package is not compatible with Node.js >=14; engine requirement is >=0.10.0 but may fail on newer Node versions.","severity":"gotcha","affected_versions":"==0.1.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install es6-node-module --save --legacy-peer-deps","cause":"Package is very old and may need npm install with --legacy-peer-deps","error":"Error: Cannot find module 'es6-node-module'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}