npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

filter-content

v0.0.5

Published

filter string from files

Downloads

14

Readme

filter-content

NPM version license status Coverage Status

filter string from files

Lets you quickly get string from files

  • support build compress font with used string
  • support filter string with language (cn)
  • support cli

install

npm install -g filter-content

example

filter -f "./src/assets/files/*jsx" -o "./build/test/" -fp "src/assets/fonts/FZYingXueJW.TTF"

./files/*.jsx
/Users/kye/XINGTAO/project/assets/files/index.jsx
/Users/kye/XINGTAO/project/assets/files/main.jsx
files string 月,日,千,古,风,流,人,物,故,宫,博,院,藏,苏,轼,主,题,书,画,特,展,在,文,华,殿,开,览,通,过,件,套,精,品,勾,勒,出,一,个,生,动,而,立,体,的,形,象,带,领,观,众,回,到,所,处,那,化,昌,盛,群,星,璀,璨,时,代,十,三,五,期,间,进,口,银,行,累,计,境,非,融,资,保,函,金,额,超,亿,元,据,介,绍,性,不,仅,为,国,内,企,业,增,信,却,逆,上,我,们,经,受,了,疫,情,来,重,考,验,承,担,民,族,该,有,社,会,责,任,与,当,同,部,防,工,作,各,位,家,支,持,下,也,做,相,都,健,康,今,年,半,对,全,球,济,冲,击,航,市,场,首,大,型,乙,烷,输,船,建,造,项,目,提,供,帮,助,海,外,认,可,度,高,点,概,括,起,就,是,句,话,既,要,视,源,环,更,态,系,统,其,理,由,自,然,命,共,地,圈,中,包,类,需,和,撑,满,从,服,务,功,能,看,两,用,关,如,果,只,势,必,导,致,退,使,失,去,存,八,九,报,告,党,央,列,护,绿,水,青,山,说,良,好,续,发,根,本,基,础,维,升,质,量,稳,定,筹,林,田,天,湖,草,治,整,互,依
<File "FZYingXueJW_test.ttf" <Buffer 00 01 00 00 00 0e 00 80 00 03 00 60 4f 53 2f 32 50 1a 9a 22 00 00 00 ec 00 00 00 60 63 6d 61 70 34 c8 ea ac 00 00 01 4c 00 00 09 4a 63 76 74 20 00 15 ... 181038 more bytes>>

or

const filter = require('filter-content');
const path = require('path');

filter.getFilesString({
  pattern: path.join(__dirname , './files/*.jsx'),
  lang:'cn'
}).then((data)=>{
  console.log('js',data)
})

cli

Options:
  -V, --version              output the version number
  -f, --files <files>        filter file
  -fp, --font-path <output>  font path from
  -o, --output <output>      output build font path
  -h, --help                 display help for command

License

MIT © xingtao