Giter VIP home page Giter VIP logo

dashify's Issues

[Bug] Fails to minify on npm build

Using node v8.2.1 and npm 5.3.0

Error message:

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

        ./node_modules/dashify/index.js:17

Filters out characters such as "é", "ç", "à", ...

Hi Jon,

I was looking at your module for a small side project I am working on and I like the fact that it does what it says it does. Unfortunately, for my use case it seems to filter out characters that I would need to be in the "dashified" string.

For example:

dashify("São Tomé and Príncipe")
// yields "s-o-tom--and-pr-ncipe" instead of "são-tomé-and-príncipe"

I have written a local version of dashify for my side project, but I was wondering if it would be helpful to open a PR and append those changes to your module. If it is not a change that is in line with the philosophy of the module, please feel free to close this issue.

Thanks again! 😃

Does not recognize spaces and numbers

LODASH:
_.kebabCase("46546hello56565World656") => "46546-hello-56565-world-656"
_.kebabCase("hello world") => "hello-world"

Dashify:
dashify("46546hello56565World656") => "46546hello56565world656"
dashify("hello world") => "hello------------world"


Github reduces the spaces between hello and world automatically, but you can check the image.

1111

Add browser support

Lib contains es6 features and should be built with babel to support all browsers.

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.