Giter VIP home page Giter VIP logo

chmodx's Introduction

chmodx

This is a fork of the now unpublished NPM package chmodx written by Chris Ackerman. It is based on an installed copy since the original Git repo has also been deleted. Any bugs are from the original code - which I didn't write and don't entirely understand. I have made some minor updates.

Summary

A cross platform command line utility for setting the executable bits on files. It is roughly equivalent to the Linux chmod +x <patterns...> command.

This utility was created to address the Yarn limitation where "bin" entries in package.json are not made executable on yarn link. However, it can be used any time you need to make files executable in a cross platform context.

When a file cannot be accessed:

  • An error message is printed.
  • The process continues in order to handle all remaining files.
  • The process exits with a non-zero status.

Usage

Set the executable bit on files matching glob patterns.

npx chmodx "foo/*.js" "bar/*.js"

Set the executable bit on all files referenced by your `package.json' file "bin" entry. The value(s) must be plain file paths (e.g. "src/index.js").

npx chmodx --package

chmodx's People

Contributors

johnowennixon avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.