Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bionode-sam

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bionode-sam - npm Package Compare versions

Comparing version 0.0.5 to 1.0.1

28

cli.js
#!/usr/bin/env node
var through = require('through2')
var minimist = require('minimist')
var bionodeSAM = require('./')
var args = process.argv.slice(2)
var args = minimist(process.argv.slice(2))
var command = args[0] //args.length > 2 ? args.slice(0, args.length-2) : null
var command = args._[0]
var lastArg = args._[args._.length - 1]
var wantsStdin = false
if (lastArg === '-') {
wantsStdin = true
args._.pop()
}
var srdDest

@@ -18,17 +26,15 @@

process.stdin.setEncoding('utf8');
if (!process.stdin.isTTY) {
if (wantsStdin) {
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(data) {
var data = data.trim()
if (data === '') { return }
args.push(data.trim())
var samStream = sam(args)
args._.push(data.trim())
var samStream = sam(args._)
samStream.pipe(JSONstringify()).pipe(process.stdout)
samStream.on('error', console.log)
})
}
else {
var samStream = sam(args)
} else {
var samStream = sam(args._)
samStream.pipe(JSONstringify()).pipe(process.stdout)

@@ -35,0 +41,0 @@ samStream.on('error', console.log)

{
"name": "bionode-sam",
"description": "Node.js wrapper for samtools.",
"version": "0.0.5",
"version": "1.0.1",
"homepage": "http://github.com/bionode/bionode-sam",

@@ -15,3 +15,4 @@ "repository": {

"dependencies": {
"through2": "~0.5.1"
"through2": "~0.5.1",
"minimist": "^1.1.0"
},

@@ -18,0 +19,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc