File: index.cjs

package info (click to toggle)
node-load-json-file 7.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 156 kB
  • sloc: javascript: 93; makefile: 4
file content (10 lines) | stat: -rw-r--r-- 282 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
const {loadJsonFile,loadJsonFileSync} = require('./dhnodejsBundle.cjs');
const res = (...args) => {
    return loadJsonFile(...args);
}
// Old API
res.sync = loadJsonFileSync;
// New API
res.loadJsonFile = loadJsonFile;
res.loadJsonFileSync = loadJsonFileSync;
module.exports = res