node-generate-csv
Advanced tools
Comparing version 1.0.1 to 1.0.2
import * as fs from "fs"; | ||
import path from "path"; | ||
/** | ||
* Create CSV by object or JSON file | ||
* | ||
* @param arg - Data of object for generate CSV | ||
* @param filename - Name to export file (include name folder) | ||
*/ | ||
export class CreateExportCSV<T extends {}> { | ||
@@ -5,0 +11,0 @@ constructor(public arg: T[], public filename: string) { |
module.exports = { | ||
roots: ["<rootDir>/src"], | ||
roots: ["<rootDir>"], | ||
testMatch: [ | ||
@@ -4,0 +4,0 @@ "__tests__/*.+(ts|tsx|js)", |
{ | ||
"name": "node-generate-csv", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Create CSV by codrrdev", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "test": "jest", |
@@ -14,3 +14,3 @@ { | ||
/* Language and Environment */ | ||
"target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ | ||
"target": "ES2020" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, | ||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ | ||
@@ -28,3 +28,3 @@ // "jsx": "preserve", /* Specify what JSX code is generated. */ | ||
/* Modules */ | ||
"module": "commonjs", /* Specify what module code is generated. */ | ||
"module": "commonjs" /* Specify what module code is generated. */, | ||
// "rootDir": "./", /* Specify the root folder within your source files. */ | ||
@@ -47,8 +47,8 @@ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ | ||
/* Emit */ | ||
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ | ||
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ | ||
// "declarationMap": true, /* Create sourcemaps for d.ts files. */ | ||
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ | ||
"sourceMap": true, /* Create source map files for emitted JavaScript files. */ | ||
"sourceMap": true /* Create source map files for emitted JavaScript files. */, | ||
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */ | ||
"outDir": "./dist", /* Specify an output folder for all emitted files. */ | ||
"outDir": "./dist" /* Specify an output folder for all emitted files. */, | ||
// "removeComments": true, /* Disable emitting comments. */ | ||
@@ -75,8 +75,8 @@ // "noEmit": true, /* Disable emitting files from a compilation. */ | ||
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ | ||
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */ | ||
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */, | ||
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ | ||
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ | ||
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */, | ||
/* Type Checking */ | ||
"strict": true, /* Enable all strict type-checking options. */ | ||
"strict": true /* Enable all strict type-checking options. */, | ||
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */ | ||
@@ -103,4 +103,9 @@ // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */ | ||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
} | ||
"skipLibCheck": true /* Skip type checking all .d.ts files. */ | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"__test__" | ||
] | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18428
10
274
2