@the-/util-file

File utility for the-framework

Usage no npm install needed!

<script type="module">
  import theUtilFile from 'https://cdn.skypack.dev/@the-/util-file';
</script>

README

@the-/util-file

npm Version

File utility for the-framework

Installation

$ npm install @the-/util-file --save

Usage

'use strict'

const { readAsJsonSync } = require('@the-/util-file')

async function tryExample() {
  const data = readAsJsonSync('conf/foo.json')
  console.log(data)
}

tryExample().catch((err) => console.error(err))

API Guide

See API Guide for more detail

License

This software is released under the MIT License.

Links