npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

directory-templates

v2.5.0

Published

generate directory strucutres from json , add & copy directorys anywere

Downloads

6

Readme

Directory-templates is simple command-line utility that allows you to add , build , open templates generated from json or copy the contents of a saved directory to your CWD.

##Install npm i -g directory-templates

##Usage

Commands add , build-from ,open, list.

  • add will add a template or directory to Directory-templates
  • build-from builds directory-structure at CWD based on template name or directory name given
  • open with no parameters passed opens the root directory otherwise opens the template in a text-editor or directory
  • list shows a list of templates & directories you created

Flags -delete , -o

  • -delete deletes everything from both template folder & directories folder
  • -o Used in conjunction with add to open explorer or a text-editor

Example

dt add angular-skeleton -o

##Template Example CWD: C:/very-important-path/

dt build-from some-template

some-template.js

const someTemplate = {
  src:{
    jade:['main.jade' ,'fallback-scripts.jade'],
    scripts:{
      _files:['one.js' ,'two.js','three.js'],
      modules:{
        render:['index.js'],
        winodws:['index.js'],
        header:['header.js' ,'controller.js'],
        SCSS:['index.scss' ,'setup.scss'],
      }
    }
  },
  compiled:['angular.js','angular-material.js' ,'fallback.js'],
  built:{
    frontEnd:[],
    backEnd:[],
    assets:{
      _files:['styles.css' ,'external-styles.css'],
      fontAwesome:['font-awesome.css'],
      img:[],
      svg:[],
      unrelated:{
        _files:['boot.js']
      }
    }
  }
}

For each file in _files would be would be placed at the parent directory ###Result

 C:/very-important-path/src/jade/main.jade
 C:/very-important-path/src/jade/main.jadefallback-scripts.jade
 C:/very-important-path/src/scripts/one.js
 C:/very-important-path/src/scripts/two.js
 C:/very-important-path/src/scripts/three.js
 C:/very-important-path/src/scripts/modules/render/index.js
 C:/very-important-path/src/scripts/modules/winodws/index.js
 C:/very-important-path/src/scripts/modules/header/header.js
 C:/very-important-path/src/scripts/modules/header/header.jscontroller.js
 C:/very-important-path/src/scripts/modules/SCSS/index.scss
 C:/very-important-path/src/scripts/modules/SCSS/index.scsssetup.scss
 C:/very-important-path/compiled/angular.js
 C:/very-important-path/compiled/angular.jsangular-material.js
 C:/very-important-path/compiled/angular.jsangular-material.jsfallback.js
 C:/very-important-path/built/frontEnd/
 C:/very-important-path/built/backEnd/
 C:/very-important-path/built/assets/styles.css
 C:/very-important-path/built/assets/external-styles.css
 C:/very-important-path/built/assets/fontAwesome/font-awesome.css
 C:/very-important-path/built/assets/img/
 C:/very-important-path/built/assets/svg/
 C:/very-important-path/built/assets/unrelated/boot.js