arangojs
dedent
arangojs | dedent | |
---|---|---|
2 | 3 | |
593 | 883 | |
0.2% | - | |
8.5 | 6.7 | |
19 days ago | 25 days ago | |
TypeScript | TypeScript | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
arangojs
-
All JavaScript and TypeScript features of the last 3 years explained
We actually did the same for ArangoDB (I think we first did this in 2015, I remember being surprised nobody had done something similar for SQL at the time). Here's the JS driver's current implementation of it:
https://github.com/arangodb/arangojs/blob/main/src/aql.ts#L1...
Basically the `aql` template tag returns an object that can also be fed back into it and we also deduplicate arguments to avoid sending redundant data over the wire. There's also an escape hatch via a helper function (`aql.literal`) in cases where you need to insert literals that aren't known at compile time (e.g. you load query filters from a configuration file).
-
what databases will prisma support next?
Their official Typescript client is well maintained and quite powerful, it would be very useful in an eventual integration with Prisma.
dedent
-
All JavaScript and TypeScript features of the last 3 years explained
and so `dedent` would not strip any indentation. That is, `dedent` is meant to identify the maximal common leading indentation in the template as written by the developer, which should not depend on the values of the interpolands.
A stale GitHub issue on the dmnd/dedent repo has a real-world example where this matters and led to a subtle bug: https://github.com/dmnd/dedent/issues/22
-
I thought I knew what I was doing
There is also some other interesting use cases.
What are some alternatives?
typeorm - TypeORM module for Nest framework (node.js) 🍇
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
core-js - Standard Library
dndb - A Deno 🦕 persistent, embeddable and optimized NoSQL database for JS & TS
javascript - JavaScript Style Guide
nodejs-datastore - Node.js client for Google Cloud Datastore: a highly-scalable NoSQL database for your web and mobile applications.
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
graphql-tag - A JavaScript template literal tag that parses GraphQL queries
DataStax Node.js Driver for Apache Cassandra - DataStax Node.js Driver for Apache Cassandra
type-fest - A collection of essential TypeScript types