velocityzen / fsu Goto Github PK
View Code? Open in Web Editor NEWUnique filenames with streams support
License: MIT License
Unique filenames with streams support
License: MIT License
This line https://github.com/velocityzen/fsu/blob/master/index.js#L116 does not work in node 4 due to the spread operator.
I opened a PR to fix it #3
Using writeFileUnique
I don't know if you can get the actual path it writes to.
After switching to write streams and looking at the source code I was able to find a way to get the path:
ws = fsu.createWriteStreamUnique(outputFile)
blablabla.pipe(ws)
ws.on "open", ->
console.log "output to #{ws.path}"
You should be able to get the path written to with any of the methods.
I currently use this lib and wrap it in a Promise. Would be great if it supported them out of the box.
Hi,
Looks like the latest version just broke our build. We are running an older version of node v4.3.0 and some package we use mochawesome uses a package mochawesome-report-generator which uses fsu with permissive versioning. so your 1.0.4 has been upgraded to 1.1.0. if you want to add es6 like features like the spread operator I think you should do a major upgrade to 2.0.0. Anyway damage is now done. Not sure what can be done.
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.