0.0.1-alpha • Published 6 years ago

twinsies v0.0.1-alpha

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Twinsies npm.io npm.io

Pluggable file copier. WIP

const Twinsies = require('twinsies')

new Twinsies({
  source: './src',
  target: './dist',
  matches: [
    /.*\.json/,
    /.*\.yml/
  ],
  process: string => string.replace(/<SERVICE_NAME>/g, 'My Awesome Service')
}).register(
  (...files) => console.log(
    files.map(file => `Written ${file}`).join('\n')
  )
).start()