0.15.0 • Published 7 years ago

@raider/cross v0.15.0

Weekly downloads
-
License
-
Repository
-
Last release
7 years ago

@raider/cross

Upgrade a repo / package to use unix style line endings (works on all platforms).

NPM

CLI

npm i -g @raider/cross@latest

cross

@raider/cross will prompt user for confirmation before doing anything.

API

import cross from '@raider/cross'

cross((err) => {
  if(err)
    console.error(err)
})

omit the callback to return a promise

cross()
  .then(() => console.log('DONE'))
  .catch((err) => console.error(err))

async / await

(async function () {
  try {
    await cross()
    console.log('DONE')
  } catch (err) {
    console.error(err)
  }
})

@raider/cross is tested and made to work cross-platform.