unquote
Remove wrapping quotes from a string.
Last updated 3 years ago by lakenen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install unquote 
SYNC missed versions from official npm registry.

unquote

Remove wrapping quotes from a string. Returns an empty string if the first arg is falsey.

Installation

npm install unquote

Usage

Example

var unquote = require('unquote')

unquote('"hello, world"') // 'hello, world'
unquote('\'hello, world\'') // 'hello, world'

Running Tests

npm test

License

(The MIT License)

Copyright 2017 Cameron Lakenen

Current Tags

  • 1.1.1                                ...           latest (3 years ago)

3 Versions

  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           5 years ago
  • 1.0.0                                ...           6 years ago

Copyright 2014 - 2017 © taobao.org |