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

export-cli

v0.0.2

Published

Pack and export all javascript projects in fast and efficient way without npm dependencies.

Downloads

12

Readme

export-cli

Cli tool for JavaScript projects export.

travis-cli

about

Export-cli is a command line tool written in node.js. The tool helps in backup and export of any single or many JavaScript projects in efficient and fast way.

Export-cli is traversing through directory structure in order to find every js project, in the final result it exports found projects into a flat structure, optionaly archives them. It's not exporting node_modules and .git directories, thanks that the export procedure is quick and doesn't contain not wanted resources, and such resources have in most cases numerous of times more files than the project itself.

when I need it

Let's imagine nested directory structure:

  • projects
    • project1
    • project2
    • private
      • project3
      • project4
    • work
      • project5
      • project6
    • github
      • account1
        • project7
      • account2
        • project8

Every project in above structure has many files, node_modules with humongous files count. If you want to backup, move all projects, it can be tricky. The worst thing is the fact that probably 80% of files there, are dependency files(node_modules) and git files (.git). Moving them by standard copy for example to an usb disk will be time consuming, probably also needed disk space can be huge. Offcourse you can go there and try to remove not needed resources, but this is tipical time wasting job.

And here comes export-cli, by one simple command export projects, the script will find every project in presented structure and export it into a flat structure, additionaly it can create an archive. The most important is also the fact that it will exclude all not needed files, so export will stay flat and potentially thin.

install

npm install -g export-cli

usage - command line

export <command> [srcDirectory] <targetDirectory>

  • command, (optional, default - export)possible options:
    • export - default command - exports to directory
    • archive - creates archive
  • srcDirectory (mandatory): relative path of directory to export from
  • targetDirectory (optional): target path of saving export

example usage

Export all projects from ./exampleNpmProject to ./exampleNpmProject-(timestamp):

export exampleNpmProject

Export all projects from ./exampleNpmProject to ./targetDirectory:

export exampleNpmProject targetDirectory

Archive all projects from ./exampleNpmProject to ./targetArchive.zip:

export archive exampleNpmProject targetArchive

Archive all projects from ./exampleNpmProject to ./exampleNpmProject-(timestamp).zip:

export archive exampleNpmProject