wayspurrchen / byebyte Goto Github PK
View Code? Open in Web Editor NEWDestroys your files (on purpose).
Destroys your files (on purpose).
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
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?
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.