Node 13

How to use module import in nodejs

Issue #752

Use esm

js
npm install esm

In our code, import as normal

js

How to use relative file module with Create React app

Issue #751

Declare data/package.json to make it into node module

js
{
    "name": "data",
    "version": "0.1.0", …

How to copy folder in nodej

Issue #651

Use shelljs

sh
npm install shelljs
js
const shell = require( …

How to use babel 7 in node project

Issue #650

Install

sh
npm install @babel/core
npm install @babel/cli
npm install @babel/preset-env

Configure .babelrc

text …

How to apply translations to Localizable.strings

Issue #492

Suppose we have a base Localizable.strings

text
"open" = "Open";
"closed" = "Closed";

After sending that file for …

How to notarize electron app

Issue #430

Use electron builder

text
npm install electron-builder@latest --save-dev
  • Prefer electron-builder over electron-packager
  • Configuration …

How to read and write file using fs in node

Issue #419

js
function write(json) {
    const data = JSON.stringify(json)
    const year = json.date.getFullYear()
    const directory = `collected/${slugify( …

How to get videos from vimeo in node

Issue #418

Code

Path for user users/nsspain/videos Path for showcase https://developer.vimeo.com/api/reference/albums#get_album Path for Channels, Groups and Portfolios

js

How to get videos from youtube in node

Issue #417

js
class Youtube {
    async getVideos(playlistId, pageToken) {
        const options = {
            key: clientKey,
            part: …

How to make collaborative drawing canvas with socketio and node

Issue #399

Client

App.js

js
import React, { Component } from 'react';
import logo from …

How to generate changelog for GitHub releases with rxjs and node

Issue #398

How to

Technical

Dependencies

js

How to remove Cartography in iOS

Issue #252

Read more https://medium.com/flawless-app-stories/how-to-make-auto-layout-more-convenient-in-ios-df3b42fed37f

Description

This is a script to remove Cartography, and use plain NSLayoutAnchor syntax. Use Constraint.on() from Sugar. It will …

Package node.js application

Issue #57

I like node.js because it has many cool packages. I wish the same goes for macOS. Fortunately, the below solutions provide a way to package node.js modules and use them inside macOS applications. It can be slow, but you save time by using …