Answers for "how to write file in a directory that doesn't exist in node js"

0

Node Folder or file exists

const { exists } = require("fs");  
var fs = require( 'fs' ),
    path = require( 'path' ),
    expect = require( 'expect' ),

  exists(path.join(__dirname, "\\node_modules\\.bin\\"), (e) => {
    console.log(e ? "\\node_modules\\.bin\\ exists" : "\nInstall missing packages\n");
  });
Posted by: Guest on September-08-2021

Code answers related to "how to write file in a directory that doesn't exist in node js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language