New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

yoke

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yoke

preprocessor that does language agnostic concatenation

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

yoke

Preprocessor for simple file concatenation.

Yoke is a declarative way to concatenate files for Front-End development. Within a .yoke file, list the files you would like put together.

Install

npm install yoke

Example

Inside a bundle.js.yoke list the files you want concatenated together.

js/license.js
js/angular.js
js/persona.js
js/swipe.js
js/app.js

Yoke fetches the content of all those files (in parallel) and merges them together preserving the order.

CLI

The yoke command outputs a stream with the concatenated output.

yoke bundle.js.yoke

To save, simply pipe the output to a destination file.

yoke bundle.js.yoke > bundle.js

API

var yoke = require("yoke")

// Using Promises
yoke("bundle.js.yoke").then(function(output){
  console.log(output)
})

// Using async/await
var output = await yoke("bundle.js.yoke")

// Using callbacks
yoke("bundle.js.yoke", function(err, output){
  console.log(output)
})

License

MIT

Keywords

concat

FAQs

Package last updated on 03 Mar 2026

Did you know?

Socket

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.

Install

Related posts