Have ideas to improve npm?Join in the discussion! »

    fastify-slugify
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0 • Public • Published

    fastify-slugify

    Simple plugin to work with Slugify within Fastify. Supports all features from slugify.

    Install

    npm i fastify-slugify

    Usage

    const fastify = require('fastify')();
    
    fastify.register(require('fastify-slugify'));
    
    fastify.get('/', async function (req, res) {
      let data = fastify.slugify('some string');
      return res.send(data);
    });
    
    fastify.listen(3000, (err) => {
      if (err) throw err;
      console.log(`server listening on ${fastify.server.address().port}`);
    });

    License

    Licensed under MIT.

    Keywords

    none

    Install

    npm i fastify-slugify

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.42 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar