
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Utility for moving and renaming files in a TypeScript project.
See this Stack Overflow question for background and motivation.
To get going, create a file containing the path to your tsconfig.json followed by a list of moves you'd like to do:
$ cat moves.txt
/path/to/project/tsconfig.json
src/oldname.ts --> src/newname.ts
src/file.ts --> src/newmodule/file.ts
src/file2.ts --> src/newmodule/
Then run ts-mover
on this file:
npx ts-mover moves.txt
And you're good to go! Moves are only committed to disk once they all succeed.
$ yarn
$ yarn tsc
To test:
$ yarn tsc
$ node dist/index.js moves.sample.txt
Initializing project tsconfig.json
Project source files:
src/index.ts
Moving src/index.ts --> src/mover.ts
(Be patient, the first move takes the longest.)
elapsed: 455 ms
Saving changes to disk...
$ git status
deleted: src/index.ts
Untracked files:
(use "git add <file>..." to include in what will be committed)
src/mover.ts
FAQs
Utility for moving and renaming files in a TypeScript project
We found that ts-mover demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.