
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
combine-source
Advanced tools
[![npm package][npm-img]][npm-url] [![Build Status][build-img]][build-url] [![Downloads][downloads-img]][downloads-url] [![Issues][issues-img]][issues-url] [![Code Coverage][codecov-img]][codecov-url] [![Commitizen Friendly][commitizen-img]][commitizen-ur
combine-source is a TypeScript library designed to combine multiple source files and their corresponding source maps into a single file and source map. This is particularly useful for bundling JavaScript/TypeScript projects where maintaining accurate source maps is crucial for debugging.
To install the dependencies, use yarn:
yarn install combine-source
Or use npm:
npm install combine-source
Here's an example of how to use the combineSource function:
import { CombineFile, combineSource } from 'combine-source';
const files: CombineFile[] = [
{
code: 'console.log("File 1");',
map: {
/* source map object for file 1 */
},
},
{
code: 'console.log("File 2");',
map: {
/* source map object for file 2 */
},
},
];
const result = combineSource(files);
console.log(result.code); // Combined code
console.log(result.map); // Combined source map
test: Run tests using Vitest.build: Build the project using tsup.prepublishOnly: Build the project before publishing.This project is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request.
For any questions or issues, please open an issue on this repository.
FAQs
[![npm package][npm-img]][npm-url] [![Build Status][build-img]][build-url] [![Downloads][downloads-img]][downloads-url] [![Issues][issues-img]][issues-url] [![Code Coverage][codecov-img]][codecov-url] [![Commitizen Friendly][commitizen-img]][commitizen-ur
The npm package combine-source receives a total of 12 weekly downloads. As such, combine-source popularity was classified as not popular.
We found that combine-source 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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.