
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@cjkihl/create-exports
Advanced tools
Tool to generate package exports configuration for TypeScript packages
A powerful tool to automatically generate exports and binary entries in your package.json based on your TypeScript files. Streamline your TypeScript package configuration with zero manual effort.
.pub.ts
, .pub.tsx
).bin.ts
, .bin.tsx
)# Using npm
npm install @cjkihl/create-exports
# Using yarn
yarn add @cjkihl/create-exports
# Using pnpm
pnpm add @cjkihl/create-exports
# Using bun
bun add @cjkihl/create-exports
# Show help
create-exports --help
# Run with default settings
create-exports
# Dry run to see what would change
create-exports --dry-run
# Use custom package.json and tsconfig.json
create-exports --package-json ./custom/package.json --tsconfig ./custom/tsconfig.json
-p, --package-json <path>
: Path to package.json file-t, --tsconfig <path>
: Path to tsconfig.json file-d, --dry-run
: Show what would be changed without writing-h, --help
: Show help messageimport { createExports } from "@cjkihl/create-exports";
// With default options
await createExports();
// With custom options
await createExports({
packageJsonPath: "./custom/package.json",
tsconfigPath: "./custom/tsconfig.json",
dryRun: true
});
Files that should be exported must end with .pub.ts
or .pub.tsx
. For example:
index.pub.ts
→ exported as rootsrc/utils.pub.ts
→ exported as ./src/utils
src/components/index.pub.tsx
→ exported as ./src/components
Files that should be available as CLI commands must end with .bin.ts
or .bin.tsx
. For example:
cli.bin.ts
→ available as cli
commandtools/helper.bin.ts
→ available as helper
commandThe tool will update your package.json with:
exports
field containing all public exports with their TypeScript typesbin
field containing all binary entriesExample output:
{
"exports": {
".": {
"types": "types/index.pub.d.ts",
"default": "dist/index.pub.js"
},
"./src/utils": {
"types": "types/src/utils.pub.d.ts",
"default": "dist/src/utils.pub.js"
}
},
"bin": {
"cli": "dist/cli.bin.js",
"helper": "dist/tools/helper.bin.js"
}
}
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)This project is MIT licensed.
Give a ⭐️ if this project helped you!
If you find this project helpful, please consider sponsoring me on GitHub:
Your support helps me maintain and improve this project!
FAQs
Tool to generate package exports configuration for TypeScript packages
We found that @cjkihl/create-exports demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.