Code Monkey home page Code Monkey logo

express-smartquotes's Introduction

express-smartquotes

Express middleware to empower smart people to use smart quotes. This is an extension of smartquotesjs for those of us that want an easy server-side version.

Installation

express-smartquotes is available in npm.

npm install express-smartquotes

Usage

Just add the smartquotes middleware to your stack like any other express middleware.

const express = require('express');
const smartquotes = require('express-smartquotes');

const app = express();

app.use(smartquotes);

The middleware will automatically alter any responses with a content type of HTML or plain text. Since this is currently an early release, there's no support for other content types such as JSON.

Contributing

If you find bugs or additions to the code, the best way to contribute is to fork this repo, make the changes (without updating version numbers), and make a pull request back to this repo to be merged in.

If the bug pertains to an issue with incorrect parsing of the quotes, please direct those bugs to smartquotesjs issues, as this repo pertains to its implementation in express.

Otherwise, the repository has Travis-CI running, but be sure to add any necessary tests and run npm test before opening a PR.

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.