Skip to content

abranhe/sta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation




sta : Parse tokens from an string into an array

Overview

sta extract the words from a string, and store those words in an array. The words are separated by an space/s.

Install

pip install sta

Usage

import sta

print(sta('this string is divided by spaces'))
# => [ 'this', 'string', 'is', 'divided', 'by', 'spaces' ]

API

sta('string')

Return an array with each token

Return Type: list

Related

  • str-to-arr: convert an string into an array in JavaScript.
  • s-to-o: convert an string into an object in JavaScript.

Team

Carlos Abraham Logo
Carlos Abraham

License

MIT License © Carlos Abraham