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

eol-converter-cli

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eol-converter-cli - npm Package Compare versions

Comparing version 0.0.4 to 1.0.0

2

package.json
{
"name": "eol-converter-cli",
"version": "0.0.4",
"version": "1.0.0",
"description": "Newline (EOL) coverter CLI for NodeJs (github repo soon) - Currently doing only CRLF -> LF convertion",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -9,3 +9,3 @@ #!/usr/bin/env node

const [argv] = process.argv;
const argv = process.argv;
const inputFiles = argv[argv.length - 1]

@@ -15,2 +15,4 @@ const isWarmup = argv[argv.length - 2] === 'warmup'

const dir = process.cwd()
console.log('Running in directory ' + dir)
console.log('Files GLOB regex: ' + inputFiles)

@@ -28,3 +30,3 @@ console.log(isWarmup ? 'WARMUP: will only list files, no action will be performed - run `convertToLF` to do conversion' : '')

try {
const file = fs.readFileSync(fileName)
const file = fs.readFileSync(path.join(dir, fileName))
const converted = isCrlf ? eol.crlf(file.toString()) : eol.lf(file.toString())

@@ -31,0 +33,0 @@ fs.writeFileSync(fileName, converted);

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