dedent
arangojs
dedent | arangojs | |
---|---|---|
3 | 2 | |
880 | 593 | |
- | 0.2% | |
6.7 | 8.5 | |
22 days ago | 17 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
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.
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.
What are some alternatives?
node-sql-template-strings - ES6 tagged template strings for prepared SQL statements 📋
typeorm - TypeORM module for Nest framework (node.js) 🍇
core-js - Standard Library
Prisma - Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
javascript - JavaScript Style Guide
dndb - A Deno 🦕 persistent, embeddable and optimized NoSQL database for JS & TS
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.
nodejs-datastore - Node.js client for Google Cloud Datastore: a highly-scalable NoSQL database for your web and mobile applications.
graphql-tag - A JavaScript template literal tag that parses GraphQL queries
prisma1 - 💾 Database Tools incl. ORM, Migrations and Admin UI (Postgres, MySQL & MongoDB) [deprecated]
type-fest - A collection of essential TypeScript types
DataStax Node.js Driver for Apache Cassandra - DataStax Node.js Driver for Apache Cassandra