
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Copy a typescript project from somewhere to otherwhere. Just like `cp` but patch import syntaxes.
Copy a typescript project from somewhere to otherwhere. Just like cp but patch import syntaxes.
复制一个 typescript 工程到另一个文件夹。就像 cp 命令一样,不过会自动处理其中的 import 语法。
npm i -g tscopy
tscopy source target [--ignore=]
tscopy ./zph/myproject ./zph/hisproject/src/submodule/myproject [--ignore=node_modules,package.json]
We will mkdir ./zph/hisproject/src/submodule/myproject then put files on ./zph/myproject
ignore: string. Split with ,, ignore some files, defaults to node_modules.import tscopy from 'tscopy';
tscopy({
source: './zph/myproject',
target: './zph/hisproject/src/submodule/myproject',
ignore: [ 'node_modules', /package\.json/ ]
});
ignore: string | (string | RegExp)[].The tsconfig.json in ./myproject:
{
"compilerOptions": {
"baseUrl": "../zph",
"paths": {
"react": "hisproject/node_modules/react",
"helper": "hisproject/src/utils/helper",
"myproject/*": "myproject/*",
}
}
}
tscopy ./zph/myproject ./zph/hisproject/src/submodule/myproject
Before in ./zph/myproject/src/index.tsx:
import React from 'react'
import helper from 'helper'
import CommonTable from 'myproject/src/component/CommonTable'
After in ./zph/hisproject/src/submodule/myproject/src/index.tsx:
import React from 'react'
import helper from '../../utils/helper'
import CommonTable from './component/CommonTable'
FAQs
Copy a typescript project from somewhere to otherwhere. Just like `cp` but patch import syntaxes.
We found that tscopy 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.