Socket
Book a DemoInstallSign in
Socket

vorlefan.path_route

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vorlefan.path_route

Easily access and manage the folder and files of your project

latest
npmnpm
Version
1.2.2
Version published
Maintainers
1
Created
Source

Path Route

This is my first npm package module. The main function is to give the power of easily accessing the folders and files of your project.

With npm do:

npm install vorlefan.path_route

With yarn do:

yarn add vorlefan.path_route

Documentation

You can access on the folder 'docs' of this repository A better documentation will be made at the near future.

Highlight

  • Create several custom routes to access different folders & files
  • Without any dependency
  • Manage your files with the power to read and store
  • Easy to use

Example

Please, take a look at the 'example' folder of this repository

 'use strict';

/**
 * @description Basic usage of this module. 
 * This will take at account this folder (module folder),
 * as example.
 */


const {
    Routes,
    Route
} = require('../index')


// Create a new route instance and give it a name

Routes.instance((instance) => {

    instance.set('src', instance.resolve(__dirname, '..'))
    instance.join('test', 'src')
    instance.join('examples', 'src')

}).namespace("Basic")


// Access

console.log(Route.Basic.get('test'));
console.log(Route.Basic.get('examples').path);

Keywords

path

FAQs

Package last updated on 12 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.