unquote
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/unquote package

1.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    6,126,602
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    6,126,602
  • 1.1.0
    997
  • 1.0.0
    0

Package Sidebar

Install

npm i unquote

Weekly Downloads

5,122,151

Version

1.1.1

License

MIT

Last publish

Collaborators

  • lakenen