Skip to content

Instantly share code, notes, and snippets.

View caaatisgood's full-sized avatar
🎯
building

haoping caaatisgood

🎯
building
View GitHub Profile
TypeScript 16 mins █████████████████████ 100.0%
@caaatisgood
caaatisgood / inYarnWeLock.js
Created November 26, 2019 07:11
save exact dependencies in package.json based on your yarn.lock
const PATH_TO_PACKAGE_JSON = './package.json'
const PATH_TO_YARN_LOCK = './yarn.lock'
const fs = require('fs')
const _log = ({ type, value }) => {
console.log(`[ inYarnWeLock ${type} ]` + (value ? ` - ${value}` : ''))
}
const _getSchemedDep = ({ name, version }) => `${name}@${version}`
@caaatisgood
caaatisgood / eslater.js
Last active December 13, 2019 03:20
Disable eslint rules in a breeze.
const fs = require('fs')
const input = ''
const _log = ({ type, value }) => {
console.log(`[ eslater ${type} ]` + (value ? ` - ${value}` : ''))
}
const read = () => {
return input