
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
Execute shell commands with Fly
npm install --save-dev fly-shell
fly-shell uses execa as its child_process wrapper. This means it has the same options as child_process.exec and shares execa's additional options.
Type: string
Any occurrences of $file will be replaced with the the relevant filepath or glob pattern.
Type: object
See child_process.exec and execa for more info.
Type: boolean
If the command should use the glob pattern within source(), you must set this to true or 1. See here for example.
You can apply a command to each file of your glob match.
Instances of $file will be replaced by the file's path.
exports.default = function * () {
yield this.source('src/*.js')
.shell('cat $file')
//=> fly-shell: console.log('this is src/a.js')
//=> fly-shell: console.log('this is src/b.js')
//=> fly-shell: console.log('this is src/c.js')
.dist('dist');
}
You can use the current glob within your shell command.
Note: Currently, only one glob pattern is supported.
Instances of $file will be replaced by the glob:
exports.default = function * () {
yield this.source('src/*.js')
.shell('cat $file', {glob: true})
//=> fly-shell:
//=> console.log('this is src/a.js')
//=> console.log('this is src/b.js')
//=> console.log('this is src/c.js')
.dist('dist');
}
Of course, command arguments may be passed within your command string.
exports.default = function * () {
yield this.source('src')
.shell('ls -alh $file', {glob: true})
.dist('dist');
}
MIT © Luke Edwards
FAQs
Execute shell commands with Fly
The npm package fly-shell receives a total of 0 weekly downloads. As such, fly-shell popularity was classified as not popular.
We found that fly-shell 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.