Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

njfs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

njfs - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

index.js

15

.eslintrc.js

@@ -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}`;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc