Giter Club home page Giter Club logo

byebyte's People

Contributors

mcwhittemore avatar wayspurrchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

byebyte's Issues

Support use as a node module

Way,

How would you feel about a PR that converts this into something that can be required? The CLI would stay of course :).

Here is how I see the API working:

var byebyte = require('byebyte');
var fs = require('fs');
var input = fs.readFileSync('./some-file.jpg');

var shuffled = byebyte. shuffle(input, {});
fs.writeFileSync('./some-suffled-file.jpg');

I'm more than happy to put together a PR for this, I just wanted to get your thoughts first.

My plan is to move index.js to bin/cli.js and port the non-arg parsing logic back to index.js which will be exposed when require('byebyte') is invoked. As far as I can tell, right now when require('byebyte') is invoked undefined is returned so this change shouldn't be breaking.

Thanks for your thoughts,
Matthew

Licence?

Hi,

I like this glitch utility, and I would like to incorporate its algorithm in a Web art project.

There is no licence in this project, so I need to ask permission.

Would it be okay to use it?

env: node\r: No such file or directory

Hello, and thank you for this wonderful and beautiful tool!
I love it very much.

After updating to 1.0 I was faced with the error:

env: node\r: No such file or directory

After some searching, I discovered this seems to be a common issue with Node.js when using files with Windows line endings. See: npm/npm#12371

I was able to fix it with the following:

$ brew install dos2unix
$ sudo dos2unix /usr/local/lib/node_modules/byebyte/commands/cli.js 

If you have a way to easily save your scripts with Unix line endings, I think it would be most helpful for those of us on linux or OSX. Thanks!

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.