Comparing version 1.2.4 to 1.2.5
@@ -5,14 +5,13 @@ const packageJson = require('./package.json'); | ||
module.exports = { | ||
'env': { | ||
browser: true, | ||
node: true | ||
env: { | ||
node: true | ||
}, | ||
'extends': [ | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:node/recommended' | ||
], | ||
'parserOptions': { | ||
'ecmaVersion': 9 | ||
parserOptions: { | ||
ecmaVersion: 9 | ||
}, | ||
'rules': { | ||
rules: { | ||
'node/exports-style': [2, 'module.exports'], | ||
@@ -23,4 +22,4 @@ 'node/file-extension-in-import': [2, 'always'], | ||
'node/prefer-global/process': [2, 'always'], | ||
'node/no-unpublished-require': [2, {'allowModules': devDependencies}] | ||
'node/no-unpublished-require': [2, {allowModules: devDependencies}] | ||
} | ||
}; |
{ | ||
"name": "njfs", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"keywords": [ | ||
@@ -22,5 +22,5 @@ "es6", | ||
"email": "saltikorcun@gmail.com", | ||
"main": "main.js", | ||
"main": "index.js", | ||
"scripts": { | ||
"lint": "eslint -c .eslintrc.js main.js --fix -o test/eslint.log -f unix", | ||
"lint": "eslint -c .eslintrc.js index.js --fix -o eslint.log -f unix", | ||
"test": "npm run lint" | ||
@@ -27,0 +27,0 @@ }, |
@@ -22,3 +22,3 @@ # Node Js File System | ||
2. root(path): Synchronous. Returns the root directory of the package. | ||
3. list(path): Asynchronous. Returns the list of files and folders of the given path. | ||
3. list(path, opts): Asynchronous. Returns the list of files and folders of the given path. | ||
4. move(path, dest): Asynchronous. Moves files or folders. | ||
@@ -32,13 +32,13 @@ 5. copy(path, dest): Asynchronous. Copies files or folders. | ||
``` js | ||
const {move, copy, list, isDir} = require('njfs'); | ||
const {move, copy, root, list, isDir} = require('njfs'); | ||
gulp.task('example', async () => | ||
await gulp.watch(['./src/**/*.js'], gulp.series('build', async () => { | ||
await gulp.watch(['./src/*.*'], gulp.series('build', async () => { | ||
const dist = 'vhosts/a'; | ||
const dest = 'vhosts/a/b/c/js'; | ||
const dist = root() + 'src'; | ||
const dest = root() + 'dist/js'; | ||
try { | ||
const files = await list(dist); | ||
const files = await list(dist, {extensions:'js, jsx'}); | ||
await Promise.all(files.map(async (file) => { | ||
@@ -45,0 +45,0 @@ const path = `${dist}/${file}`; |
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
8023
7
101
1