@belle0hey fwens :wave-pikachu:
hope your day is going amazing! today i did math past papers and had a really exciting meeting for a project that i'm working on :)) also, i figured out some adulting stuff like rent and making meals and stuff :flushded:.
(attached is the design i created for the ama w/ feross – i'm so excited for the event!!)
@ian5medium sized ship 🚢
Some background: I make a ton of small projects, and end up having to build my own API routes just for a small backend functionality. Parsing, validating, and responding to the requests takes a while to implement and takes time from the project I’m trying to make. That’s why I built <http://github.com/yodalightsabr/function-apis|function-apis>.
function-apis is a small express middleware that lets you define functions to automatically be available to the client. With as little as 11 lines of code, you can make an async request to the server and function-apis will handle the HTTP request behind the scenes.
:github:github.com/yodalightsabr/function-apis:npm:npmjs.com/package/function-apisalso: I think my next project will be an NPM package name finder, because I tried like 20 different package names and they were all taken.:peefest:edit: the package `available` seems to work
@ian5🤞 Hopefully NPM gives me access to the conflict package name, because that just so happens to be what my almost finished framework is called, and the conflict package has been empty for 3 years, now with a deprecation message of “lol” :peefest:
@ian5I finally learned npm link, how to make exports like module/export, and making cli tools with package.json’s bin
@ArcadeWise4HELLO I AM BACK WITH A 🚢 ITS COOL YALL WANNA SEE???
Introducing: Dialect! A programming language for people who want to not actually write functional :haskell: code but wanna feel like it. Wanna install the compiler? Run 💻 npm i -g dialect-lang and you can use dialup, the dialect compiler! OR visit raleighwi.se/dialect and run it in your browser :chrome:! You can write webapps with it, or just write code. It compiles down to :js: and I've built a basic stdlib. Feel free to ask questions on how to use it here :) Oh and also here's the source: github.com/l3gacyb3ta/dialect
@ian5I uploaded terminal games to npm so you can now install it and play it wherever
@ian5Medium-sized ship!! :shipitparrot: 🚢
I just published an NPM package for logging in Node.js. I always thought that the console was boring and that it was hard to find what I needed, so I started working on Stump.js. The finished version has support for enabling/disabling debug mode as well as Discord webhook support.
:github: GitHub: github.com/YodaLightsabr/stumpjs:npm: NPM: www.npmjs.com/package/stump.js
@ian5Made an NPM module for getting Google Form responses
@matthewvandyke080Using an npm package to create a typerwriter effect for the coming soon text
@christina6950Studied the code of a friend on GitHub, and tried to learn from how she built something, and then try it out myself. ran an NPM install for the first time
@sporeball0the argument parser went somewhere! go get it on npm if you want (npm i --save yeow)
@ella3i followed the npm package workshop and published an npm package :npm:
@safin.singh0I've been struggling to put together large-ish completed projects lately so I decided to just go all out and see how much I can get done in a day-ish. I just finished up ankylos (github.com/safinsingh/ankylos) a modular bootstrapper thing for node projects. Here's what it does:
1. Grab a preset to clone from. This will be copied to whatever destination you specify via a tarball from NPM
2. run ankylos bootstrap to read from the ankylos.config.js in the preset. this tells ankylos what plugins to install and configure. for example, the next preset automatically installs and configures the 'editorconfig', 'eslint', 'github', 'husky', 'markdownlint', 'pnpm', 'prettier', 'renovate', and 'vscode' plugins. it'll also send instructions for build scripts to set, dependencies, etc. ankylos will take care of the explicit dependencies in the preset first. then, it'll install your plugins (ive made like 10 of them for convenience) and install your plugin's dependencies (these are stages 1 & 2 of the bootstrap phase)
3. ankylos prompt you for project metadata and will insert your custom build scripts along with this metadata into a fully-filled out and templated package.json file. finally, ankylos will walk through each of your plugins and apply/copy the files specifies in ankylos.config.js
4. from there, pnpm install will bump you in to your new, modular, automatically-bootstrapped, linted, formatted, <insert a bunch more buzzwords> project!
i only had enough time to create a next and node preset so be sure to check those out. anyway, i'm glad i was able to follow through with this and i hope y'all like it! p.s: you can check out all 16, yes, 16 projects from the ankylos monorepo on its dedicated npm org: www.npmjs.com/org/ankylos. anyway, i'll try my best to maintain this (it's in my best interest too so thats good) if anyone else decides to use it
@sampoder1I’m really proud that I worked this out!! Published smth on :npm:
@rishi0Yellow hellow everyone! It’s the first day of winter break, and now that all my school stuff’s finished (having handed in what might, in hindsight, have been one of the worst essays of my life), I’ve found myself quite pretty bored!
I’m going to be challenging myself to build one cool thing every day (and maybe ship it either here or in #rishi if it’s smaller), so here’s the first one!
I’ve found myself working with asynchronous hooks in React a lot; whether that be to fetch data or just do timed stuff client-side, the normal integrations just don’t really cut it for me. That’s why I built my own library for those kinds of hooks! @rishiosaur/async is built in Typescript, and has some awesome documentation as a result (Typedoc really comin thru), and has two hooks that I use a lot in my daily React life: usePromiseEffect and useAsyncEffect, both of which are modelled to look like idiomatic React (I’ve attached an example of their usage down below).
:githubparrot: You can find the Github repo over at z.rishi.cx/g/async (feel free to star!),
:npm: The NPM package over at www.npmjs.com/package/@rishiosaur/async,
🏗️ And the documentation over at async.rishi.cx!
@christina6950Cloned a github repo, ran an npm install, and then modified the file in data.json- first time for all 3!
@caleb0I'm gonna try to get @scrappy to react with as many emojis as possible, for no particular reason.
@muirrum0Learned my lesson about rolling my own CSS aha, and Hack Night helped me remember why I despise NPM and node