Coder Social home page Coder Social logo

multilinestring's Introduction

If this package reaches anyone from NPM, please let me know if we could change the name to multilinestring.

multilines

npm version CircleCI codecov

The missing template literal for NodeJS.

Overview

multilines removes all spaces before | character and first space after if present.

  • ๐Ÿ’… Prettier code style: You no longer have to care about spaces in multiline strings!
  • ๐ŸŒณ Zero dependencies: Completely self contained!
  • ๐Ÿ’ก Inspired by Scala code style: Used by the best, now implemented for everyone.

Installation

yarn add multilines

Example

import mls from 'multilines'

// Before

function generate(...args) {
  const string = `
I have to start at the beggining of the line
so I don't break the string indentation.
  `
}

// After

function generate(...args) {
  const string = mls`
    | I can be aligned with other code
    | and everything still works as expected.
    `
}

License

MIT @ Matic Zavadlal

multilinestring's People

Contributors

maticzav avatar renovate-bot avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

multilinestring's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @types/jest 26.0.24
  • @types/node 14.18.43
  • codecov 3.8.3
  • husky 4.3.8
  • jest 26.6.3
  • npm-run-all 4.1.5
  • prettier 2.8.8
  • pretty-quick 3.1.3
  • rimraf 3.0.2
  • semantic-release 17.4.7
  • ts-jest 26.5.6
  • ts-node 9.1.1
  • typescript 4.9.5

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.