write-to-path

Given a file path, return a function that will synchronously write to it

Usage no npm install needed!

<script type="module">
  import writeToPath from 'https://cdn.skypack.dev/write-to-path';
</script>

README

write-to-path

Given a file path, return a function that will synchronously write to it

var writer = require('write-to-path')

var write = writer('./bundle.js', {debug: true})

write(null, src) // writes the file