UNPKG

hello-npm-tslint-rollup

Version:

Well that's a mouthfull. This package is a test package. It is supposed to let you know whether `package.json` file is in your current working directory `process.cwd()`. The name references the module bundler `rollup` and my own automation-script [tslint]

17 lines (12 loc) 315 B
'use strict'; var path = require('path'); var fs = require('fs'); function greet() { return "Hello World!"; } function main() { const hello = greet(); console.log(hello); console.log("PACKAGE.JSON IN ROOT? ", fs.existsSync(path.resolve(process.cwd(), "package.json"))); } module.exports = main;