RepoNecromancer
morgue / specimen / crypt-keeper-cli

crypt-keeper

A note-sealing CLI that won't even load: GLOBAL, os.tmpDir() and util.print are gone.
era CLI · Node 0.6† 2012-11-02files 2 · lines 99
pulse · before
21%
pulse · after
—
☠
cause of death
util.puts/print/debug/error (removed in Node 12) (bin/crypt.js:10)
5
dependencies audited
2
dead or deprecated
12
breaking call sites
4
config fossils

Dependency graveyard

live npm registry · 2026-11-27
packagedeclaredlateststatusdiagnosistreatment
optimist0.3.50.6.1deadDeprecated and unmaintained since 2014; the author points to yargs.→ yargs-parser@^22.0.0
left-pad1.1.31.3.0deprecatedThe 2016 left-pad incident package. String.prototype.padStart is native since ES2017.remove
mkdirp0.3.43.0.1fossilfs.mkdir({ recursive: true }) is native since Node 10.12.remove
mocha dev1.7.012.0.3fossilLegacy test runner; node:test is built into Node 20+.remove
rimraf2.0.26.1.4fossilfs.rm({ recursive: true, force: true }) is native since Node 14.14.remove

Config fossils

4
  • Travis CI config
    travis-ci.org shut down in 2021; targets Node 0.6, 0.8. CI has been silently dead.
    → Replace with a GitHub Actions workflow on Node 20/22.
    .travis.yml
  • engines.node ">=0.6"
    Pinned to a Node.js release that reached end-of-life years ago.
    → Set engines.node to ">=20".
    package.json
  • No lockfile
    Installs are not reproducible; the dependency tree drifts on every install.
    → Commit the package-lock.json generated by the first `npm install`.
    (none)
  • No license
    Nobody can legally reuse the resurrected code.
    → Add an OSI license (MIT/Apache-2.0).
    (none)

Breaking changes in the code

17 patchable · 0 flagged
  • util.puts/print/debug/error (removed in Node 12)
    util.puts('sealed into ' + file);
    bin/crypt.js:10
  • util.puts/print/debug/error (removed in Node 12)
    util.puts(crypt.exhume(argv._[1], argv.key || 'raven'));
    bin/crypt.js:12
  • util.puts/print/debug/error (removed in Node 12)
    util.puts('the crypt is empty');
    bin/crypt.js:15
  • util.puts/print/debug/error (removed in Node 12)
    util.print(crypt.tombstone('CRYPT KEEPER', 24), '\n');
    bin/crypt.js:17
  • util.puts/print/debug/error (removed in Node 12)
    util.print('usage: crypt <seal|open|purge> <name> [text] [--key secret]', '\n');
    bin/crypt.js:18
  • GLOBAL → globalThis (removed in Node 12)
    GLOBAL.CRYPT_VERSION = '0.2.0';
    lib/crypt.js:8
  • os.tmpDir() → os.tmpdir() (removed in Node 14)
    return path.join(os.tmpDir(), 'crypt-keeper');
    lib/crypt.js:56
  • GLOBAL → globalThis (removed in Node 12)
    return GLOBAL.CRYPT_VERSION;
    lib/crypt.js:77
  • new Buffer() → Buffer.from()/Buffer.alloc()
    var k = new Buffer(key);
    lib/crypt.js:11
  • new Buffer() → Buffer.from()/Buffer.alloc()
    var out = new Buffer(buf.length);
    lib/crypt.js:12
  • new Buffer() → Buffer.from()/Buffer.alloc()
    return xor(new Buffer(text, 'utf8'), key).toString('base64');
    lib/crypt.js:25
  • new Buffer() → Buffer.from()/Buffer.alloc()
    return xor(new Buffer(sealed, 'base64'), key).toString('utf8');
    lib/crypt.js:34
  • optimist → yargs-parser
    var argv = require('optimist').argv;
    bin/crypt.js:3
  • left-pad → String.prototype.padStart
    return leftPad(name, width, ch);
    lib/crypt.js:45
  • left-pad → String.prototype.padStart
    return leftPad(name, pad);
    lib/crypt.js:48
  • mkdirp → fs.mkdir({ recursive: true })
    mkdirp.sync(dir);
    lib/crypt.js:61
  • rimraf → fs.rm({ recursive: true, force: true })
    rimraf.sync(exports.cryptDir());
    lib/crypt.js:73

Migration plan

generated from .kiro/specs/migration-plan

01Exhume config fossils

  • Travis CI config: Replace with a GitHub Actions workflow on Node 20/22.
  • engines.node ">=0.6": Set engines.node to ">=20".

02Transplant dependencies

  • left-pad@1.1.3 → removed — Call sites migrated by left-pad-to-padstart.
  • mkdirp@0.3.4 → removed — Call sites migrated by mkdirp-to-fs.
  • optimist@0.3.5 → yargs-parser@^22.0.0 — Swapped by optimist-to-yargs-parser.
  • rimraf@2.0.2 → removed — Call sites migrated by rimraf-to-fs.
  • mocha@1.7.0 → removed — Replaced by the generated node:test suite.

03Suture breaking changes (AST codemods)

  • optimist → yargs-parser — 1 patched
  • util.puts/print/debug/error (removed in Node 12) — 5 patched
  • GLOBAL → globalThis (removed in Node 12) — 2 patched
  • new Buffer() → Buffer.from()/Buffer.alloc() — 4 patched
  • left-pad → String.prototype.padStart — 2 patched
  • os.tmpDir() → os.tmpdir() (removed in Node 14) — 1 patched
  • mkdirp → fs.mkdir({ recursive: true }) — 1 patched
  • rimraf → fs.rm({ recursive: true, force: true }) — 1 patched

04Galvanize regression tests

  • test/necro/examples.test.cjs: 8 jsdoc-example cases
  • test/necro/modules.test.cjs: 1 module-load case
  • test/necro/boot.test.cjs: 1 entrypoint-boot case

05Verify pulse

  • npm install on Node 20/22
  • npm test → node --test test/necro/examples.test.cjs test/necro/modules.test.cjs test/necro/boot.test.cjs