[Pkg-javascript-devel] mkdirp 0.53 replacement
Jonas Smedegaard
jonas at jones.dk
Fri Jun 25 23:53:59 BST 2021
Quoting Yadd (2021-06-25 20:22:08)
> Le 25/06/2021 à 12:34, Jonas Smedegaard a écrit :
> > Quoting Yadd (2021-06-25 07:40:49)
> >> a better idea to replace simple mkdir-0.53 usages (with node ≥ 10.12):
> >>
> >> - var mkdirp = require('mkdirp');
> >> + var fs = require('fs');
> >>
> >> - mkdirp(path, mode?, function(err) {
> >> + fs.mkdir(path, { recursive: true }, function(err) {
> >> if(err) throw new Error(err);
> >> do_something();
> >> }
> >
> > Anyone volunteer to collect such tricks at a wiki page? :-)
> >
> >
> > - Jonas
>
> See (and fix) https://wiki.debian.org/Javascript/Tips
I saw you created that page. Thanks!
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20210626/5a58a589/attachment.sig>
More information about the Pkg-javascript-devel
mailing list