You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
412 B

4 years ago
  1. # unquote
  2. Remove wrapping quotes from a string. Returns an empty string if the first arg is falsey.
  3. ## Installation
  4. ```
  5. npm install unquote
  6. ```
  7. ## Usage
  8. Example
  9. ```js
  10. var unquote = require('unquote')
  11. unquote('"hello, world"') // 'hello, world'
  12. unquote('\'hello, world\'') // 'hello, world'
  13. ```
  14. ## Running Tests
  15. ```
  16. npm test
  17. ```
  18. ## License
  19. ([The MIT License](LICENSE))
  20. Copyright 2017 Cameron Lakenen