New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@ayame/quotes

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ayame/quotes

Quote parser for discord bots.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@ayamejs/quotes

Split an input with quotes.

hello "world" 'it works' “also supports iOS quotes” -> [ 'hello', 'world', 'it works', 'also supports iOS quotes' ]

Install

$ npm install @ayamejs/quotes

TypeScript typings included.

Usage

const quotes = require("@ayamejs/quotes");

quotes.parse(input, seperator);

Use it instead of your string.split logic.

Seperator defaults to a space " " but any single character string can be used to split on.

E.g: quotes.parse("hello, world", ",") -> [ 'hello', 'world' ]

Changelog

0.2.0 (12/8/2020)

  • Added a seperator option to split by different characters other than space.
  • Added TypeScript typings.

0.1.0

  • Initial release.

License

MIT License

Keywords

quotes

FAQs

Package last updated on 04 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts